A Helm deployment to AKS fails halfway and leaves the release in `pending-upgrade`. How do you make the pipeline robust?
AdvancedScenarioCI/CD and IaC
Answer
Situation read → Use atomic upgrades and a clear rollback.
What I'd do →
helm upgrade --install shop ./chart -n shop --atomic --timeout 10m --wait(--rollback-on-failurein Helm 4)- If stuck:
helm history shop -n shop, thenhelm rollback shop <rev> -n shop - Serialise deployments per environment (concurrency group in GitHub, exclusive lock check in Azure DevOps)
- Add readiness probes so
--waitreflects real health
Why → Atomic rollbacks avoid half-deployed releases; serialisation avoids two pipelines fighting.
Interview tip → Concurrency control is often the actual root cause.
More on CI/CD and IaC
Design a GitHub Actions pipeline that builds an image, pushes to ACR and deploys to AKS with no secrets.IntermediateYour organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.IntermediateYou need to promote the same image from dev to staging to prod. How do you design it?IntermediateTerraform state for prod is in a storage account accessible with account keys. Harden it.IntermediateYour team wants to move from ARM JSON templates to Bicep. How do you migrate?BeginnerA pipeline needs to deploy to dev, test and prod in different subscriptions. How do you handle identities?Advanced