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