Welcome to the Linux Foundation Forum!

11.2.6. why I don't get all my ingress pod ? (3)

Hi everyone,
I need help. My worker node's role is none. I notice my worker role because y my lab 11.2. I suppose I expect to see the following:
student@cp:˜$ kubectl get pod --all-namespaces |grep nginx
default myingress-ingress-nginx-controller-mrqt5 1/1 Running 0 20s
default myingress-ingress-nginx-controller-pkdxm 1/1 Running 0 62s default nginx-b68dd9f75-h6ww7 1/1 Running 0 21h
three pos at namespace default

Instead of that, I got:
$ kubectl get pod --all-namespaces | grep nginx
default myingress-ingress-nginx-controller-858b9c449d-zb4lz 1/1 Running 1 (123m ago) 14h
default nginx-748c667d99-g5v66
I got two pods at namespaces default.

So I tried to understand myself, and I didn't. Therefore, I found the following:
student@cp:~$ kubectl get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
myingress-ingress-nginx-controller-858b9c449d-zb4lz 1/1 Running 1 (122m ago) 14h 192.168.242.69 cp
nginx-748c667d99-g5v66 1/1 Running 3 (122m ago) 7d17h 192.168.242.73 cp

As you can see, all pods are on my cp node.

kubectl get node -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
cp Ready control-plane 20d v1.26.1 10.2.0.4 Ubuntu 20.04.6 LTS 5.15.0-1031-gcp containerd://1.6.18
worker Ready 20d v1.25.1 10.2.0.5 Ubuntu 20.04.6 LTS 5.15.0-1031-gcp containerd://1.6.18
What am I doing wrong?

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Best Answers

  • Posts: 2,434
    edited April 2023 Answer ✓

    Hi @maybel,

    The worker nodes are expected to have a "none" role.

    Why is there a difference in Kubernetes versions between your nodes? The cp node is on 1.26.1 while worker is 1.25.1? An improper install or maybe an incomplete cluster upgrade?

    Regards,
    -Chris

  • Posts: 2,434
    Answer ✓

    Hi @maybel,

    The screenshot above does not indicate any memory or other resource related issue.

    Did you manage to complete the entire upgrade process?

    Did you successfully uncordon the worker node?

    Regards,
    -Chris

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training