[Verse 1] When your node needs maintenance time And you want to stop the flow New pods won't land upon that spot But old ones still can go It's not about removing them Just blocking what's ahead Think of it like closing lanes While traffic moves instead [Chorus] Kubectl cordon, lock the door No new scheduling anymore Keep it safe, keep it sound While the old pods stick around Cordon means to block the way New arrivals have to stay Away from nodes that need some care Kubectl cordon gets you there [Verse 2] Picture workloads as travelers Looking for a place to rest When you cordon up a node They'll find another nest The scheduler sees the warning sign And routes them somewhere new But existing pods keep running Just like they're supposed to do [Chorus] Kubectl cordon, lock the door No new scheduling anymore Keep it safe, keep it sound While the old pods stick around Cordon means to block the way New arrivals have to stay Away from nodes that need some care Kubectl cordon gets you there [Bridge] Type the name after cordon Watch the status change to ready comma scheduling disabled It's a gentle way to pause Before you drain or upgrade Smart administrators know This is how the game is played [Verse 3] When your maintenance is complete And you're ready for the load Use uncordon to reverse And reopen up that node The scheduler will smile again And send new pods your way Cordon and uncordon both Help manage work and play [Chorus] Kubectl cordon, lock the door No new scheduling anymore Keep it safe, keep it sound While the old pods stick around Cordon means to block the way New arrivals have to stay Away from nodes that need some care Kubectl cordon gets you there [Outro] Block new pods but keep the old That's the story being told Kubectl cordon, know the way Manage nodes throughout the day
← Drain a node (evict pods for maintenance) | Uncordon a node (allow scheduling again) →