Your team wants to adopt GitOps on AKS. What do you set up?
IntermediateScenarioAKS and Containers
Answer
Situation read → Flux extension or Argo CD, a repo structure per environment, CI only updates image tags.
What I'd do →
- Repo layout:
apps/base,apps/overlays/{dev,prod},clusters/{dev,prod}with Kustomizations - Install Flux via
az k8s-configuration flux create(or Argo CD via Helm) - CI builds and pushes, then opens a PR bumping the image tag in the overlay (or Flux image automation)
- Prod changes require PR approval; Flux reconciles every few minutes and reports drift
Why → Git becomes the deployment audit log, and CI no longer needs cluster credentials.
Interview tip → Highlight that CI loses kube credentials, a security win.
More on AKS and Containers
You're asked to build a production AKS cluster. Walk through your key decisions.IntermediateA team wants to deploy a new microservice to AKS that reads a database password. How do you wire secrets?BeginnerYou need to upgrade a production AKS cluster from 1.31 to 1.33. Plan it.AdvancedPods need to scale on Service Bus queue length, not CPU. How?AdvancedYou need to run a GPU workload on an existing AKS cluster. What do you do?IntermediateA noisy application keeps starving other workloads on shared nodes. How do you fix it?Beginner