Q: Describe leader election in Kubernetes control plane components.
Scheduler and controller-manager use Lease objects in etcd. Only the leader processes work. Others watch. If leader fails to renew its le...
#Kubernetes #Advanced Scenarios #L3 #Container Orchestration #K8s #etcd
🎙️ Candidate Opening & Architectural Context
""In our production Kubernetes clusters running microservices on EKS/AKS, this was a classic operational challenge. When addressing this question, I walk the interviewer through our production incident runbook: isolating the blast radius, checking diagnostic logs and metrics, and applying a safe fix.""
Advertisement
🛠️ Production Runbook & Step-by-Step Resolution
1️⃣
Production Solution & Architecture
Scheduler and controller-manager use Lease objects in etcd. Only the leader processes work. Others watch. If leader fails to renew its lease, another takes over. Prevents split-brain in HA setups.
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Scheduler and controller-manager use Lease objects in etcd. Only the leader processes work. Others watch. If leader fails to renew."
⚡ 60-Second Elevator Pitch Talking Points
- Immediate Triage: Scheduler and controller-manager use Lease objects in etcd. Only the leader processes work. Oth
- Run targeted verification commands before modifying configuration.
- Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement