Skip to content

Commit

Permalink
Set different replicas for different clusters in machine sets config
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Stejskal <[email protected]>
  • Loading branch information
Frawless committed Aug 16, 2023
1 parent e8ee0cc commit c112cba
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions install/roles/tealc/templates/worker-machine-sets.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ metadata:
spec:
# 5x kafka node
{% if clusterName == "worker-01" %}
replicas: 5
{% else %}
replicas: 7
{% else %}
replicas: 5
{% endif %}
selector:
matchLabels:
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit c112cba

Please sign in to comment.