kubernate不小心删掉了全部的容器ID

 kubectl get pod -o wide

找出所有pod

kubectl describe pod app-controller-q8xtz 

根据podID,查找pod启动失败的原因

Warning  FailedCreatePodSandBox  8h (x26 over 8h)  kubelet, yanfa11   Failed create pod sandbox: rpc error: code = Unknown desc = failed pulling image "k8s.gcr.io/pause:3.1": Error response from daemon: Get https://k8s.gcr.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

这个是镜像没有下载成功

Warning  FailedCreatePodSandBox  8h                kubelet, yanfa11   Failed create pod sandbox: rpc error: code = Unknown desc = failed to set up sandbox container "2cb263d35a4d0e39574d0881225b2a38ed4c86b1d9d0b86e6e8f95fe7dbaaa5a" network for pod "app-controller-q8xtz": NetworkPlugin cni failed to set up pod "app-controller-q8xtz_default" network: open /run/flannel/subnet.env: no such file or directory

这个是flannel没有安装好,主节点上重新执行 kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/v0.10.0/Documentation/kube-flannel.yml

unable to recognize "https://raw.githubusercontent.com/coreos/flannel/v0.10.0/Documentation/kube-flannel.yml": yaml: line 3: mapping values are not allowed in this context

这个是子节点执行报的错误,应该在主节点执行

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

三月泡

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值