k8s节点NotReady问题处理

1.网络问题导致节点notReady

因为网络使用calico,calico未安装,k8s节点已经安装。如下查看节点不正常

[root@docker227 ~]# kubectl get node
NAME             STATUS     AGE       VERSION
192.168.14.228   NotReady   11m       v1.6.2
192.168.14.229   NotReady   11m       v1.6.2

打印node中日志 journalctl -f
在这里插入图片描述

2. 问题解决

安装使用的网络组建calico即可。
安装好后

[docker@docker227 ~]$ kubectl get node
NAME             STATUS    AGE       VERSION
192.168.14.228   Ready     21m       v1.6.2
192.168.14.229   Ready     21m       v1.6.2

打印node中日志 journalctl -f正常

3月 01 01:25:13 docker228 kubelet[17366]: I0301 01:25:13.280772   17366 qos_container_manager_linux.go:285] [ContainerManager]: Updated QoS cgroup configuration
3月 01 01:25:14 docker228 kubelet[17366]: I0301 01:25:14.268636   17366 operation_generator.go:597] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/946bdede-3b7c-11e9-8a71-000c29d9b8ab-calico-cni-plugin-token-9dtbw" (spec.Name: "calico-cni-plugin-token-9dtbw") pod "946bdede-3b7c-11e9-8a71-000c29d9b8ab" (UID: "946bdede-3b7c-11e9-8a71-000c29d9b8ab").
3月 01 01:25:30 docker228 kubelet[17366]: I0301 01:25:30.332346   17366 operation_generator.go:597] MountVolume.SetUp succeeded for volume "kubernetes.io/secret/0e1dc361-3b7d-11e9-8a71-000c29d9b8ab-default-token-1fvmv" (spec.Name: "default-token-1fvmv") pod "0e1dc361-3b7d-11e9-8a71-000c29d9b8ab" (UID: "0e1dc361-3b7d-11e9-8a71-000c29d9b8ab").
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐