Feedback

Chat Icon

Cloud-Native Microservices With Kubernetes - 2nd Edition

A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in Kubernetes

Managing Upgrades and Maintenance in Kubernetes
63%

Cordoning and Uncordoning Nodes

There is a command to cordon a Node manually:

kubectl cordon $NODE2

But the kubectl drain command automatically cordons the Node for you.

When the maintenance or upgrade process is complete, you need to uncordon the Node to bring it back into service:

kubectl uncordon $NODE2

You should be able to see that the Node is now in the Ready state.

Cloud-Native Microservices With Kubernetes - 2nd Edition

A Comprehensive Guide to Building, Scaling, Deploying, Observing, and Managing Highly-Available Microservices in Kubernetes

Enroll now to unlock all content and receive all future updates for free.