kubeasz icon indicating copy to clipboard operation
kubeasz copied to clipboard

cilium 不支持containerd

Open zhuchance opened this issue 3 years ago • 0 comments

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

image

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

问题原因:

  • 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

zhuchance avatar Jun 10 '21 08:06 zhuchance