Kubernetes (K8s) (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)
Managing Node Drain, Cordon, and Automated OS Patching (Kured).
senior LevelSecurity & Auth
In Simple Words:
kubectl cordon <node>: Marks the node as unschedulable; prevents new Pods from being placed on it without affecting running workloads.kubectl drain <node> --ignore-daemonsets --delete-emptydir-data: Safely evicts all running Pods respecting PodDisruptionBudgets, signaling them to terminate gracefully.- Kured (Kubernetes Reboot Daemon):
- An open-source operator that watches for the presence of
/var/run/reboot-requiredon worker nodes (placed after OS kernel updates). - Automatically acquires a cluster lock, cordons and drains one node at a time, reboots the node, verifies Kubelet health, and uncordons the node before moving to the next node.
- An open-source operator that watches for the presence of