kubectl不能在其他节点上执行或记录pod

时间:2017-11-08 01:19:29

标签: kubernetes

v1.8.2,由kubeadm安装

2节点:

    NAME                    STATUS    ROLES     AGE       VERSION
192-168-99-102.node     Ready     <none>    8h        v1.8.2
192-168-99-108.master   Ready     master    8h        v1.8.2

运行nginx进行测试:

NAME                    READY     STATUS    RESTARTS   AGE       IP            NODE
curl-6896d87888-smvjm   1/1       Running   0          7h        10.244.1.99   192-168-99-102.node
nginx-fbb985966-5jbxd   1/1       Running   0          7h        10.244.1.94   192-168-99-102.node
nginx-fbb985966-8vp9g   1/1       Running   0          8h        10.244.1.93   192-168-99-102.node
nginx-fbb985966-9bqzh   1/1       Running   1          7h        10.244.0.85   192-168-99-108.master
nginx-fbb985966-fd22h   1/1       Running   1          7h        10.244.0.83   192-168-99-108.master
nginx-fbb985966-lmgmf   1/1       Running   0          7h        10.244.1.98   192-168-99-102.node
nginx-fbb985966-lr2rh   1/1       Running   0          7h        10.244.1.96   192-168-99-102.node
nginx-fbb985966-pm2p7   1/1       Running   0          7h        10.244.1.97   192-168-99-102.node
nginx-fbb985966-t6d8b   1/1       Running   0          7h        10.244.1.95   192-168-99-102.node

主人的kubectl exec pod就可以了!

但是当我在其他节点上执行pod时,返回错误:

kubectl exec -it nginx-fbb985966-8vp9g bash

error: unable to upgrade connection: pod does not exist

0 个答案:

没有答案