failed to find plugin “flannel“ in path [/opt/cni/bin]

K8s升级后coredns容器创建失败,出现如下错误

Events:
  Type     Reason                  Age                     From               Message
  ----     ------                  ----                    ----               -------
  Normal   Scheduled               9m39s                   default-scheduler  Successfully assigned kube-system/coredns-64897985d-v6m6c to k8s-m
  Warning  FailedCreatePodSandBox  9m39s                   kubelet            Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "6c9b442d7ccdfbfab06720f9802c5909769881d98e2cf6a3d965c08d45f28319": plugin type="flannel" failed (add): failed to find plugin "flannel" in path [/opt/cni/bin]
  Normal   SandboxChanged          4m28s (x25 over 9m38s)  kubelet            Pod sandbox changed, it will be killed and re-created.

解决办法是从网上下载插件安装

wget https://github.com/containernetworking/plugins/releases/download/v0.8.6/cni-plugins-linux-amd64-v0.8.6.tgz

tar zxvf cni-plugins-linux-amd64-v0.8.6.tgz

cp flannel /opt/cni/bin/

问题是解决了,但为什么以前没有这个问题:(

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值