Helm V3 - Cannot find the official repo
Asked Answered
E

6

92

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

Environmentalist answered 17/9, 2019 at 8:26 Comment(3)
@MWZ How is it a duplicate of a question which says --name flag is unknown?Environmentalist
@MWZ One question should discuss one problem.Environmentalist
@MWZ This is in absolutely no way a duplicate of that question. 100% unrelated.Toffic
M
192

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
Middaugh answered 17/9, 2019 at 9:1 Comment(2)
Will the repo in google storage continue to be available after mentioned deprecation in stable charts repo?Bowls
Error: repo "kubernetes-charts.storage.googleapis.com" is no longer available; try "charts.helm.sh/stable" insteadJerky
L
7

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 
Lucullus answered 13/5, 2020 at 22:20 Comment(0)
C
6

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

Cockaleekie answered 10/7, 2021 at 15:54 Comment(3)
I'm getting Error: nginx chart not found in repo https://helm.nginx.com/stableKatharinakatharine
Works for me - 1) helm repo add nginx-stable helm.nginx.com/stable 2) helm repo update 3)helm install my-release nginx-stable/nginx-ingress Check steps at artifacthub.io/packages/helm/nginx/nginx-ingressCockaleekie
Interestingly it worked with this link: charts.bitnami.com/bitnami using Chart SourcesKatharinakatharine
A
1

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

Amatory answered 12/11, 2020 at 10:38 Comment(0)
T
0

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
Toddtoddie answered 4/9, 2020 at 8:14 Comment(1)
Error: looks like "hub.helm.sh/charts" is not a valid chart repository or cannot be reached: error converting YAML to JSON: yaml: line 2: mapping values are not allowed in this contextCloninger
J
0

I solved that problem by putting in this line:

helm repo add stable https://charts.jetstack.io
Jenny answered 11/10, 2022 at 21:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.