kubeasz
kubeasz copied to clipboard
cilium 不支持containerd
osversion: Centos7
kernel version: 5.12.9-1.el7.elrepo.x86_64
ezctl version: 2.x
k8s version: 1.20.0
Error event:
MountVolume.SetUp failed for volume "docker-socket" : hostPath type check failed: /var/run/docker.sock is not a socket file
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
问题原因:
- k8s 1.20.x 不使用docker后,导致cilium无法挂载到/var/run/docker.sock这个报错
===============================
cilium.yaml
- mountPath: /var/run/docker.sock name: docker-socket ===============================
修复方法:
- 使用新版本的cilium安装yaml文件: https://raw.githubusercontent.com/cilium/cilium/v1.8/install/kubernetes/quick-install.yaml
kubectl delete -f ./cilium.yaml
kubectl apply -f https://raw.githubusercontent.com/cilium/cilium/v1.8/install/kubernetes/quick-install.yaml