From 136e5f9e9a334f3a03497971bd97e6e8321dfd25 Mon Sep 17 00:00:00 2001 From: Keiichi Kii Date: Fri, 26 Jan 2024 20:32:49 -0500 Subject: [PATCH] Run manager with 2 replicas Signed-off-by: Keiichi Kii Signed-off-by: Keiichi Kii --- .../self-node-remediation.clusterserviceversion.yaml | 12 +++++++++++- config/manager/manager.yaml | 12 +++++++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/bundle/manifests/self-node-remediation.clusterserviceversion.yaml b/bundle/manifests/self-node-remediation.clusterserviceversion.yaml index c03155947..4a5c6d99b 100644 --- a/bundle/manifests/self-node-remediation.clusterserviceversion.yaml +++ b/bundle/manifests/self-node-remediation.clusterserviceversion.yaml @@ -325,7 +325,7 @@ spec: self-node-remediation-operator: "" name: self-node-remediation-controller-manager spec: - replicas: 1 + replicas: 2 selector: matchLabels: control-plane: controller-manager @@ -337,6 +337,16 @@ spec: control-plane: controller-manager self-node-remediation-operator: "" spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: control-plane + operator: In + values: + - controller-manager + topologyKey: kubernetes.io/hostname containers: - args: - --health-probe-bind-address=:8081 diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 6ade1fe54..c6d7315bd 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -16,12 +16,22 @@ spec: selector: matchLabels: control-plane: controller-manager - replicas: 1 + replicas: 2 template: metadata: labels: control-plane: controller-manager spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: control-plane + operator: In + values: + - controller-manager + topologyKey: kubernetes.io/hostname securityContext: runAsNonRoot: false priorityClassName: system-cluster-critical