Node
Exercise π
This exercise covers comprehensive node maintenance procedures including cordon, drain, and uncordon operations that are critical for CKA exam success.
Create a Deployment named web-app with 6 replicas using nginx:1.26 image
Create a DaemonSet named monitoring using nginx:alpine image
Check how Pods are distributed across all Nodes
You need to perform maintenance on worker1. First,
cordonthis Node to prevent new Pods from being scheduled on itVerify that worker1 is cordoned, but existing Pods are still running
Drain worker1 to move all Pods to other nodes
Verify all web-app Pods have been moved out of worker1, while DaemonSet Pods are still running
Make worker1 available for scheduling again
Force the restart of the web-app deployment and verify some Pods are scheduled on worker1
Clean up all resources