k8wiz
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.