-
Notifications
You must be signed in to change notification settings - Fork 7.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error forwarding ports: error upgrading connection #1455
Comments
Can you tell us more about your Kubernetes cluster (version, installation method) and which version of Helm you're running? Thanks. |
@technosophos I created 5 Ubuntu servers on DigitalOcean and used Kubeadm:
to install on Ubuntu:
Then on my local machine using OSX:
I installed Kubectl and connected to my cluster:
Then installed Helm using I think I've gone a fairly safe route, I used the latest stable release of Ubuntu and installed the recommended release of kubeadm, which installed the latest stable release of kubeclt and then connected to it from my local machine and used brew to install helm, so my set-up should be pretty typical. I'm able to use kubeclt on my local machine fine, I can use manifesting to get things set up and etc, the only thing I can't get working is Helm. |
Interesting that it is failing a DNS lookup. Is SkyDNS running in your Kube cluster?
|
Can you start a port-forward using kubectl?
|
@technosophos Looks like DNS is there:
|
@adamreese Looks like that gives back a similar error. |
Just tried setting up a cluster again from scratch and still having the same issue. When using The options are:
Should I chose another one? |
I'm running Weave on a single-node Kubeadm-based install. I can open a tunnel with There is the possibility that asking about this in the #kubernetes-users slack channel or on StackOverflow might yield some answers, since this is actually a Kubernetes configuration thing, not a Helm-specific thing. I'll do some more hunting and update here if I find out anything. |
@Simon-lush Based on the names of your apiserver, scheduler, and controller-manager pods, it seems like kubectl/helm should be trying to lookup |
I found help on the Slack group and now have Helm working. @awh explained that
And suggested a work around would be to:
|
I'm going to leave this open until I get the above put into the install FAQ. I suspect this is an issue that may crop up again. Thanks for the help @mgoodness and the follow-up @Simon-lush . |
Thanks @technosophos for your help in IRC today the helm and deis community are really helpful and responsive.
We may run into issues later without having completed many of the suggested work-around steps above, but for now we're moving forward. Hope this helps others. |
Seeing this error after installing helm/tiller on the tectonic stack. I can search helm and use kubectl just fine but fails upon installing new helm chart from default repo. Any idea when a fix will be merged?
|
'Just wanted to note (for me) that as of the previous release of helm |
@evfurman, just a thought. . . (not sure about tectonics, but for others with kubernetes (kube-aws, etc.), one thing to note is that if your kube cluster is behind a load balancer (in AWS ELB, etc.), your processes for re-deploys may not manage any existing DNS records. So, if you had a previous cluster with an ELB with a CNAME for my-cluster.foo and you redeploy a new cluster with the same name, the DNS record will still point to the old ELB CNAME and you will see that error. In this case, take a look at the new clusters ELB and its FQDN and update any existing DNS CNAMEs to resolve. |
@technosophos Any idea how to fix this when using helm inside of a pod in the k8? I'm using gitlab-runners to build projects inside of pods. Kubectl works, its pointing to
|
I got similar error today, any advice? Thank you. $ helm ls
Error: forwarding ports: error upgrading connection: error dialing backend: ssh: rejected: connect failed (Connection timed out)
$ kubectl -n kube-system port-forward tiller-deploy-b774bc49f-6lthf 44134
error: error upgrading connection: error dialing backend: ssh: rejected: connect failed (Connection timed out) |
helm not work when the number nodes of cluster larger than 1,
|
Not sure if this is related. I am getting this error in AKS but not in GKE. I use helm from within the cluster to make releases.
Just to be safe (in case this is unrelated), I created a new issue: #4254 |
@axot if you're having issues with |
Hi guys, I have the same issue on Minikube (on Archlinux - so most recent stable versions)
it's occurs quite randomly. but most often after waking up my laptop. |
Try and see if you can mail it down to a port-forward issue like @axot did in #1455 (comment). It's most likely a connection issue between your laptop and the API server, so it's not anything we can take action on. |
looks like this issue is still happening even when I followed all the steps in this PR (https://github.com/helm/helm/pull/1492/files). |
I've just hit this on a brand new set up of kubernetes on nixos (single machine running master and node). I've trying to follow the instruction here https://github.com/weaveworks/flux/blob/master/site/helm-get-started.md and get to
I tried this earlier today just running |
Is RBAC enabled? Check and see if you can |
Thank @bacongobbler - I just tried that and got the same error - I'm a bit new to k8s, could you point me at any decent resources to understand what's going on? For example I don't really know how to determine what's enabled or not, so I'm not sure if RBAC is enabled... |
Hi, from my side I solved the Error: forwarding ports: error upgrading connection: Upgrade request required issue with the following command: $ export HELM_HOST=":44134"
$ tiller -listen ${HELM_HOST} -alsologtostderr >/dev/null 2>&1 &
Configuration:
|
helm does not work with the folowing K8S cluster
|
I'm getting the exact error too |
@maximestevenot thanks for your solution. It worked for me. The error is gone now. |
Hi, This worked for me. Could you please explain us your solution ? |
@nidhi-ag It starts a local instance of tiller which connects to your remote Kubernetes cluster which works around the error related to failing to connect to the remote instance of tiller. https://helm.sh/docs/install/#running-tiller-locally |
I have Helm install locally and Tiller on my cluster, everything looks healthy, but running
helm install stable/mysql
is giving me:The text was updated successfully, but these errors were encountered: