Question 5
Domain 1: Cluster Architecture, Installation & ConfigurationWhich kubectl command puts the node `node1.mylabserver.com` back into service so pods can be scheduled to it?
Correct answer: A
Explanation
`kubectl uncordon node1.mylabserver.com` is the command used to make a node schedulable again after it has been marked unschedulable. In Kubernetes, "uncordon" reverses the drain/cordon state so pods can be scheduled to the node again.
Why each option is right or wrong
A. kubectl uncordon node1.mylabserver.com
Under Kubernetes node management, `kubectl cordon` marks a node unschedulable, and the reverse action is `kubectl uncordon`, which clears that unschedulable flag so the scheduler may place new pods there again. In this case, `node1.mylabserver.com` is being returned to service after being taken out of scheduling, so the command must target that node name directly with `kubectl uncordon node1.mylabserver.com`.
B. kubectl drain node1.mylabserver.com
C. kubectl taint node node1.mylabserver.com NoSchedule
D. kubectl untaint node node1.mylabserver.com