This tutorial guides you on how to resolve 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 while running helm command.
Helm 3 – Not a valid chart repository or cannot be reached: failed to fetch : 404 Not Found
I wanted to install redis using helm version 3. When I ran the following helm install command I got the error as shown below.
$ helm install redis stable/redis Error: failed to download "stable/redis" (hint: running `helm repo update` may help)
Then, I tried checking whether any stable chart repository was added.
$ helm repo list Error: no repositories to show
Therefore, there are no repositories to show.
Hence, I tried adding a stable repo, but it failed with an error 404 Not Found as shown below.
$ helm repo add stable https://github.com/helm/charts/tree/master/stable
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
Solution: Add stable official helm repo (Update)
The stable helm repository was hosted on https://kubernetes-charts.storage.googleapis.com/, but now it is deprecated and you will get the following error which says this repo is not longer available.
$ 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
Therefore, use the latest stable official repo as shown below. After adding stable official repo you should see the success response which says “stable” repo has been added.
$ helm repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories
Verify if stable official repo is added to your repositories.
$ helm repo list NAME URL stable https://charts.helm.sh/stable
That’s it a valid chart repository or stable official repository has been added successfully.
Hope it helped 🙂
You’ll also like:
- Helm error: cannot list configmaps in the namespace “kube-system”
- Google cloud shell command to get the default PROJECT_ID – GCP
- Docker EXPOSE Port only to the Host on Google Cloud
- Get Docker Container’s IP Address from the Host
- Copy Files between Host and Docker Container
- What is ImagePullBackOff status on a Kubernetes pod ?
- Run ionic app in android studio emulator
- List all Containers running in Kubernetes Pod
- List all versions of helm chart available using helm search repo
- Delete or uninstall specific helm chart resource
- Error: helm install unknown flag: –name
- Build a Docker Image with a Dockerfile and Cloud Build in GCP?
- How to create GCP project on Google Cloud Platform
- no matches for kind “Deployment” in version “extensions/v1beta1”
- Is it possible to change Google Cloud Platform Project ID ?
- Purpose of –purge flag in helm delete command ?
- Make manual payment or pay early for your Google Cloud Platform charges
- Open specific port such as 8082 in Google Compute Engine
- Delete or unset clusters contexts and users entries from kubectl config