From 5c4cb2a8c208cc0dd713128aebd9976ef018bc7e Mon Sep 17 00:00:00 2001 From: alvarof2 Date: Tue, 29 Oct 2024 16:40:58 +0100 Subject: [PATCH] Option to add replicas to celostats --- charts/celostats/Chart.yaml | 2 +- .../celostats/templates/celostats-frontend.deployment.yaml | 2 +- charts/celostats/templates/celostats-server.deployment.yaml | 2 +- charts/celostats/values.yaml | 5 +++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/charts/celostats/Chart.yaml b/charts/celostats/Chart.yaml index cae1e7cc..2aba15ad 100644 --- a/charts/celostats/Chart.yaml +++ b/charts/celostats/Chart.yaml @@ -1,7 +1,7 @@ --- name: celostats apiVersion: v2 -version: 0.1.2 +version: 0.1.3 description: Chart which is used to deploy a celostats setup for a celo testnet home: https://clabs.co sources: diff --git a/charts/celostats/templates/celostats-frontend.deployment.yaml b/charts/celostats/templates/celostats-frontend.deployment.yaml index f17dfa8c..f4b553e1 100644 --- a/charts/celostats/templates/celostats-frontend.deployment.yaml +++ b/charts/celostats/templates/celostats-frontend.deployment.yaml @@ -9,7 +9,7 @@ metadata: heritage: {{ .Release.Service }} component: celostats-frontend spec: - replicas: 1 + replicas: {{ .Values.celostats.replicas.frontend }} selector: matchLabels: app: celostats diff --git a/charts/celostats/templates/celostats-server.deployment.yaml b/charts/celostats/templates/celostats-server.deployment.yaml index e8ac9885..bb6fcbdf 100644 --- a/charts/celostats/templates/celostats-server.deployment.yaml +++ b/charts/celostats/templates/celostats-server.deployment.yaml @@ -9,7 +9,7 @@ metadata: heritage: {{ .Release.Service }} component: celostats-server spec: - replicas: 1 + replicas: {{ .Values.celostats.replicas.server }} selector: matchLabels: app: celostats diff --git a/charts/celostats/values.yaml b/charts/celostats/values.yaml index 77b5b376..e941b3d3 100644 --- a/charts/celostats/values.yaml +++ b/charts/celostats/values.yaml @@ -5,6 +5,11 @@ imagePullPolicy: IfNotPresent nodeSelector: {} celostats: + replicas: + # -- Server replicas + server: 1 + # -- Frontend replicas + frontend: 1 image: # -- Celostat-server image and tag server: