weaveworks / wksctl

Open Source Weaveworks Kubernetes System
Apache License 2.0
395 stars 55 forks source link

footloose single-master example can't pull images #280

Open adensymonds opened 4 years ago

adensymonds commented 4 years ago

I am trying to follow the examples to get a simple single master cluster running using the docker backend and CentOS. I have successfully created the footloose machines. Then running wksctl apply appears to be successful, but monitoring the kubernetes cluster via kubectl, the cluster never comes up. It gets stuck trying to pull the images for weave-npc and wksctl-controller. The errors can be seen in the below kubectl excerpts. I would appreciate any guidance on being able to get this simple example running.

Output from kubectl get pods -A:

NAMESPACE     NAME                             READY   STATUS             RESTARTS   AGE
kube-system   coredns-fb8b8dccf-k8rh2          1/1     Running            0          3m28s
kube-system   coredns-fb8b8dccf-mfcjg          1/1     Running            0          3m28s
kube-system   etcd-node0                       1/1     Running            0          2m36s
kube-system   kube-apiserver-node0             1/1     Running            0          2m22s
kube-system   kube-controller-manager-node0    1/1     Running            0          2m39s
kube-system   kube-proxy-l97cq                 1/1     Running            0          3m28s
kube-system   kube-scheduler-node0             1/1     Running            0          2m50s
kube-system   weave-net-xzktb                  1/2     ImagePullBackOff   0          3m28s
weavek8sops   wks-controller-68559f684-cdhpl   0/1     ErrImagePull       0          3m28s

Excerpt of output from kubectl desribe pods/weave-net-xzktb -n kube-system:

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  99s                default-scheduler  Successfully assigned kube-system/weave-net-xzktb to node0
  Normal   Pulling    99s                kubelet, node0     Pulling image "docker.io/weaveworks/weave-kube:2.5.1"
  Normal   Pulled     58s                kubelet, node0     Successfully pulled image "docker.io/weaveworks/weave-kube:2.5.1"
  Normal   Created    58s                kubelet, node0     Created container weave
  Normal   Started    57s                kubelet, node0     Started container weave
  Warning  Failed     46s                kubelet, node0     Failed to pull image "docker.io/weaveworks/weave-npc:2.5.1": rpc error: code = Unknown desc = error pulling image configuration: Get https://registry-1.docker.io/v2/weaveworks/weave-npc/blobs/sha256:789b7f49603445d488a9f9b50f33f9e8c8c07aa61184c4c096ffc28d22dd9410: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.0.1:51630->192.168.65.1:53: i/o timeout
  Normal   Pulling    34s (x2 over 57s)  kubelet, node0     Pulling image "docker.io/weaveworks/weave-npc:2.5.1"
  Warning  Failed     24s (x2 over 46s)  kubelet, node0     Error: ErrImagePull
  Warning  Failed     24s                kubelet, node0     Failed to pull image "docker.io/weaveworks/weave-npc:2.5.1": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.0.1:46636->192.168.65.1:53: i/o timeout
  Normal   BackOff    10s (x2 over 45s)  kubelet, node0     Back-off pulling image "docker.io/weaveworks/weave-npc:2.5.1"
  Warning  Failed     10s (x2 over 45s)  kubelet, node0     Error: ImagePullBackOff

Excerpt of output from kubectl desribe pods/wks-controller-68559f684-cdhpl -n weavek8sops:

Events:
  Type     Reason            Age                   From               Message
  ----     ------            ----                  ----               -------
  Warning  FailedScheduling  2m9s (x4 over 2m58s)  default-scheduler  0/1 nodes are available: 1 node(s) had taints that the pod didn't tolerate.
  Normal   Scheduled         2m6s                  default-scheduler  Successfully assigned weavek8sops/wks-controller-68559f684-cdhpl to node0
  Warning  Failed            115s                  kubelet, node0     Failed to pull image "docker.io/weaveworks/wksctl-controller:v0.8.3": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.0.1:60683->192.168.65.1:53: i/o timeout
  Warning  Failed            91s                   kubelet, node0     Failed to pull image "docker.io/weaveworks/wksctl-controller:v0.8.3": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.0.1:52063->192.168.65.1:53: i/o timeout
  Warning  Failed            55s                   kubelet, node0     Failed to pull image "docker.io/weaveworks/wksctl-controller:v0.8.3": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: read udp 192.168.0.1:57321->192.168.65.1:53: i/o timeout
  Warning  Failed            55s (x3 over 115s)    kubelet, node0     Error: ErrImagePull
  Normal   BackOff           18s (x5 over 114s)    kubelet, node0     Back-off pulling image "docker.io/weaveworks/wksctl-controller:v0.8.3"
  Warning  Failed            18s (x5 over 114s)    kubelet, node0     Error: ImagePullBackOff
  Normal   Pulling           6s (x4 over 2m5s)     kubelet, node0     Pulling image "docker.io/weaveworks/wksctl-controller:v0.8.3"