kubernetes的node NotReady

使用 kubectl describe node <node name>可以看到

KubeletNotReady runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized

参考:https://github.com/kubernetes/kubernetes/issues/48798#issuecomment-367966047

1.删除/etc/systemd/system/kubelet.service.d/10-kubeadm.conf里最后一行里的$KUBELET_NETWORK_ARGS

2.重启kubelet  systemctl enable kubelet && systemctl start kubelet

3.重新加入 kubeadm reset || kubeadm join ….

《kubernetes的node NotReady》上有3条评论

  1. 下面的回复中有写道:

    Note that KUBELET_NETWORK_ARGS is what tells kubelet which kind of network plugin to expect. If you remove it then kubelet expects no plugin, and therefore you get whatever the underlying container runtime gives you: typically Docker “bridge” networking.

    This is fine in some cases, particularly if you only have one machine. It is not helpful if you actually want to use CNI.

发表评论

电子邮件地址不会被公开。 必填项已用*标注