Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

helm install: Error: This command needs 1 argument: chart name

Going thru 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

trying to install the chart:

helm install full-coral ./mychart

but it fails with:

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"}

Am I missing something obvious? Any help will be appreciated

like image 563
Łukasz Avatar asked Mar 02 '20 13:03

Łukasz


People also ask

What is the command to install a helm chart?

By absolute URL: helm install mynginx https://example.com/charts/nginx-1.2.3.tgz. By chart reference and repo url: helm install --repo https://example.com/charts/ mynginx nginx. By OCI registries: helm install mynginx --version 1.2. 3 oci://example.com/charts/nginx.

How do you pass values to helm chart?

You can use a --values flag in your Helm commands to override the values in a chart and pass in a new file. Specify the name of the new file after the --values flag in the Helm command. Example: helm upgrade --install <service> -f values.

What is chart Yaml in Helm?

yaml: This is where you'll put the information related to your chart. That includes the chart version, name, and description so you can find it if you publish it on an open repository. Also in this file you'll be able to set external dependencies using the dependencies key. values.


1 Answers

In your install command the name is specified as for Helm v3.

In Helm v2.14 the chart name is specified via --name.

-n, --name string release name. If unspecified, it will autogenerate one for you

See: https://v2-14-0.helm.sh/docs/helm/#helm-install

So in your case this should work

helm install --name full-coral ./mychart
like image 131
brass monkey Avatar answered Oct 19 '22 19:10

brass monkey