kubectl cordon 커맨드를 실행하면 포드들이 스케쥴링되어서 실행되지 않게 한다.
kubectl uncordon 커맨드를 실행하면 그 반대이다.
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
test-master-1 Ready master 2h v1.11.5
test-master-2 Ready master 2h v1.11.5
test-master-3 Ready master 2h v1.11.5
test-worker-1 Ready node 2h v1.11.5
test-worker-2 Ready node 2h v1.11.5
test-worker-3 Ready node 2h v1.11.5
$ kubectl cordon test-worker-3
node/test-worker-3 cordoned
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
test-master-1 Ready master 2h v1.11.5
test-master-2 Ready master 2h v1.11.5
test-master-3 Ready master 2h v1.11.5
test-worker-1 Ready node 2h v1.11.5
test-worker-2 Ready node 2h v1.11.5
test-worker-3 Ready,SchedulingDisabled node 2h v1.11.5
$ kubectl uncordon test-worker-3
node/test-worker-3 uncordoned
$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
test-master-1 Ready master 2h v1.11.5
test-master-2 Ready master 2h v1.11.5
test-master-3 Ready master 2h v1.11.5
test-worker-1 Ready node 2h v1.11.5
test-worker-2 Ready node 2h v1.11.5
test-worker-3 Ready node 2h v1.11.5