From 4e449195165656739935c9f393d67c1a3e5b1bd4 Mon Sep 17 00:00:00 2001 From: Edvin Norling Date: Tue, 30 Nov 2021 18:27:02 +0100 Subject: [PATCH] Stop using leader-elect, use deployment recreate Solves #629, currently leader-elect is broken so for now we disable it. In the future we will most likley re-enable it again. --- config/manager/manager.yaml | 2 ++ config/manager/manager_auth_proxy_patch.yaml | 1 - deploy/manifests/latest/deployment.yaml | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 5b6b75d47..181af5a98 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -10,6 +10,8 @@ spec: matchLabels: control-plane: controller-manager replicas: 1 + strategy: + type: Recreate template: metadata: labels: diff --git a/config/manager/manager_auth_proxy_patch.yaml b/config/manager/manager_auth_proxy_patch.yaml index e4f125b4a..407c206ac 100644 --- a/config/manager/manager_auth_proxy_patch.yaml +++ b/config/manager/manager_auth_proxy_patch.yaml @@ -24,5 +24,4 @@ spec: args: - "--health-probe-bind-address=:8081" - "--metrics-bind-address=127.0.0.1:8080" - - "--leader-elect" - "--zap-log-level=error" diff --git a/deploy/manifests/latest/deployment.yaml b/deploy/manifests/latest/deployment.yaml index 929508254..b4ebbf00c 100644 --- a/deploy/manifests/latest/deployment.yaml +++ b/deploy/manifests/latest/deployment.yaml @@ -28,6 +28,8 @@ spec: selector: matchLabels: control-plane: controller-manager + strategy: + type: Recreate template: metadata: labels: @@ -48,7 +50,6 @@ spec: - args: - --health-probe-bind-address=:8081 - --metrics-bind-address=127.0.0.1:8080 - - --leader-elect - --zap-log-level=error command: - /manager