Welcome to the Linux Foundation Forum!

Lab 2.3 : Create a Basic Pod - Pod Assigned To Worker Node Instead Of Master Node ?

Hi, all!
After I modified the basic.yaml file with port configuration (step 7 of lab 2.3) and created the pod, I realize the pod is been assigned to the worker node instead of the master node shown in the lab instruction.

My VM's output:
[email protected]:~$ kubectl get pod -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
basicpod 1/1 Running 0 27m 192.168.171.67 worker

From the course material, I recall that the scheduler is responsible for the pod assignment, so I think it is possible to have the pod been placed under the worker node.
Am I correct ?

Comments

  • chrispokorni
    chrispokorni Posts: 1,549

    Hi @hingwong,

    You are correct, the scheduler is responsible for the selection of a suitable node for a pod. The default scheduling algorithm searches for the node with the most amount of free resources for pod placement, and in our cluster it can be either the control-plane node or the worker node.

    Regards,
    -Chris

Categories

Upcoming Training