From 16c6a07504c5df52d7dc24ecfcf952ef6776f499 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 2 Feb 2021 11:40:52 +0100 Subject: [PATCH] Use Recreate strategy for controller deployment - Prevents a deadlock in active-passive HA setups with multiple replicas and during upgrades that previously occurred. As the leader election would be held hostage by the previous replica set due to the rolling update strategy. - Ensures backing persistent (RW) volumes can safely be used, as they can not be shared and will not become available to the next pod without recreating all. Signed-off-by: Hidde Beydals --- config/manager/deployment.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/manager/deployment.yaml b/config/manager/deployment.yaml index d6d45385..9aad60bd 100644 --- a/config/manager/deployment.yaml +++ b/config/manager/deployment.yaml @@ -9,6 +9,8 @@ spec: matchLabels: app: source-controller replicas: 1 + strategy: + type: Recreate template: metadata: labels: