Charts: https://kubernetes-charts.storage.googleapis.com not reachable in China. Set up a mirror.

Created on 18 Jul 2018  路  6Comments  路  Source: helm/charts

The site "https://kubernetes-charts.storage.googleapis.com" is blocked by the Chinese country wide firewall (GFW).

This causes errors during helm init:

$ /usr/local/bin/helm init --client-only
Creating /Users/XXX/.helm 
Creating /Users/XXX/.helm/repository 
Creating /Users/XXX/.helm/repository/cache 
Creating /Users/XXX/.helm/repository/local 
Creating /Users/XXX/.helm/plugins 
Creating /Users/XXX/.helm/starters 
Creating /Users/XXX/.helm/cache/archive 
Creating /Users/XXX/.helm/repository/repositories.yaml 
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com 
Error: 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: net/http: TLS handshake timeout

There are unofficial mirrors such as

But they're far from being stable. Please provide an "official" mirror on a non-googleish web site.

lifecyclstale

Most helpful comment

You can use azure mirrors:
Delete the original repo:

helm repo remove stable

Add repo:

helm repo add stable http://mirror.azure.cn/kubernetes/charts/
helm repo add incubator http://mirror.azure.cn/kubernetes/charts-incubator/

@DNXie

All 6 comments

Using the -i flag will let you add one of the unofficial mirrors instead of the stable repo.

We are likely to move the repository in the future, but it will take some time.

@technosophos @gcontini

I got the same problem and tried:

./helm init -i https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts

I still got the error:

~
Creating /home/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Error: 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.161.176:443: connect: connection timed out
~

After adding param. --client-only to it, it runs successfully. However, it didn't install a so-called tiller:

Not installing Tiller due to 'client-only' flag having been set

Then when I try to install GCP operator by running:

helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
helm install incubator/sparkoperator --namespace spark-operator

It suggests an error: Error: could not find tiller.

Any suggestions?

You can use azure mirrors:
Delete the original repo:

helm repo remove stable

Add repo:

helm repo add stable http://mirror.azure.cn/kubernetes/charts/
helm repo add incubator http://mirror.azure.cn/kubernetes/charts-incubator/

@DNXie

transferring this issue over to helm/charts for visibility.

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.

Was this page helpful?
0 / 5 - 0 ratings