I am working on helm 2 and trying to deploy Tiller as pod.
>helm init --service-account tiller
But i am getting below Error: Error: error initializing: Looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: Get https://kubernetes-charts.storage.googleapis.com/index.yaml: dial tcp 172.217.2.240:443: connect: connection timed out
Has anyone faced this error and if yes , what is the recommended way to overcome this for helm2?
Helm chart repositories are remote servers containing a collection of Kubernetes resource files. Charts are displayed in directory trees and packaged into Helm chart repositories. To deploy applications with Helm, you need to know how to manage repositories.
The helm init command has been removed. It performed two primary functions. First, it installed Tiller. This is no longer needed.
Helm uses a packaging format called Charts. A Helm Chart is a collection of files that describe a set of Kubernetes resources. Like other package manager formats based on convention, Helm Charts follow a directory structure/tree. The Helm Charts can be archived and sent to a Helm Chart Repository.
Helm versions prior to 2.17.0
have the deprecated https://kubernetes-charts.storage.googleapis.com/index.yaml as the default stable repository, which no longer resolves. The new repo is https://charts.helm.sh/stable. You can choose to:
Use the --stable-repo-url
argument to specify the new repository:
helm init --stable-repo-url https://charts.helm.sh/stable --service-account tiller
Use the --skip-refresh
argument and replace the stable repo:
helm init --client-only --skip-refresh
helm repo rm stable
helm repo add stable https://charts.helm.sh/stable
Upgrade helm to 2.17.0
or later.
helm init --client-only --skip-refresh
helm repo rm stable
helm repo add stable https://charts.helm.sh/stable
update the urls like below solved my issue
Name : stable
Old Location:https://kubernetes-charts.storage.googleapis.com
New Location:https://charts.helm.sh/stable
Name : incubator Old Location:https://kubernetes-charts-incubator.storage.googleapis.com New Location:https://charts.helm.sh/incubator
Reference:https://helm.sh/blog/new-location-stable-incubator-charts/
repo is not avail. use below repo.
k8scka@master:~$ helm3 repo add stable https://charts.helm.sh/stable
"stable" has been added to your repositories
k8scka@master:~$
I had this issue when targeting a helm_release
resource in Terraform that was using the helm2 provider. We tracked it down to the root cause being a missing ~/.helm/repository/repositories.yaml
file that helm2 uses, which must be also used by the Terraform provider.
The file can be recreated with a helm v2 client with
helm2 init --stable-repo-url https://charts.helm.sh/stable --client-only
There is no need to keep the helm v2 client afterwards if you only want to use Terraform.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With