Error: validation: chart.metadata is required when using helm install Traefik

Dolphin picture Dolphin · Jan 28, 2020 · Viewed 11.3k times · Source

I am now install Traefik using helm(version.BuildInfo{Version:"v3.0.2", GitCommit:"19e47ee3283ae98139d98460de796c1be1e3975f", GitTreeState:"clean", GoVersion:"go1.13.5"}),follow this doc:

git clone https://github.com/containous/traefik-helm-chart
helm install ./traefik-helm-chart

give me this error:

Error: must either provide a name or specify --generate-name

and I am using command like this:

helm install ./traefik-helm-chart --generate-name

and give this tips:

Error: validation: chart.metadata is required

what should I do to fix this?

Answer

Prashanth Sams picture Prashanth Sams · Feb 10, 2020

You need to give the exact path where the Chart.yaml file is located

helm2

helm install --name <release-name> <chart-path>
(e.g., helm install --name prometheus ./prometheus/)

helm3

helm3 install <release-name> <chart-path>
(e.g., helm3 install prometheus .)

helm3 install --generate-name <chart-path>