LAB04a: Taint & Toleration
Understanding in One Line
Taints & Tolerations
Make control-plane schedulable
Apply taints on nodes
Test pod scheduling behavior
Verify when pods are blocked or allowed
LAB OVERVIEW
PRE-REQUISITE
STEP 1: Check Nodes
STEP 2: Make Control Plane Schedulable
STEP 3: Add a Taint to a Node
STEP 4: Deploy a Pod WITHOUT Toleration
STEP 5: Deploy a Pod WITH Toleration
LAB UNDERSTANDING: WHY THIS WORKS
Taint applied:
Toleration used:
STEP 6: Add Taints Back to Control Plane (Optional)
SUMMARY OF LAB RESULTS
Node
Taint
Pod Behavior
LAB: Taints & Tolerations Using Only Commands
1. Make control-plane schedulable
2. Add taint to a worker node
3. Create a pod WITHOUT toleration (command-only)
4. Create a pod WITH toleration (command-only)
Shortcut: Create pod with toleration using oneliners
Option A: kubectl run with --dry-run pipe to apply
kubectl run with --dry-run pipe to applyOption B: use kubectl-krew plugin (if installed)
5. Remove a taint from worker
6. Add taint back to control-plane (optional)
Last updated