What does kubectl cordon do?
Experience Level: Junior
Tags: Kubernetes
Answer
Cordon marks the Kubernetes node unschedulable to prevent new pods from arriving. This is usually done as a preparation for node upgrade.
To cordon the node, run the following command:
Related Kubernetes job interview questions
What does kubectl drain do?
Kubernetes JuniorWhat does kubectl uncordon do?
Kubernetes JuniorHow do you find Kubernetes pods that consume the most CPU?
Kubernetes JuniorHow can you speed up switching between namespaces using kubectl?
Kubernetes MediorHow can you speed up your work flow when using kubectl?
Kubernetes Junior