当前位置:   article > 正文

k8s——排错指南_failed to read pod ip from

failed to read pod ip from

一般的k8s排错步骤:查看node状态→查看pod状态→查看kubelet系统日志

一、常用命令:

1、查看各节点状态:kubectl get node <node - name>

2、查看node事件:kubectl describe node <node - name>

3、查看Pod状态:kubectl get pod -o wide

4、查看Pod事件:kubectl describe pod <pod - name>

5、查看Pod日志文件:kubectl logs -f <pod - name>

6、进入pod内部:kubectl exec -it <pod - name> /bin/bash

7、查看系统Kubelet 日志: journalctl -l -u kubelet -n 1000

8、查询副本编辑器:kubectl get rc <pod - name>

9、修改rc环境变量: kubectl edit pod | grep <pod - name>

二、常见错误:

1、The connection to the server localhost:8080 was refused - did you specify the right host or port?


 1. echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
 2. source ~/.bash_profile

  • 1
  • 2
  • 3
  • 4

2、#failed to read pod IP from plugin/docker: NetworkPlugin cni failed on the status hook for pod “nginx-ingress-controller-7bff4d7c6-n7g62_default”: CNI failed to retrieve network namespace path: cannot find network namespace for the terminated container

重启docker服务

systemctl restart docker
  • 1

k8s pod排除指南

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/929719
推荐阅读
相关标签
  

闽ICP备14008679号