kubectl get pods --namespace kube-system status is showing pending

  • 15 January 2024
  • 1 reply
  • 61 views

Badge +3

Hello,

After delete the ingress and customer namespace. recreate the  .\main.ps1 -resource 'KUBERNETES'.

But status is showing in pending as below.

PS C:\IFSTEST\ifsroot> kubectl get nodes
NAME                        STATUS     ROLES    AGE    VERSION
ifstestapp.portduqm.local   NotReady   <none>   106m   v1.22.7-3+c16651e63681de
PS C:\IFSTEST\ifsroot> kubectl get pods --namespace kube-system
NAME                                         READY   STATUS     RESTARTS   AGE
calico-kube-controllers-579558dff-k2jcc      0/1     Pending    0          103m
calico-node-hpxmq                            0/1     Init:0/3   0          103m
metrics-server-85df567dd8-tjpjh              0/1     Pending    0          101m
kubernetes-dashboard-869949b85-2pt46         0/1     Pending    0          100m
dashboard-metrics-scraper-58d4977855-jhnfg   0/1     Pending    0          100m
metrics-server-6d4cd5b56d-ktxdm              0/1     Pending    0          98m
dashboard-metrics-scraper-85887c697d-5xkrg   0/1     Pending    0          98m
kubernetes-dashboard-86df5c8949-mr7gz        0/1     Pending    0          98m
hostpath-provisioner-566686b959-2hjnt        0/1     Pending    0          97m
hostpath-provisioner-5645cd8cfd-xrrsf        0/1     Pending    0          96m
coredns-79bf76c7c6-fb2zz                     0/1     Pending    0          17m
coredns-7f9c69c78c-sncqf                     0/1     Pending    0          17m
PS C:\IFSTEST\ifsroot> kubectl get nodes
NAME                        STATUS     ROLES    AGE    VERSION
ifstestapp.portduqm.local   NotReady   <none>   112m   v1.22.7-3+c16651e63681de
PS C:\IFSTEST\ifsroot>

 

any idea how to bring it up? 

 


1 reply

Userlevel 7
Badge +15

Hey @sashikant,

According to your output the node you have installed the KUBERNETES cluster is not ready. That should be the reason for the pods to be in the pending status. Please check why the node is not ready by the describe command and fix it. That will fix your pod issue as well.

kubectl describe node <node-name>

This will be helpful to fix your node not ready issue - https://komodor.com/learn/how-to-fix-kubernetes-node-not-ready-error/

Hope this helps!

Reply