Q: How do you roll back a Helm release?
bash
#Kubernetes #Advanced Scenarios #L2 #Container Orchestration #K8s #Helm
🎙️ Candidate Opening & Architectural Context
""In one of our high-traffic production clusters, our SRE team handled this incident using a standardized runbook. 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
Helm keeps a history of all deployed revisions (stored as Secrets in the namespace). Each revision has a snapshot of the values and chart used. If --history-max is set, older revisions are pruned automatically, limiting how far back you can roll.
helm history <release-name> # see all revisions
helm rollback <release-name> 2 # roll back to revision 2
helm rollback <release-name> # roll back to previous revision
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Helm keeps a history of all deployed revisions (stored as Secrets in the namespace). Each revision has a snapshot of the values an."
⚡ 60-Second Elevator Pitch Talking Points
- Immediate Triage: bash
- Run targeted verification commands before modifying configuration.
- Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement