背景:
在vm安装k8s过程中,出现cgroupfs报错,一直无法继续下去。
排查过程:
出现5个报错:
1:kubeadm cannot validate component configs
2:systemctl enable docker.service
3:cgroupfs
4:swap (runing with swap on is not supported)
5:FileContent --proc-sys-net-bridge-bridge-nf-call-iptables
解决过程:
1:暂时还未解决
2:已经有提示,直接运行命令 systemctl enable docker.service
4:关闭swap
sed -ri 's/.*swap.*/#&/' /etc/fstab 永久关闭swap