Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

schedulable/unschedulable kubernetes node using kubectl cordon uncordon commands

$ kubectl get nodes
# Master 
$ kubectl describe node ip-172-31-23-196.ap-south-1.compute.internal

Taints:             node-role.kubernetes.io/master:NoSchedule
Unschedulable:      false

# Worker
$ kubectl describe node ip-172-31-26-2.ap-south-1.compute.internal
Taints:             <none>
Unschedulable:      false

kubectl get nodes
kubectl cordon -h
kubectl cordon ip-172-31-26-2.ap-south-1.compute.internal
kubectl describe node ip-172-31-26-2.ap-south-1.compute.internal

Taints:             node.kubernetes.io/unschedulable:NoSchedule
Unschedulable:      true

kubectl get nodes
kubectl uncordon ip-172-31-26-2.ap-south-1.compute.internal
kubectl describe node ip-172-31-26-2.ap-south-1.compute.internal
Taints:             <none>
Unschedulable:      false
kubectl get pods        
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)