Enc*_*ode 27 kubernetes devops kubectl kubernetes-helm helm3
无法安装 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/cobra@v1.1.3/command.go:852
github.com/spf13/cobra.(*Command).ExecuteC
github.com/spf13/cobra@v1.1.3/command.go:960
github.com/spf13/cobra.(*Command).Execute
github.com/spf13/cobra@v1.1.3/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
Run Code Online (Sandbox Code Playgroud)
使用以下命令安装 helm 生成的原始文件效果很好,但当我运行时helm install myChart .会出现上述错误
helm install myChart . --dry-run > myChart.yaml
kubectl apply -f myChart.yaml
Run Code Online (Sandbox Code Playgroud)
小智 56
使用升级而不是安装:
helm upgrade -i myChart .
Run Code Online (Sandbox Code Playgroud)
-i如果该版本不存在,则该标志将安装该版本。
jws*_*jws 11
sh.helm.release.v1.<chart>.v1我必须删除kubesecret 并重试。
我寻找影响深远的秘密
kubectl get secrets -n <chart-namespace>或者
kubectl get secrets --all-namespaces