From b406a40573c17d3db92b125432bcce71ef557ee2 Mon Sep 17 00:00:00 2001 From: Brad Date: Wed, 14 Dec 2022 22:32:35 -0800 Subject: [PATCH] replicas --- helm-webapp/templates/deployment.yaml | 2 +- helm-webapp/values-dev.yaml | 2 ++ helm-webapp/values-prod.yaml | 2 ++ kustom-webapp/overlays/prod/replicas.yaml | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/helm-webapp/templates/deployment.yaml b/helm-webapp/templates/deployment.yaml index 31917bb..1ba1743 100644 --- a/helm-webapp/templates/deployment.yaml +++ b/helm-webapp/templates/deployment.yaml @@ -5,7 +5,7 @@ metadata: labels: app: {{ .Values.appName }} spec: - replicas: 5 + replicas: {{ .Values.replicas }} selector: matchLabels: app: {{ .Values.appName }} diff --git a/helm-webapp/values-dev.yaml b/helm-webapp/values-dev.yaml index b80609b..386934b 100644 --- a/helm-webapp/values-dev.yaml +++ b/helm-webapp/values-dev.yaml @@ -1,4 +1,6 @@ +replicas: 2 + configmap: data: CUSTOM_HEADER: 'This is on the DEV environment!' diff --git a/helm-webapp/values-prod.yaml b/helm-webapp/values-prod.yaml index efac5ea..fa91ac7 100644 --- a/helm-webapp/values-prod.yaml +++ b/helm-webapp/values-prod.yaml @@ -1,4 +1,6 @@ +replicas: 4 + configmap: data: CUSTOM_HEADER: 'This is on the PROD environment!' diff --git a/kustom-webapp/overlays/prod/replicas.yaml b/kustom-webapp/overlays/prod/replicas.yaml index 2e928bb..81d52ea 100644 --- a/kustom-webapp/overlays/prod/replicas.yaml +++ b/kustom-webapp/overlays/prod/replicas.yaml @@ -3,4 +3,4 @@ kind: Deployment metadata: name: mywebapp spec: - replicas: 5 \ No newline at end of file + replicas: 4 \ No newline at end of file