From 0c9d00206f044b1e14f95069b2fa48235eca8136 Mon Sep 17 00:00:00 2001 From: JJGadgets Date: Thu, 23 May 2024 03:35:47 +0800 Subject: [PATCH] fix(flux): Recreate deployment strategy --- kube/bootstrap/flux/flux-install-localhost.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/kube/bootstrap/flux/flux-install-localhost.yaml b/kube/bootstrap/flux/flux-install-localhost.yaml index 76338161..3bacc508 100644 --- a/kube/bootstrap/flux/flux-install-localhost.yaml +++ b/kube/bootstrap/flux/flux-install-localhost.yaml @@ -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: |