kubeadm 安装k8s集群后,master节点notready问题解决方案

使用kubeadm 安装k8s集群后,加载calico cni 网络组件后,master节点notready问题

表现为:

使用命令查看日志:journalctl -f -u kubelet

报错如下:

Failed to start ContainerManager failed to initialize top level QOS containers: failed to update top level Burstable QOS cgroup : failed to set supported cgroup subsystems for cgroup [kubepods burstable]: failed to find subsystem mount for required subsystem: pids
kubeadm 安装k8s集群后,master节点notready问题解决方案_第1张图片

此问题解决方案为:

echo 'KUBELET_EXTRA_ARGS="--feature-gates SupportPodPidsLimit=false --feature-gates SupportNodePidsLimit=false"' > /etc/sysconfig/kubelet
systemctl stop kubelet
systemctl start kubelet
systemctl status kubelet

再次查看nodes状态,发现文件POD全部加载成功,nodes状态也正常了。

你可能感兴趣的:(kubernetes,java,docker)