问题1
Container 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
问题2
kubectl get nodes not Ready
进入到 没有 Ready 的node
systemctl status kubelet
Container runtime network not ready" networkReady="NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized"
因为缺少网络cni所以 把master cni 拷贝过来就可以了
scp master:/etc/cni/net.d/* /etc/cni/net.d/
问题3
发现某个pod 没有起来
kubectl logs --tail=10 -n kube-flannel kube-flannel-ds-clssq
问题4:
Error registering network: failed to acquire lease: node “master“ pod cidr not assigne
vim /etc/kubernetes/manifests/kube-controller-manager.yaml
加入
--allocate-node-cidrs=true
各模块配置路径
kubelet
/etc/systemd/system/kubelet.service
所有评论(0)