全新安装最新版本,在拓展市场选择安装metric-server和网关的时候,都遇到了类似的报错,麻烦看看怎么解决?

2025-01-09T18:08:26.308014632+08:00 WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: kube.config
2025-01-09T18:08:26.308046042+08:00 WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: kube.config
2025-01-09T18:08:26.315929686+08:00 history.go:56: [debug] getting history for release metrics-server-agent
2025-01-09T18:08:26.319667003+08:00 install.go:214: [debug] Original chart version: ""
2025-01-09T18:08:26.319671788+08:00 Release "metrics-server-agent" does not exist. Installing it now.
2025-01-09T18:08:26.329260141+08:00 install.go:231: [debug] CHART PATH: /tmp/helm-executor/repository/metrics-server-0.7.0.tgz
2025-01-09T18:08:26.329283168+08:00 
2025-01-09T18:08:27.014386893+08:00 Error: Unable to continue with install: ServiceAccount "metrics-server" in namespace "extension-metrics-server" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "metrics-server-agent": current value is "metrics-server"
2025-01-09T18:08:27.014439399+08:00 helm.go:84: [debug] ServiceAccount "metrics-server" in namespace "extension-metrics-server" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key "meta.helm.sh/release-name" must equal "metrics-server-agent": current value is "metrics-server"
2025-01-09T18:08:27.014444064+08:00 Unable to continue with install
2025-01-09T18:08:27.014447510+08:00 helm.sh/helm/v3/pkg/action.(*Install).RunWithContext
2025-01-09T18:08:27.014450756+08:00 	helm.sh/helm/v3/pkg/action/install.go:340
2025-01-09T18:08:27.014453628+08:00 main.runInstall
2025-01-09T18:08:27.014456402+08:00 	helm.sh/helm/v3/cmd/helm/install.go:306
2025-01-09T18:08:27.014459737+08:00 main.newUpgradeCmd.func2
2025-01-09T18:08:27.014462464+08:00 	helm.sh/helm/v3/cmd/helm/upgrade.go:146
2025-01-09T18:08:27.014465142+08:00 github.com/spf13/cobra.(*Command).execute
2025-01-09T18:08:27.014467950+08:00 	github.com/spf13/cobra@v1.8.0/command.go:983
2025-01-09T18:08:27.014470612+08:00 github.com/spf13/cobra.(*Command).ExecuteC
2025-01-09T18:08:27.014474082+08:00 	github.com/spf13/cobra@v1.8.0/command.go:1115
2025-01-09T18:08:27.014477222+08:00 github.com/spf13/cobra.(*Command).Execute
2025-01-09T18:08:27.014480319+08:00 	github.com/spf13/cobra@v1.8.0/command.go:1039
2025-01-09T18:08:27.014482985+08:00 main.main
2025-01-09T18:08:27.014485690+08:00 	helm.sh/helm/v3/cmd/helm/helm.go:83
2025-01-09T18:08:27.014488349+08:00 runtime.main
2025-01-09T18:08:27.014491029+08:00 	runtime/proc.go:267
2025-01-09T18:08:27.014493687+08:00 runtime.goexit
2025-01-09T18:08:27.014496420+08:00 	runtime/asm_amd64.s:1650

完整的报错日志。网关的日志类似。key "meta.helm.sh/release-name" must equal "metrics-server-agent": current value is "metrics-server"

    • frezesK零S

      happywzy

      当前环境已经装了metrics-server,且环境中只允许一个metrics-server 服务生效,所以部署出现冲突。可以视情况保留一个。

        frezes 情况是这样的。我在拓展市场点击安装,就一直显示安装中,然后我就在后端用helm卸载了metrics-server,我自己重新用helm安装了。安装完成后,拓展市场也会显示安装完成。。然后就出现了这个问题。