为什么 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"