在执行kubeadm init初始化控制平面节点的时候,出现了如下的问题:
问题一:
[ERROR Swap]: running with swap on is not supported. Please disable swap
解决方法:
执行如下命令关闭swap:
#关掉swap
swapoff -a
#注释掉最后一行
vi /etc/fstab
#reboot
reboot now
结果如下图示:
问题二:[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd".
问题三:failed to pull image