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:

kubectl cordon nodename

Comments

No Comments Yet.
Be the first to tell us what you think.
Kubernetes
Kubernetes

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself
Kubernetes Certified Administrator (CKA) preparation
Kubernetes Certified Administrator (CKA) preparation

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself
25 Kubernetes questions that will help you get certified and become more efficient with K8s
25 Kubernetes questions that will help you get certified and become more efficient with K8s

Are you learning Kubernetes ? Try our test we designed to help you progress faster.

Test yourself