Interview Prep/Azure/CI/CD and IaC

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 →

  1. helm upgrade --install shop ./chart -n shop --atomic --timeout 10m --wait (--rollback-on-failure in Helm 4)
  2. If stuck: helm history shop -n shop, then helm rollback shop <rev> -n shop
  3. Serialise deployments per environment (concurrency group in GitHub, exclusive lock check in Azure DevOps)
  4. Add readiness probes so --wait reflects real health

Why → Atomic rollbacks avoid half-deployed releases; serialisation avoids two pipelines fighting.

Interview tip → Concurrency control is often the actual root cause.

Azure All Azure questions Roadmap: AKS & Azure DevOps

More on CI/CD and IaC