Skip to the page

CI/CD · Concept

GitOps with Argo CD or Flux

The interviewer asks

What is GitOps, and why do teams use a pull model with Argo CD or Flux instead of having CI run kubectl apply? How would you lay out the Git repositories for many services and three environments?

Then

Follow-ups the interviewer asks next

  1. What does Argo CD do when someone edits a resource by hand?
  2. Where do secrets fit in GitOps?
  3. App code and deployment config in one repository or two?
  4. How do you manage dozens of apps or clusters without copying YAML?
  5. How does a new image tag reach the config repository?
  6. Argo CD or Flux: how do you choose?

The answer

What a strong answer covers

  • GitOps: the desired state of the system is declared in Git; an agent in the cluster keeps comparing and reconciling; every change is a reviewed commit with history and an easy revert.
  • Pull model: the cluster pulls from Git, so CI needs no cluster credentials (a smaller attack surface), drift is detected and fixed, and a cluster can be rebuilt from Git.
  • Drift: with self-heal on, manual edits are reverted; without it, the app shows OutOfSync.
  • Secrets: never plain in Git; External Secrets, Sealed Secrets or SOPS.
  • Repositories: app code separate from the config repository (different change rates and permissions); per-environment folders or overlays (Kustomize overlays, Helm values per environment); promotion by pull request.
  • Scale: Argo CD ApplicationSets (generators over clusters or Git folders) or app-of-apps; Flux Kustomizations and HelmReleases per cluster.
  • Image updates: CI opens a pull request or commits the new tag, or Argo CD Image Updater and Flux image automation do it.
  • Argo CD: a strong UI, many clusters from one place, SSO and RBAC, sync waves and hooks (the 3.x line; 3.6 came out in Nov 2026). Flux: lighter, CLI- and CRD-first, runs per cluster, native Helm and OCI artifacts. Both are CNCF graduated projects.

The red pen

Common traps

Avoid:"GitOps means keeping YAML in Git" while CI still pushes to the cluster; plain Secrets in Git; one repository where any developer can change production.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview