Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory

这篇具有很好参考价值的文章主要介绍了Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

K8s在创建pod时发现pod状态为ContainerCreating状态

Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory,K8s,kubernetes,docker,linux检查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

Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory,K8s,kubernetes,docker,linux

在对应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提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory,K8s,kubernetes,docker,linux

 后删除异常pod后状态恢复 

Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory,K8s,kubernetes,docker,linux文章来源地址https://www.toymoban.com/news/detail-517724.html

到了这里,关于Pod提示NetworkPlugin cni failed to set up .. network:open/run/flannel/subnet.env:nosuchfileordirectory的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • K8S异常之Unable to update cni config err=no vaild network found in /etc/cni/net.d

    我们在初始化k8s节点的时候,可能会遇到类似如下问题 Unable to update cni config err=no vaild network found in /etc/cni/net.d ,一般表示网络不通。 网上很多方法经过尝试都不好使。最后出现了 /opt/cni/bin/flannel permission denied (无权限读取flannel文件)的异常。 查看kubelet的状态 systemctl sta

    2024年02月17日
    浏览(39)
  • Everything up-to-date branch ‘master‘ set up to track ‘origin/master‘.

    1.当用 git push -u origin master 用git上传到远程仓库的时候 出现报错 2.原因:是因为你的本地仓库 没有新增最新的文件 ,巧妇难为无米之炊,自然就无法上传到远程仓库上了。 3.解决:新增一个文件,再执行一次 git push -u origin master

    2024年02月12日
    浏览(36)
  • 《Towards Open Set Deep Networks》:一文搞懂开集识别算法 OpenMax:

    《Towards Open Set Deep Networks》:https://github.com/abhijitbendale/OSDN 《Meta-Recognition: The Theory and Practice of Recognition Score Analysis》:https://github.com/Vastlab/libMR 说明:关于OpenMax算法的具体实现,有兴趣的可以备注来意q:3270348868 1. 激活向量 AV:即训练(测试)样本通过神经网络的倒数第二

    2024年01月20日
    浏览(31)
  • git push提示Everything up-to-date

    一、问题描述 本地代码已修改,使用git commit和push时没有报错,提示everything up-to-date,但是查看仓库代码时发现并不是最新版本的代码 二、可能原因 修改的代码所属文件没有添加到git中,所以git commit和push不会把这些文件给算上 使用Terminal输入git commit时会出现类似这样的提

    2024年02月12日
    浏览(27)
  • DevEcoStudio安装SDK出现:Network connection failed. Check the network or HTTP proxy settings,

    DevEcoStudio安装SDK出现:Network connection failed. Check the network or HTTP proxy settings 电脑地区问题,安装鸿蒙Studio时,会读取系统地区,如果非中国,就会出现这种情况 mac 在 ~/Library/Application Support/Huawei/DevEcoStudio3.0/options/country.region.xml 文件: 将countryregion设置为 CN windows 文件位置:

    2024年04月22日
    浏览(44)
  • 【Git】Git报错:Branch ‘master‘ set up to track remote branch ‘master‘ from ‘orgin‘

    前言 :如果遇到将从git上拉取的代码,直接上传到新的git仓库地址,注意,需要修改git源,否则,会报错。 报错信息如下: Git报错:Branch ‘master’ set up to track remote branch ‘master’ from ‘orgin’ 解决方案: ①移除之前的git源: ②再次连接新的git源:

    2024年02月11日
    浏览(41)
  • vscode卡在Setting up SSH Host XX:Copying VS Code Server to host with scp

    背景 普通用户,不是sudo用户,使用vscode进行远程连接的时候卡住了,一直在等待Setting up SSH Host XX:Copying VS Code Server to host with scp。(这里远程服务器不分centos、ubuntu。都适用) 原因 是因为在远程的服务器下 家目录/.vscode-server/bin/f80445acd5a3da24aa209168452a3d97cc32(一串很的东西,这

    2024年02月13日
    浏览(31)
  • docker failed to create network问题

    docker failed to create network问题 [root@localhost filebrowser]# docker-compose up -d [+] Running 1/0 ✘ Network filebrowser_default Error 0.0s failed to create network filebrowser_default: Error response from daemon: Failed to Setup IP tables: Unable to enable SKIP DNAT rule: (iptables failed: iptables --wait -t nat -I DOCKER -i br-4f24af2f546c -j RETUR

    2024年02月04日
    浏览(30)
  • K8s错误处理:Failed to create pod sandbox

    K8s创建Pod时,使用kubectl describe命令查看Pod事件,发现在拉取镜像前出现报错,报错内容为: 该文件为DNS配置文件,一般由systemd-resolved服务管理,不能由用户修改。那些指点的人说把Master里的复制一份到Node中的人,实际上是行不通的。 如果你的systemd-resolved服务状态是active的

    2024年02月12日
    浏览(37)
  • k8s Failed to create pod sandbox错误处理

    错误信息: Failed to create pod sandbox: rpc error: code = Unknown desc = failed to get sandbox image \\\"k8s.gcr.io/pause:3.2\\\": failed to pull image \\\"k8s.gcr.io/pause:3.2\\\": failed to pull and unpack image \\\"k8s.gcr.io/pause:3.2\\\": failed to resolve reference \\\"k8s.gcr.io/pause:3.2\\\": failed to do request: Head \\\"https://k8s.gcr.io/v2/pause/manifests/3.2\\\": dial

    2024年02月16日
    浏览(89)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包