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后状态恢复 文章来源:https://www.toymoban.com/news/detail-517724.html
文章来源地址https://www.toymoban.com/news/detail-517724.html
到了这里,关于Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!