Flux restarting pods again after rolling restart #2755
-
I'm running into a strange issue where if I do a rolling restart on a deployment the kustomize-controller dispatches an event (after 10 or so minutes ) and restarts that same deployment. For example:
After Kustomization reconciliation finishes at 13:05:01
EDIT: Perhaps this is a different issue but I noticed there is one error in my logs regarding the
This is about the time all this started and I wonder if it has something to do with it. So I saw issue #2307 and thought it could be a pod to pod communication issue (100% not an overload issue) so I create and logged into a pod in the
It looks like it connect successfully to the host:
... but failed to find EDIT: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Flux does a rollback of any kubectl edits in-cluster, |
Beta Was this translation helpful? Give feedback.
Flux does a rollback of any kubectl edits in-cluster,
kubectl rollout restart deployment
adds an annotation that Flux removes, so Kubernetes sees the removal and restarts the deployment a 2nd time. All manual edits must be usingkubectl --field-manager=flux-client-side-apply
docs here: https://fluxcd.io/docs/faq/#why-are-kubectl-edits-rolled-back-by-flux