Flux CD
Hard
Troubleshooting
A change to an immutable field makes Flux's apply of a Job fail. Which annotation on the Job tells Flux to delete and recreate it?
Select your answer:
Show answer and explanation
Answer: kustomize.toolkit.fluxcd.io/force: enabled
Explanation
With force enabled on an object, kustomize-controller recreates it when an apply fails on an immutable field. Setting spec.force: true on the Kustomization does the same for every object it applies, which is broader than most cases need.
More hard Flux CD questions
- A GitRepository has no ref field, and the repository's default branch is main. What does Flux check out?
- kustomize-controller can't tell when a custom resource from a third-party operator is healthy. How do you teach it?
- You want to delete a Flux Kustomization but keep the workloads it created running. Which field do you set first?
- In a CI job, 'flux diff kustomization' exits with status 1. What does that mean?
- A chart ships CRDs in its crds/ directory, and the HelmRelease has no crds settings. What happens to those CRDs on upgrade?
- How many Helm release revisions does helm-controller keep for a HelmRelease that doesn't set maxHistory?