<none>. This clearly indicates that the scheduler has not yet assigned the pod to any node. Additionally, checking the control plane components in the kube-system namespace might reveal that the scheduler pod is not running, which explains why the scheduling did not occur automatically.
Manually Scheduling the Pod on a Specific Node
To manually assign the pod to node01, update your nginx.yaml file by adding the nodeName property as shown below:kubectl replace --force command, which deletes the existing pod and recreates it in one step:
Scheduling the Pod on the Control Plane Node
For additional practice, you can schedule the pod on the control plane node. To do this, edit the nginx.yaml file and set the nodeName to the control plane’s name (e.g., controlplane):kubectl replace --force command:
When manually scheduling pods, always ensure that the nodeName field is correctly set to the desired node. If the pod remains in a pending state, double-check that the targeted node is operational and available.
Handling Pod Replacement and Termination
When you force replace a pod, Kubernetes sends a termination signal to the running process (in this case, the nginx process). Depending on how the process handles the termination, there might be a brief delay before the pod is fully terminated and recreated. This normal delay should not be a cause for concern.This concludes the lab exercise on manual scheduling. You now understand how to diagnose a pending pod, manually schedule it on a specific node, and verify that it transitions to a Running state. For more detailed information on Kubernetes pod scheduling, consider reading the Kubernetes Documentation.