This repository has been archived by the owner on Apr 22, 2020. It is now read-only.
can not execute command in a container using kubectl exec #337
Comments
Looks like a networking setup issue. I don't know the exact cause for this but the apiserver and proxy are trying to resolve the hostname which is the same on all nodes and not really stored with etcd.
I went ahead and changed the hostname on all nodes to match the node names and exec is now working.
|
related #295 |
(Just skimming but this might be related: kubernetes/kubernetes#33718) |
I guess then we need to figure out why the hostname gets picked up (which we do not customize) instead of the vm node name returned. |
This was referenced Feb 21, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Deployed K8S 1.5.3 cluster using kubernetes-anywhere latest code
Created pod using following YAML
When tried to execute command on the container of inject-pod, kubectl exec failed with error: unable to upgrade connection: pod does not exist
When tried to execute command using docker exec it worked.
verified --enable-debugging-handlers is set for kubelet in master and all workder node.
kubectl config from worker node
kubectl config from master node
Expectation
After deployment user should be able to execute command in the pod container using
kubectl exec
cc: @kerneltime @abrarshivani @BaluDontu @tusharnt @pdhamdhere
The text was updated successfully, but these errors were encountered: