环境
ubuntu18.04
配置过程
参考文献:
https://www.cnblogs.com/whuanle/p/12260471.html
https://blog.csdn.net/qq_35720307/article/details/87724172
网课:
https://www.bilibili.com/video/BV1Fx41197hp?from=search&seid=11625203404163405163
出现的问题记录
kubeadm init失败
sudo kubeadm init
[init] Using Kubernetes version: v1.21.0
[preflight] Running pre-flight checks
[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR Swap]: running with swap on is not supported. Please disable swap
[preflight] If you know what you are doing, you can make a check non-fatal with