Calico-kube-controllers and coredns are in Pending status and not coming to Running State

+2 votes
NAMESPACE     NAME                                       READY   STATUS    RESTARTS   AGE   IP               NODE      NOMINATED NODE   READINESS GATES
kube-system   calico-kube-controllers-694687c474-6lqzq   0/1     Pending   0          24m   <none>           <none>    <none>           <none>
kube-system   coredns-86c58d9df4-9ffb8                   0/1     Pending   0          35m   <none>           <none>    <none>           <none>
kube-system   coredns-86c58d9df4-h7v4l                   0/1     Pending   0          30m   <none>           <none>    <none>           <none>
kube-system   etcd-kmaster                               1/1     Running   0          34m   10.223.126.202   kmaster   <none>           <none>
kube-system   kube-apiserver-kmaster                     1/1     Running   0          34m   10.223.126.202   kmaster   <none>           <none>
kube-system   kube-controller-manager-kmaster            1/1     Running   0          35m   10.223.126.202   kmaster   <none>           <none>
kube-system   kube-proxy-qmxdz                           1/1     Running   0          35m   10.223.126.202   kmaster   <none>           <none>
kube-system   kube-scheduler-kmaster                     1/1     Running   0          35m   10.223.126.202   kmaster   <none>           <none>

I have followed the same steps as provided in

https://www.edureka.co/blog/install-kubernetes-on-ubuntu

Also have executed the below command.

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

But still see them in Pending Status.

Jan 25, 2019 in Kubernetes by ravikiran
• 140 points

recategorized Feb 3, 2019 by Vardhan 11,228 views

Hey @Ravikiran, Check if you've given enough resources. Also describe those pending pods and show me the output. 

Use the following command for describing the pods:

 kubectl describe pod <pod-name>

3 answers to this question.

+1 vote
answered Feb 3, 2019 by sayan sarkar
Why doesn't it work with 3.0 version?
You can also use other network plugins like flannel or weave.
Thanks SIr, Worked for me
worked for me also! :) Thank you!
thank man, work for me
Please upvote the answer, if it helped you. Thanks!
Thanks, It's also worked for me !!!!!!!!!!!!
+1 vote

Hi Could you please indicate the commnads required to check if given resources are enough?

Also when running  kubectl describe pod <pod-name>

How to get the pod-name  list?   Using any name in the list resulting of :

$ kubectl get pods -o wide --all-namespaces
kube-system   calico-kube-controllers-694687c474-sp282   0/1     Pending   0
kube-system   coredns-86c58d9df4-28tgk                   0/1     Pending   0
kube-system   coredns-86c58d9df4-6vmxp                   0/1     Pending   0
kube-system   etcd-kmaster                               1/1     Running   3

For example

$ kubectl describe pod calico-kube-controllers
Error from server (NotFound): pods "calico-kube-controllers" not found

Any help will be apreciated as I'm new on Kubernetes.
Cheers

answered Feb 27, 2019 by anonymous

Get the logs using the following command

kubectl logs podname --namespace=kube-system

Also, check the events using the following command

kubectl get events --namespace=kube-system

You're getting this error because the pod does not exist as of now, it has not been created, still in pending state.

Error from server (NotFound): pods "calico-kube-controllers" not found
+1 vote

root@kmaster:/home/master# kubectl get pods -o wide --all-namespaces
NAMESPACE     NAME                                       READY   STATUS    RESTARTS   AGE    IP          NODE      NOMINATED NODE   READINESS GATES
kube-system   calico-kube-controllers-75f6766678-jxbrq   0/1     Pending   0          7m5s   <none>      <none>    <none>           <none>
kube-system   coredns-fb8b8dccf-5bsp2                    0/1     Pending   0          11m    <none>      <none>    <none>           <none>
kube-system   coredns-fb8b8dccf-6j6w4                    0/1     Pending   0          11m    <none>      <none>    <none>           <none>
kube-system   etcd-kmaster                               1/1     Running   0          10m    10.0.2.15   kmaster   <none>           <none>
kube-system   kube-apiserver-kmaster                     1/1     Running   0          10m    10.0.2.15   kmaster   <none>           <none>
kube-system   kube-controller-manager-kmaster            1/1     Running   0          10m    10.0.2.15   kmaster   <none>           <none>
kube-system   kube-proxy-xt792                           1/1     Running   0          11m    10.0.2.15   kmaster   <none>           <none>
kube-system   kube-scheduler-kmaster                     1/1     Running   0          10m    10.0.2.15   kmaster   <none>           <none>

 I have followed the same steps as provided in 

https://www.edureka.co/blog/install-kubernetes-on-ubuntu 

Also have executed the below command. 

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

But still see them in Pending Status.




root@kmaster:/home/master#  kubectl describe pod calico-kube-controllers-75f6766678-jxbrq
Error from server (NotFound): pods "calico-kube-controllers-75f6766678-jxbrq" not found

 

answered Apr 2, 2019 by TechnologyExist
• 160 points
Hey, did you try using Flannel as your CNI?

Related Questions In Kubernetes

0 votes
1 answer

Not able to access kubernetes api from a pod in azure

Follow these steps Add --bind-address=0.0.0.0 option to the line https://github.com/kubernetes/kubernetes/blob/v1.2.0/docs/getting-started-guides/coreos/azure/cloud_config_templates/kubernetes-cluster-main-nodes-template.yml#L218  Created ...READ MORE

answered Aug 30, 2018 in Kubernetes by Kalgi
• 52,350 points
1,032 views
0 votes
1 answer
0 votes
5 answers

Kubernets cluster pod stays in pending state

I had the same issue. I spent ...READ MORE

answered May 3, 2019 in Kubernetes by Kashish
21,052 views
0 votes
1 answer

Pod not running as expected in kubernetes

Heyy @Hannah, It may be that there ...READ MORE

answered Oct 26, 2018 in Kubernetes by Kalgi
• 52,350 points
1,055 views
+2 votes
2 answers

Kubernetes Pods in Pending State

Hey @Shyam, you get this error because ...READ MORE

answered Oct 31, 2018 in Kubernetes by Kalgi
• 52,350 points
7,396 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17, 2019 in Others by anonymous
15,573 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP