无法安装GitLab Kubernetes管理的应用程序prometheus



目前我在尝试部署由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

我已经通过证书将kubernetes集群添加到我的gitlab实例中,并激活了集成中的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

有什么建议吗?

由于没有提供进一步的细节/日志,因此张贴了社区wiki以更好地了解一般解决方案。请随意展开。


正如@mdaniel在评论中建议的:

这几乎肯定是kubernetes版本不匹配,因为v1beta1在1.22中被删除了,但因为你没有包括任何相关的版本信息,这只是一个猜测

请点击此处查看更多信息

最新更新