question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error on GKE after helm init

See original GitHub issue

On GKE following the docs I get this on helm init:

$ helm init
Creating /home/brooksambrose/.helm
Creating /home/brooksambrose/.helm/repository
Creating /home/brooksambrose/.helm/repository/cache
Creating /home/brooksambrose/.helm/repository/local
Creating /home/brooksambrose/.helm/plugins
Creating /home/brooksambrose/.helm/starters
Creating /home/brooksambrose/.helm/cache/archive
Creating /home/brooksambrose/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /home/brooksambrose/.helm.
Error: error installing: Post http://localhost:8080/apis/extensions/v1beta1/namespaces/kube-system
/deployments: dial tcp 127.0.0.1:8080: getsockopt: connection refused

Comes up again a few steps later at helm install:

$ helm install jupyterhub/binderhub --version=v0.1.0-789e30a
 --name=binder --namespace=binder -f secret.yaml -f config.yaml
Error: Get http://localhost:8080/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cnam
e%3Dtiller: dial tcp 127.0.0.1:8080: getsockopt: connection refused

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ProProgrammercommented, Jul 11, 2018

I my case the issue was that the current context was not set correctly, I ran gcloud container clusters get-credentials <cluster_name> --zone <zone_name> and post that I checked that the context has been set for kubectl by running kubectl config current-context and it worked as expected.

0reactions
betatimcommented, Nov 9, 2017

Was it/is it using the wrong credentials? I remember getting a weird sounding error similar to that when I switched projects or something (sorry for vagueness). I think I used https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials to fix it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to initialize helm (tiller) on newly created GKE cluster
However trying to initialise tiller gives me the following error: Error: unknown flag: --service-account. Why is that? Helm 3 is a major ...
Read more >
Troubleshooting | Google Kubernetes Engine (GKE)
GKE returns an error if there are issues with a workload's Pods. You can check the status of a Pod using the kubectl...
Read more >
Troubleshooting - Helm
The issue is that your local Kubernetes config file must have the correct credentials. When you create a cluster on GKE, it will...
Read more >
GitLab Runner Helm Chart
Troubleshooting a Kubernetes installation. ERROR: Job failed (system failure): secrets is forbidden. If you see the following error: Using Kubernetes ...
Read more >
Helm CLI returns either connection errors or errors about ... - IBM
This probably happened when you configured your command line client by using the kubectl commands and ran the helm init command with the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found