Welcome to the Linux Foundation Forum!

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

Options

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?

Best Answers

  • chrispokorni
    chrispokorni Posts: 2,177
    edited April 2023 Answer ✓
    Options

    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

  • chrispokorni
    chrispokorni Posts: 2,177
    Answer ✓
    Options

    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

  • maybel
    maybel Posts: 45
    Options

    Many, many thanks for considering my request.

  • maybel
    maybel Posts: 45
    Options

    This is my worker node yaml





  • maybel
    maybel Posts: 45
    Options

    Thank you, @chrispokorni. I don't know why my worker node has a lower version than my cp node, and I created it following the lab guide similar to the cp node. Could you please let me know how I can fix it?

  • maybel
    maybel Posts: 45
    Options

    @chrispokorni. I did it! Thank you!

  • maybel
    maybel Posts: 45
    Options

    I found a new problem, and it is about memory capacity.

  • maybel
    maybel Posts: 45
    Options

    @chispokorni, the problem was uncordon the worker node. I solved it. Thank you!

Categories

Upcoming Training