在自定义命名空间下安装舵图



我试图在Microk8s集群上安装一些helm图表到自定义名称空间,但得到以下错误。我做错了什么?集群是新创建的,这些名称空间或资源都不存在。

> helm install loki grafana/loki-stack -f values/loki-stack.yaml --namespace loki --create-namespace
W0902 08:08:35.878632 1610435 warnings.go:70] policy/v1beta1 PodSecurityPolicy is deprecated in v1.21+, unavailable in v1.25+
Error: rendered manifests contain a resource that already exists. Unable to continue with install: 
PodSecurityPolicy "loki-grafana" in namespace "" exists and cannot be imported into the current release: 
invalid ownership metadata; annotation validation error: 
key "meta.helm.sh/release-namespace" must equal "loki": current value is "default"
> helm install traefik traefik/traefik -f values/traefik.yml --namespace traefik --create-namespace
Error: rendered manifests contain a resource that already exists. Unable to continue with install: 
ClusterRole "traefik" in namespace "" exists and cannot be imported into the current release: 
invalid ownership metadata; annotation validation error: 
key "meta.helm.sh/release-namespace" must equal "traefik": current value is "default"

资源(loki))在指定的命名空间中已经存在。

请与helm list -n loki核对。

所以在你安装它之前,你需要先卸载它。

  1. helm uninstall loki -n loki
  2. helm install loki grafana/loki-stack -f values/loki-stack.yaml --namespace loki

或者你可以尝试直接更新它:

helm upgrade loki grafana/loki-stack -f values/loki-stack.yaml --namespace loki

相关内容

  • 没有找到相关文章

最新更新