From b4702ba2eb9b70d2e5d8cdb9e3e3cce73c6802dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20J=C3=B3zefczyk?= Date: Fri, 10 May 2024 13:34:17 +0200 Subject: [PATCH] feat: Parametrize number of replicas for HA deployment --- charts/hnc/templates/hnc-controller-manager-ha.yaml | 2 +- charts/hnc/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/hnc/templates/hnc-controller-manager-ha.yaml b/charts/hnc/templates/hnc-controller-manager-ha.yaml index 9058f2a32..823eac88a 100644 --- a/charts/hnc/templates/hnc-controller-manager-ha.yaml +++ b/charts/hnc/templates/hnc-controller-manager-ha.yaml @@ -7,7 +7,7 @@ metadata: name: {{ include "hnc.fullname" . }}-controller-manager-ha namespace: {{ include "hnc.namespace" . }} spec: - replicas: 3 + replicas: {{ .Values.ha.manager.replicas }} selector: matchLabels: control-plane: controller-manager-ha diff --git a/charts/hnc/values.yaml b/charts/hnc/values.yaml index 9dcbc7b2d..c738138aa 100644 --- a/charts/hnc/values.yaml +++ b/charts/hnc/values.yaml @@ -24,6 +24,7 @@ hrq: ha: enabled: false manager: + replicas: 3 resources: limits: cpu: 100m