From 5c4cb2a8c208cc0dd713128aebd9976ef018bc7e Mon Sep 17 00:00:00 2001 From: alvarof2 Date: Tue, 29 Oct 2024 16:40:58 +0100 Subject: [PATCH 1/2] 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: From 04cbcb5c628a7ea63ddeb376ef22bf3ed4fc3b13 Mon Sep 17 00:00:00 2001 From: alvarof2 Date: Tue, 29 Oct 2024 15:47:43 +0000 Subject: [PATCH 2/2] [Automatic] - Update chart README.md --- charts/celostats/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/celostats/README.md b/charts/celostats/README.md index b9f7fa2b..89368839 100644 --- a/charts/celostats/README.md +++ b/charts/celostats/README.md @@ -1,6 +1,6 @@ # celostats -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square) Chart which is used to deploy a celostats setup for a celo testnet @@ -26,6 +26,8 @@ Chart which is used to deploy a celostats setup for a celo testnet | celostats.banned_addresses | list | `[]` | Banned addresses list | | celostats.image.frontend | object | `{"repository":"us-west1-docker.pkg.dev/devopsre/celostats-server/celostats-frontend","tag":"latest"}` | Celostat-frontend image and tag | | celostats.image.server | object | `{"repository":"us-west1-docker.pkg.dev/devopsre/celostats-server/celostats-server","tag":"latest"}` | Celostat-server image and tag | +| celostats.replicas.frontend | int | `1` | Frontend replicas | +| celostats.replicas.server | int | `1` | Server replicas | | celostats.secrets | object | `{}` | | | celostats.service | object | `{"type":"NodePort"}` | Service type | | celostats.trusted_addresses | list | `[]` | Trusted addresses list |