I am following the below blog to create a kubernetes cluster (on AWS EC2).


I completed executing the commands till master config. But dashboard and calico network is stuck on pending state. Googled and found many resources which are not useful in my case, for example: some faced issues because of scheduler unavailability. Here, I have that. And I am very much sure that I have executed all those steps one by one, without fail. Here's the result:

kubectl get pods -o wide --all-namespaces

kube-system   calico-kube-controllers-694687c474-r55p7   0/1     Pending   0          18m   <none>          <none>    <none>           <none>
kube-system   coredns-86c58d9df4-25fxt                   0/1     Pending   0          33m   <none>          <none>    <none>           <none>
kube-system   coredns-86c58d9df4-w6mfx                   0/1     Pending   0          33m   <none>          <none>    <none>           <none>
kube-system   etcd-kmaster                               1/1     Running   0          37m   kmaster   <none>           <none>
kube-system   kube-apiserver-kmaster                     1/1     Running   0          37m   kmaster   <none>           <none>
kube-system   kube-controller-manager-kmaster            1/1     Running   0          37m   kmaster   <none>           <none>
kube-system   kube-proxy-l4wr6                           1/1     Running   0          38m   kmaster   <none>           <none>
kube-system   kube-scheduler-kmaster                     1/1     Running   0          37m   kmaster   <none>           <none>
kube-system   kubernetes-dashboard-57df4db6b-s7pzt       0/1     Pending   0          16m   <none>          <none>    <none>           <none>

As you can see, its been more than 15 minutes its in pending state for calico and kube dashboard. Any other solutions/ideas would really be appreciated.

  • kubectl pod describe kubernetes-dashboard-57df4db6b-s7pzt -n kube-system – c4f4t0r Jan 11 '19 at 14:36

I remember I had similar question in which the same tutorial was linked. You have to use up to date links.

You can either do kubeadm reset and run the init again and then use the links from 1. Or you can go for

kubectl delete -f https://docs.projectcalico.org/v3.0/getting-started/kubernetes/installation/hosted/kubeadm/1.7/calico.yaml

and I don't know how you have installed dashboard, because the link from the tutorial is showing 404. The up to date yaml can be found here.

1For Calico I am using this two files (and kubectl apply -f https://docs.projectcalico.org/v3.2/getting-started/kubernetes/installation/hosted/rbac-kdd.yaml

kubectl apply -f https://docs.projectcalico.org/v3.2/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.7/calico.yaml

You can find more details about Calico requirements and installation guide here.

Also here you can check my previous answer and it also was related to this tutorial. It might be helpful in your next steps.

Not the answer you're looking for? Browse other questions tagged or ask your own question.