From 1c46bf4bb5cf7b1cb35176d188534efd5b2aae4f Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Thu, 23 May 2024 03:25:20 +0800 Subject: [PATCH] fix(flux): Recreate deployment strategy --- .../bootstrap/flux/flux-install-localhost.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kube/bootstrap/flux/flux-install-localhost.yaml b/kube/bootstrap/flux/flux-install-localhost.yaml index a629a32b..76338161 100644 --- a/kube/bootstrap/flux/flux-install-localhost.yaml +++ b/kube/bootstrap/flux/flux-install-localhost.yaml @@ -219,15 +219,15 @@ spec: - 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: {} -# target: -# kind: Deployment -# name: "(kustomize-controller|helm-controller|notification-controller)" + - patch: | + - op: replace + path: /spec/strategy + value: + type: Recreate # avoid new pods stuck on CrashLoop because localhost is already binded + rollingUpdate: {} + 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: |