fix(flux): Recreate deployment strategy

This commit is contained in:
JJGadgets
2024-05-23 03:35:47 +08:00
parent 1c46bf4bb5
commit 0c9d00206f

View File

@@ -217,17 +217,16 @@ spec:
path: /spec/template/spec/tolerations
value:
- operator: Exists
target:
kind: Deployment
- patch: |
- op: replace
path: /spec/strategy
value:
type: Recreate # avoid new pods stuck on CrashLoop because localhost is already binded
rollingUpdate: {}
- op: add
path: /spec/strategy
value:
type: Recreate # avoid new pods stuck on CrashLoop because localhost is already binded
target:
kind: Deployment
name: "(kustomize-controller|helm-controller|notification-controller)"
# Increase the number of reconciliations that can be performed in parallel and bump the resources limits
# https://fluxcd.io/flux/cheatsheets/bootstrap/#increase-the-number-of-workers
- patch: |