k8s部署报错network: failed to find plugin “flannel“ in path [/opt/cni/bin]]
k8s部署报错network: failed to find plugin "flannel" in path [/opt/cni/bin]]
·
k8s在部署工作负载时,pod详情页提示以下问题
Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container "50f3931eac5991127a7371f5b4adeb9c53a37b65c267fbad7f56dd20a2f647dd" network for pod "sleep-668b75d4c4-68gq7": networkPlugin cni failed to set up pod "sleep-668b75d4c4-68gq7_default" network: failed to find plugin "flannel" in path [/opt/cni/bin], failed to clean up sandbox container "50f3931eac5991127a7371f5b4adeb9c53a37b65c267fbad7f56dd20a2f647dd" network for pod "sleep-668b75d4c4-68gq7": networkPlugin cni failed to teardown pod "sleep-668b75d4c4-68gq7_default" network: failed to find plugin "flannel" in path [/opt/cni/bin]]
Normal SandboxChanged 3m22s (x185 over 43m) kubelet Pod sandbox changed, it will be killed and re-created.
解决方案:
github下载地址:https://github.com/containernetworking/plugins/releases/tag/v0.8.6
(在1.0.0版本后CNI Plugins中没有flannel)
下载后通过xftp 上传到Linux /home目录解压
tar zxvf cni-plugins-linux-amd64-v0.8.6.tgz
复制 flannel 到 /opt/cni/bin/
cp flannel /opt/cni/bin/
删除pod,此时pod启动成功状态为Running
更多推荐
已为社区贡献5条内容
所有评论(0)