Kustomization and Reconciliation

The Kustomization CRD is the apply engine of Flux: it builds manifests from a Source, substitutes variables, decrypts secrets, server-side applies with field ownership, health-checks the result, and prunes what Git removed.

Overview

Where Flux starts changing the cluster

Source controllers produce artifacts; kustomize-controller turns one artifact into applied, health-checked, garbage-collected cluster state. Everything an interviewer means by 'how does Flux actually deploy' lives in this one CRD.

From each artifact the controller produces three things: the applied cluster state, a record of what it applied in status.inventory, and the results of its health checks.

Key concepts

  • Kustomization CRD
  • sourceRef
  • Inventory
  • Server-side apply and field ownership
  • Drift detection and correction
  • postBuild substitution
  • dependsOn
  • serviceAccountName impersonation

Interview questions

  • A Flux Kustomization and a kustomization.yaml are not the same thing. Explain the difference.
  • How does Flux detect and correct drift, and how does its field ownership model differ from kubectl apply?
  • What exactly does prune delete, and what is the inventory?
  • How do you enforce deploy ordering across Kustomizations, and what does Ready actually guarantee?
  • Explain postBuild substitution and substituteFrom. When is it the right tool, and when is it a mistake?
  • How does Flux enforce multi-tenancy, and what happens if you forget serviceAccountName?

Sign up free to read the full topic

More DevOps topics

Start free on Cariara · Coding problems · System design studio