File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -840,13 +840,20 @@ metadata:
840840will replace the resources in-cluster if the patching fails due to immutable
841841field changes.
842842
843- It can also be enabled for specific resources by labelling or annotating them
844- with :
843+ Note that this field should be set temporarily (e.g. when changing Deployment
844+ pod selectors) and not left enabled on the long run, as force-replacing
845+ resources may cause downtime.
846+
847+ A safer alternative is to enable force-apply for specific resources by
848+ labelling or annotating them with :
845849
846850` ` ` yaml
847851kustomize.toolkit.fluxcd.io/force: enabled
848852` ` `
849853
854+ This way, only the targeted resources are force-replaced when immutable field
855+ changes are made. The annotation should be removed after the change is applied.
856+
850857# ## KubeConfig (Remote clusters)
851858
852859With the `.spec.kubeConfig` field a Kustomization
You can’t perform that action at this time.
0 commit comments