头盔安装未知标志--name [英] Helm install unknown flag --name
问题描述
当我尝试安装带舵的图表时:
helm install stable/nginx-ingress --name my-nginx
我得到了错误:
错误:未知标志:--name
但是我在许多文档中都看到了上面的命令格式.
版本:
version.BuildInfo {版本:"v3.0.0-beta.3", GitCommit:"5cb923eecbe80d1ad76399aee234717c11931d9a", GitTreeState:干净",GoVersion:"go1.12.9"}
平台:Windows 10 64
可能是什么原因?
在Helm v3中,发布名称现在作为命令的一部分是必需的,请参见helm install --help
:
用法:
头盔安装[NAME] [CHART] [flags]
您的命令应该是:
helm install my-nginx stable/nginx-ingress
此外,Helm将不再为发布自动生成名称.如果您想要旧行为",则可以使用--generate-name
标志.例如:
helm install --generate-name stable/nginx-ingress
v3文档可从 https://v3.helm.sh/docs/获得,但由于它是测试版,因此文档在一段时间内将不准确.最好依靠由Go/ Cobra 自动生成的CLI --help
.>
When I try to install a chart with helm:
helm install stable/nginx-ingress --name my-nginx
I get the error:
Error: unknown flag: --name
But I see the above command format in many documentations.
Version:
version.BuildInfo{Version:"v3.0.0-beta.3", GitCommit:"5cb923eecbe80d1ad76399aee234717c11931d9a", GitTreeState:"clean", GoVersion:"go1.12.9"}
Platform: Windows 10 64
What could be the reason?
In Helm v3, the release name is now mandatory as part of the commmand, see helm install --help
:
Usage:
helm install [NAME] [CHART] [flags]
Your command should be:
helm install my-nginx stable/nginx-ingress
Furthermore, Helm will not auto-generate names for releases anymore. If you want the "old behavior", you can use the --generate-name
flag. e.g:
helm install --generate-name stable/nginx-ingress
The v3 docs are available at https://v3.helm.sh/docs/, but as it is a beta version, the docs will not be accurate for a while. It's better to rely on the CLI --help
, that is auto-generated by Go/Cobra.
这篇关于头盔安装未知标志--name的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!