搭建高可用 k8s 集群后发现所有 nodes 都处于 NotReady 状态
NAME STATUS ROLES AGE VERSION
k8s-master0 NotReady master 91m v1.16.3
k8s-master1 NotReady master 61m v1.16.3
k8s-master2 NotReady master 48m v1.16.3
k8s-n3 NotReady <none> 23m v1.16.3
请问如何解决?
通过 journalctl 查看日志发现是没有给 pod 配置网络
$ journalctl -f -u kubelet
ontainer runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
使用下面的命令部署网络后问题就解决了
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml