Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Helm install unknown flag --name

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?

like image 567
Charlie Avatar asked Sep 16 '19 16:09

Charlie


People also ask

What is release name in helm install?

In Helm version 3, it's the first parameter to the helm install command. Helm won't generate a name automatically unless you explicitly ask it to helm install --generate-name . helm template also takes the same options. Also, in helm 3, if you want to specify a name explicitly, you should use the --name-template flag.

Is helm being deprecated?

On November 13th, 2020 the Stable and Incubator Helm chart repositories will be deprecated and all Helm-related images will no longer be available from GCR.

How do I know if Tiller is installed?

After helm init , you should be able to run kubectl get pods --namespace kube-system and see Tiller running. Once Tiller is installed, running helm version should show you both the client and server version.


2 Answers

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.

like image 109
Eduardo Baitello Avatar answered Oct 16 '22 16:10

Eduardo Baitello


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

It should be

helm install my-nginx stable/nginx-ingress

Syntax:

help install [name] [chart]

like image 26
Charlie Avatar answered Oct 16 '22 15:10

Charlie