Helm install unknown flag --name

后端 未结 2 959
感情败类
感情败类 2021-02-03 16:29

When I try to install a chart with helm:

helm install stable/nginx-ingress --name my-nginx

I get the error:

Error: unkn

相关标签:
2条回答
  • 2021-02-03 17:05

    The --name flag is no more in version 3.

    It should be

    helm install my-nginx stable/nginx-ingress
    

    Syntax:

    help install [name] [chart]

    0 讨论(0)
  • 2021-02-03 17:29

    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.

    0 讨论(0)
提交回复
热议问题