参考:
https://blog.csdn.net/qq_43279371/article/details/107622819
https://www.jianshu.com/p/27a8187af0e9
《Kubernetes权威指南》第2章
问题:
因为Kubernetes设置cgroupdriver为systemd,而docker服务的cgroupdriver默认为cgroupfs,建议修改为systemd:
[root@master ~]# cat /etc/docker/daemon.json { "registry-mirrors": ["https://xxs4y74g.mirror.aliyuncs.com"], "exec-opts": ["native.cgroupdriver=systemd"] }
kubectl apply -f "https://docs.projectcalico.org/manifests/calico.yaml"
/etc/cni/net.d/10-calico.conflist /etc/cni/net.d/calico-kubeconfig /opt/cni/bin/calico /opt/cni/bin/calico-ipam