路过 https://helm.sh/docs/chart_template_guide/getting_started/
ls -R mychart/ mychart/: charts Chart.yaml templates values.yaml
mychart/charts:
mychart/templates: configmap.yaml
尝试安装图表:
helm install full-coral ./mychart
但它失败了:
Error: This command needs 1 argument: chart name
Helm :
helm version
Client: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.14.1", GitCommit:"5270352a09c7e8b6e8c9593002a73535276507c0", GitTreeState:"clean"}
我错过了一些明显的东西吗?任何帮助将不胜感激
最佳答案
在您的 install
命令名称指定为 Helm v3。
在 Helm v2.14 中,图表名称通过 --name
指定.
-n, --name string release name. If unspecified, it will autogenerate one for you
见:https://v2-14-0.helm.sh/docs/helm/#helm-install
所以在你的情况下这应该有效
helm install --name full-coral ./mychart
关于kubernetes-helm - Helm 安装 : Error: This command needs 1 argument: chart name,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60490347/