您的位置 首页 kubesphere

“Unable to update cni config” err=”no networks found in /etc/cni/net.d”

 

 

 "Unable to update cni config" err="no networks found in /etc/cni/net.d"

 

join node failed: Failed to exec command: sudo -E /bin/bash -c "/usr/local/bin/kubeadm join --config=/etc/kubernetes/kubeadm-config.yaml --ignore-preflight-errors=FileExisting-crictl,ImagePull" 
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR Port-10250]: Port 10250 is in use
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher: Process exited with status 1

 

解决方案:

 

找了半天是这个原因:

cat /var/lib/kubelet/kubeadm-flags.env

把里边的镜像改为:

 

KUBELET_KUBEADM_ARGS="--cgroup-driver=systemd --network-plugin=cni --pod-infra-container-image=registry.cn-beijing.aliyuncs.com/kubesphereio/pause:3.5"

 

然后重启 kubelet

systemctl restart kubelet.service 

 

还要准备镜像

 

 

需要2个镜像:

https://bmshare.oss-cn-beijing.aliyuncs.com/images/kubesphere/worker%E4%B8%8A%E7%94%A8%E7%9A%84/k8s-dns-node-cache-1.15.12.tar.gz
https://bmshare.oss-cn-beijing.aliyuncs.com/images/kubesphere/worker%E4%B8%8A%E7%94%A8%E7%9A%84/fluent-bit-v1.8.11.tar.gz

 

欢迎来撩 : 汇总all

白眉大叔

关于白眉大叔linux云计算: 白眉大叔

热门文章