From c112cbaac7c652866cca58d2fdc45f6898348c4f Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Wed, 16 Aug 2023 11:57:41 +0200 Subject: [PATCH] Set different replicas for different clusters in machine sets config Signed-off-by: Jakub Stejskal --- .../tealc/templates/worker-machine-sets.yaml.j2 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install/roles/tealc/templates/worker-machine-sets.yaml.j2 b/install/roles/tealc/templates/worker-machine-sets.yaml.j2 index 60883412..9c635d56 100644 --- a/install/roles/tealc/templates/worker-machine-sets.yaml.j2 +++ b/install/roles/tealc/templates/worker-machine-sets.yaml.j2 @@ -11,9 +11,9 @@ metadata: spec: # 5x kafka node {% if clusterName == "worker-01" %} - replicas: 5 -{% else %} replicas: 7 +{% else %} + replicas: 5 {% endif %} selector: matchLabels: @@ -73,7 +73,11 @@ metadata: machine.openshift.io/cluster-api-machine-type: worker spec: # 5x connect node +{% if clusterName == "worker-01" %} replicas: 5 +{% else %} + replicas: 3 +{% endif %} selector: matchLabels: machine.openshift.io/cluster-api-cluster: {{ clusterId }} @@ -127,8 +131,12 @@ metadata: machine.openshift.io/cluster-api-machine-role: worker machine.openshift.io/cluster-api-machine-type: worker spec: - # 4x infra node + # infra nodes +{% if clusterName == "worker-01" %} replicas: 4 +{% else %} + replicas: 2 +{% endif %} selector: matchLabels: machine.openshift.io/cluster-api-cluster: {{ clusterId }}