错误问题1:

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

解决方法:
在kubelet服务文件启动项加上
–feature-gates SupportPodPidsLimit=false --feature-gates SupportNodePidsLimit=false

操作:

vi /usr/lib/systemd/system/kubelet.service.d/10-kubeadm.conf
#发现ExecStart=后面添加参数
ExecStart="--feature-gates SupportPodPidsLimit=false --feature-gates SupportNodePidsLimit=false"
#或者更改引用变量$KUBELET_EXTRA_ARGS
vi /etc/sysconfig/kubelet
KUBELET_EXTRA_ARGS=--feature-gates SupportPodPidsLimit=false --feature-gates SupportNodePidsLimit=false

重启服务

systemctl daemon-reload && systemctl restart kubelet

错误问题2:

卡在飞机场哪里超时。
使用docker info 查看cgroup驱动是否为systemd,若不是请修改/etc/docker/docker.json
添加

“exec-opts”: [“native.cgroupdriver=systemd”]

Logo

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

更多推荐