Helm V3 - Cannot find the official repo

KubernetesKubernetes HelmKubernetes Deployment

Kubernetes Problem Overview


I have been trying to install nginx ingress using helm version 3

helm install my-ingress stable/nginx-ingress

But Helm doesn't seem to be able to find it's official stable repo. It gives the message:

> Error: failed to download "stable/nginx-ingress" (hint: running helm > repo update may help)


I tried helm repo update. But it doesn't help.

I tried listing the repos helm repo list but it is empty.


I tried to add the stable repo:

helm repo add stable https://github.com/helm/charts/tree/master/stable

But it fails with:

> Error: looks like "https://github.com/helm/charts/tree/master/stable" > is not a valid chart repository or cannot be reached: failed to fetch > https://github.com/helm/charts/tree/master/stable/index.yaml : 404 Not > Found

Kubernetes Solutions


Solution 1 - Kubernetes

The stable repository is hosted on https://kubernetes-charts.storage.googleapis.com/. So, try the following:

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

EDIT 2020-11-16: the above repository seems to have been deprecated. The following should now work instead:

helm repo add stable https://charts.helm.sh/stable

Solution 2 - Kubernetes

Be aware that Helm v3 does not have the use of Tiller.

1. Install Helm v3:

curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 > get_helm.sh
chmod 700 get_helm.sh
./get_helm.sh

2. Install Ingress-Nginx:

helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm install my-nginx stable/nginx-ingress --set rbac.create=true 

Solution 3 - Kubernetes

From Helm Blog -

> On November 13, 2020 the stable and incubator charts repository will > reach the end of development and become archives. You can find that > many of the charts have moved to other, community managed, > repositories. You can discover these on the Artifact Hub.

The best way to discover a chart by searching the Artifact Hub. And if you select nginx-ingress from ORG Helm, you can see the instruction for adding a repo.

helm repo add nginx-stable https://helm.nginx.com/stable

Artifact Hub

Solution 4 - Kubernetes

Below solution worked for me.

# Below command is not working
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com/

Error: repo "https://kubernetes-charts.storage.googleapis.com/" is no longer available; try "https://charts.helm.sh/stable" instead

#Try this one, it's wokring.
$ helm repo add stable https://charts.helm.sh/stable

"stable" has been added to your repositories

Solution 5 - Kubernetes

The stable repositories are in helm hub https://hub.helm.sh/charts

Install the nginx chart for nginx ingress

helm install bitnami/nginx --version 6.2.0

Solution 6 - Kubernetes

At the time of writing this answer none of the previous comments worked for me. I want to share what did work for me in case some else is in the same situation:

helm repo add nginx-stable https://helm.nginx.com/stable
helm repo update
helm install my-nginx nginx-stable/nginx-ingress --set rbac.create=true

if that doesn't work, try to search the new chart and use the updated name (in case it changed)

helm search repo nginx

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionCharlieView Question on Stackoverflow
Solution 1 - KubernetesweibeldView Answer on Stackoverflow
Solution 2 - KubernetesDanielView Answer on Stackoverflow
Solution 3 - KubernetesPankajView Answer on Stackoverflow
Solution 4 - Kubernetesdevops-adminView Answer on Stackoverflow
Solution 5 - KubernetesShankarView Answer on Stackoverflow
Solution 6 - KubernetesMiguel SánchezView Answer on Stackoverflow