![kubernete-master 陷入等待状态](https://linux22.com/image/1149260/kubernete-master%20%E9%99%B7%E5%85%A5%E7%AD%89%E5%BE%85%E7%8A%B6%E6%80%81.png)
为什么 kubernete-master 工作负载停留在等待状态?消息是:
Waiting for kube-system pods to start
当我跑步的时候
sudo juju scp kubernetes-master/1:kubectl ~/bin/kubectl
我收到此错误:
ERROR exit status 1 (scp: kubectl: No such file or directory)
当查看 pod coredns 上的 kube-system 命名空间时,我看到了这一点。似乎它无法获取图像:
Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning Failed 84m (x11 over 119m) kubelet, juju-06819a-0-lxd-71 Error: ErrImagePull Warning Failed 50m (x283 over 119m) kubelet, juju-06819a-0-lxd-71 Error: ImagePullBackOff Normal BackOff 29m (x368 over 119m) kubelet, juju-06819a-0-lxd-71 Back-off pulling image "coredns/coredns:1.4.0" Normal SandboxChanged 23m kubelet, juju-06819a-0-lxd-71 Pod sandbox changed, it will be killed and re-created. Warning Failed 20m (x4 over 23m) kubelet, juju-06819a-0-lxd-71 Failed to pull image "coredns/coredns:1.4.0": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Warning Failed 20m (x4 over 23m) kubelet, juju-06819a-0-lxd-71 Error: ErrImagePull Warning Failed 20m (x6 over 23m) kubelet, juju-06819a-0-lxd-71 Error: ImagePullBackOff Normal Pulling 18m (x5 over 23m) kubelet, juju-06819a-0-lxd-71 Pulling image "coredns/coredns:1.4.0" Normal BackOff 3m44s (x73 over 23m) kubelet, juju-06819a-0-lxd-71 Back-off pulling image "coredns/coredns:1.4.0"