kubectl get pod
NAME READY STATUS RESTARTS AGE
my-nginx-6d97ddfff5-5jxvg 1/1 Running 0 37m
my-nginx-6d97ddfff5-h7qdz 1/1 Running 0 37m
执行:kubectl exec -it my-nginx-6d97ddfff5-h7qdz sh
结果:kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Error from server: error dialing backend: dial tcp 172.16.0.11:10250: i/o timeout
执行:kubectl exec -it my-nginx-6d97ddfff5-5jxvg sh
结果:kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
Error from server: error dialing backend: dial tcp 10.0.8.15:10250: i/o timeout
这是不是因为flannel的网络没有设置好? kubernetes-dashboard可以正常使用。第五章没有看,我直接来学习和添加ingress的。是不是有什么漏掉了?