Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory
k8s创建Pod提示NetworkPlugin cni failed to set up .. network:open/ run/flannel/subnet.env: no such file or directory
·
K8s在创建pod时发现pod状态为ContainerCreating状态
检查pod的日志发现提示
Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "fdd30141bf51b68d4f08a2405ea287508aa0d585d30c853a849d9d57cb7c1062" network for pod "tiller-deploy-58565b5464-zhnml": NetworkPlugin cni failed to set up pod "tiller-deploy-58565b5464-zhnml_kube-system" network: open /run/flannel/subnet.env: no such file or directory
在对应node节点上 新建 /run/flannel/subnet.env
这个文件写入内容:
FLANNEL_NETWORK=10.244.0.0/16
FLANNEL_SUBNET=10.244.0.1/24
FLANNEL_MTU=1450
FLANNEL_IPMASQ=true
后删除异常pod后状态恢复
更多推荐
已为社区贡献17条内容
所有评论(0)