无法安装 helm 图表,但当我使用 helm 生成的原始文件时,我可以通过 kubectl apply 安装。
当我使用时显示以下错误helm install myChart . --debug
Error: cannot re-use a name that is still in use
helm.go:88: [debug] cannot re-use a name that is still in use
helm.sh/helm/v3/pkg/action.(*Install).availableName
helm.sh/helm/v3/pkg/action/install.go:442
helm.sh/helm/v3/pkg/action.(*Install).Run
helm.sh/helm/v3/pkg/action/install.go:185
main.runInstall
helm.sh/helm/v3/cmd/helm/install.go:242
main.newInstallCmd.func2
helm.sh/helm/v3/cmd/helm/install.go:120
github.com/spf13/cobra.(*Command).execute
github.com/spf13/[email protected] /cdn-cgi/l/email-protection/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/[email protected] /cdn-cgi/l/email-protection/command.go:960
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/[email protected] /cdn-cgi/l/email-protection/command.go:897
main.main
helm.sh/helm/v3/cmd/helm/helm.go:87
runtime.main
runtime/proc.go:225
runtime.goexit
runtime/asm_amd64.s:1371
使用以下命令安装由 helm 生成的原始文件效果很好,但是当我运行时helm install myChart .
它给出了上述错误
helm install myChart . --dry-run > myChart.yaml
kubectl apply -f myChart.yaml
使用升级而不是安装:
helm upgrade -i myChart .
The -i
如果该版本不存在,则标记安装该版本。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)