目前,在尝试部署由GitLab管理的Kubernetes应用程序时,我面临以下问题。
Error: unable to build kubernetes objects from release manifest: [unable to recognize "": no matches for kind "ClusterRole" in version "rbac.authorization.k8s.io/v1beta1", unable to recognize "": no matches for kind "ClusterRoleBinding" in version "rbac.authorization.k8s.io/v1beta1"]
68 Error: plugin "diff" exited with error我已经通过证书向我的gitlab实例添加了一个kubernetes集群,并在集成中激活了Prometheus切换。此外,还分配了集群管理项目和集群中的gitlab-runner。
helmfile.yaml如下所示:
helmDefaults:
atomic: true
wait: true
# --------------------- IMPORTANT ---------------------------
# Uncomment the paths below for the applications that you'd like to manage.
# By default all the helmfiles have `install:true`. So if you uncomment one of these
# helmfiles, the associated application will be tried to be installed or updated.
#
# You can set `install:false` to either uninstall the app from your cluster, or
# keep it uninstalled if you don't have it already installed.
#
# For more information, reference the Helmfile repository at:
# https://github.com/roboll/helmfile
# ------------------------------------------------------------
helmfiles:
# - path: applications/cilium/helmfile.yaml
# - path: applications/ingress/helmfile.yaml
# - path: applications/cert-manager/helmfile.yaml
# - path: applications/sentry/helmfile.yaml
# - path: applications/gitlab-runner/helmfile.yaml
# - path: applications/elastic-stack/helmfile.yaml
- path: applications/prometheus/helmfile.yaml
# - path: applications/vault/helmfile.yaml
# - path: applications/fluentd/helmfile.yaml
# - path: applications/falco/helmfile.yaml
# - path: applications/apparmor/helmfile.yaml有什么建议我错过了什么吗?
发布于 2021-10-12 07:24:54
发布了社区维基,以便更好地了解一般解决方案,因为没有提供进一步的详细信息/日志。您可以随意扩展它。
正如@mdaniel在评论中所建议的:
由于v1beta1在1.22中被移除,所以几乎可以肯定这是一个kubernetes版本不匹配,但是由于您没有包含任何相关的版本信息,所以这只是一个猜测
请查找更多信息here
https://stackoverflow.com/questions/69419622
复制相似问题