Skip to main content
The Kustomize Controller is the Flux component that ensures your cluster’s actual state matches the desired state described by Kubernetes manifests. It retrieves artifacts from the Source Controller and then:
Make sure you have installed Flux and configured a GitRepository or other supported source.

1. Creating a Kustomization

Use the flux create kustomization command to link your source to a path containing Kustomize overlays. You can also enable garbage collection:
The --export flag prints the Kustomization resource manifest:
Apply it with:

2. Automatic Build Behavior

If there’s no kustomization.yaml file under ./solar-system, Flux will auto-generate one for you:
This populates kustomization.yaml with all discovered resources:
You don’t need to run the above command yourself—Flux performs it automatically when needed.

3. Providing Your Own Overlays

If you include a custom kustomization.yaml (or Kustomization overlay) in the specified path, the controller will skip auto-generation and apply your overlays directly. This allows you to:
  • Add labels or annotations
  • Patch existing resources
  • Customize namespace or image tags

4. Checking Status

To inspect all active Kustomization resources and their reconciliation state:
Example output:

Watch Video