{"id":22724,"date":"2024-06-08T15:01:47","date_gmt":"2024-06-08T12:01:47","guid":{"rendered":"https:\/\/kifarunix.com\/?p=22724"},"modified":"2024-06-15T13:05:44","modified_gmt":"2024-06-15T10:05:44","slug":"kubernetes-nodes-maintenance-drain-vs-cordon-demystified","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/kubernetes-nodes-maintenance-drain-vs-cordon-demystified\/","title":{"rendered":"Kubernetes Nodes Maintenance: Drain vs. Cordon Demystified"},"content":{"rendered":"\n
\"kubectl<\/figure>\n\n\n\n

What is the difference between Kubernetes kubectl drain<\/strong> and kubectl cordon<\/strong> commands? Well, keeping your Kubernetes cluster healthy and running smoothly requires regular maintenance on individual nodes. The maintenance might involve software updates, hardware upgrades, or even a complete OS reinstall. But how do you prepare a node for maintenance without disrupting your running applications? That’s where drain<\/code> and cordon<\/code> come in, let’s explore!<\/p>\n\n\n\n

Table of Contents<\/h2>