LAB03: Joining New Node
Objective:
Kubernetes Cluster Management
SCENARIO
PART 1 — Prepare a NEW Node and Join to Cluster
1. Prepare the new worker node
A. Install required packages
B. Configure containerd
C. Disable swap (required for Kubernetes)
D. Install Kubernetes binaries
2. Get join command from Control Plane
3. Run join command on worker node
4. Verify from control-plane
PART 2 — Cordon, Uncordon, Drain (Maintenance Mode)
Scenario:
1. Mark node unschedulable (cordon)
Verify:
2. Drain the node safely
Flags meaning:
Check rescheduling:
3. Perform maintenance (simulated)
4. Bring node back (uncordon)
Verify:
PART 3 — DaemonSet Behavior Lab
Test that DaemonSet pods are NOT evicted
PART 4 — Permanently Remove a Node From Cluster
Scenario:
STEP 1: Drain the node
STEP 2: Delete node from cluster
STEP 3: Reset kubeadm on the worker
STEP 4: (Optional) Rejoin later
OPTIONAL ADVANCED SCENARIOS FOR TRAINING
Scenario A: Drain with force
Scenario B: Node is unreachable
Scenario C: Upgrade workflow
Last updated