kubernetes: kubectl exec fails on v1.6.1 to any pod
OS: Centos 7 Vsphere
Kubeadm init --kubernetes-version v1.6.1 successful sudo cp /etc/kubernetes/admin.conf $HOME/ sudo chown $(id -u)😒(id -g) $HOME/admin.conf export KUBECONFIG=$HOME/admin.conf
But kubectl exec errors out due to below error, please help
[root@dotricorder03-master-01 templates]# export KUBECONFIG=$HOME/admin.conf
[root@dotricorder03-master-01 templates]# **kubectl exec -it zookeeper-0 bash**
error: error sending request: Post https://172.22.16.69:6443/api/v1/namespaces/default/pods/zookeeper-0/exec?command=bash&container=zookeeper&container=zookeeper&stdin=true&stdout=true&tty=true: EOF
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 23 (9 by maintainers)
@lnquy try export proxy export no_proxy=“127.0.0.1, localhost, {{ YOUR_MASTER_IP }}” This worked for me and now i am closing the issue