Charts: Helm Install for prometheus fails v3.0.1

Created on 10 Dec 2019  Â·  12Comments  Â·  Source: helm/charts

Hi,
trying to install prometheus via helm but keep on getting this error. Any ideas how to fix this?

helm install --generate-name stable/prometheus-operator --namespace monitor
Error: failed to download "stable/prometheus-operator" (hint: running helm repo update may help)

helm install --generate-name stable/prometheus --namespace monitor
Error: failed to download "stable/prometheus" (hint: running helm repo update may help)

helm repo update
Error: no repositories found. You must add one before updating

helm version
version.BuildInfo{Version:"v3.0.1", GitCommit:"7c22ef9ce89e0ebeb7125ba2ebf7d421f3e82ffa", GitTreeState:"clean", GoVersion:"go1.13.4"}

kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.6", GitCommit:"96fac5cd13a5dc064f7d9f4f23030a6aeface6cc", GitTreeState:"clean", BuildDate:"2019-08-19T11:13:49Z", GoVersion:"go1.12.9", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.10", GitCommit:"7a578febe155a7366767abce40d8a16795a96371", GitTreeState:"clean", BuildDate:"2019-05-01T04:05:01Z", GoVersion:"go1.10.8", Compiler:"gc", Platform:"linux/amd64"}

lifecyclstale

Most helpful comment

In Helm 3, the stable repository is not set. You have to manually add it.

$ helm repo add --help
add a chart repository

Usage:
  helm repo add [NAME] [URL] [flags]

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com

$ helm repo update

Then you can use stable charts like stable/prometheus-operator. Hope this helps!

All 12 comments

In Helm 3, the stable repository is not set. You have to manually add it.

$ helm repo add --help
add a chart repository

Usage:
  helm repo add [NAME] [URL] [flags]

$ helm repo add stable https://kubernetes-charts.storage.googleapis.com

$ helm repo update

Then you can use stable charts like stable/prometheus-operator. Hope this helps!

I manually added the stable repo but still getting the same error. Any help?

This helm repo add from @dubuc worked for me thank you! Helm v 3.0.2 on Mac OS X.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

$ helm install [name] stable/prometheus

I manually added the stable repo but still getting the same error. Any help?

helm repo update

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.

This issue is being automatically closed due to inactivity.

It worked for me and got the result also

[osboxes@osboxes ~]$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈Happy Helming!⎈

Try running those commands

helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo update

Hello! Same problem here. All the above solutions don't work.

+1

Was this page helpful?
0 / 5 - 0 ratings