From 4966d441012d77f797f0f6867b4d0e5d0e25ab8b Mon Sep 17 00:00:00 2001 From: jterryons <57897360+jterryons@users.noreply.github.com> Date: Tue, 8 Dec 2020 14:06:19 +0000 Subject: [PATCH] add min replicas (#222) * add min replicas * [ci skip] auto patch increment skip-checks: true Co-authored-by: ras-rm-bot <65395820+ras-rm-bot@users.noreply.github.com> --- _infra/helm/collection-exercise/Chart.yaml | 4 ++-- _infra/helm/collection-exercise/templates/hpa.yaml | 4 ++-- _infra/helm/collection-exercise/values.yaml | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/_infra/helm/collection-exercise/Chart.yaml b/_infra/helm/collection-exercise/Chart.yaml index 5f20573a1..4047e8ff0 100644 --- a/_infra/helm/collection-exercise/Chart.yaml +++ b/_infra/helm/collection-exercise/Chart.yaml @@ -14,9 +14,9 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 1.2.1 +version: 1.2.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. -appVersion: 11.0.30 +appVersion: 11.0.31 diff --git a/_infra/helm/collection-exercise/templates/hpa.yaml b/_infra/helm/collection-exercise/templates/hpa.yaml index 439747cc8..d0c4b38b1 100644 --- a/_infra/helm/collection-exercise/templates/hpa.yaml +++ b/_infra/helm/collection-exercise/templates/hpa.yaml @@ -8,8 +8,8 @@ spec: apiVersion: apps/v1 kind: Deployment name: {{ .Chart.Name }} - minReplicas: 1 - maxReplicas: {{ .Values.replicas }} + minReplicas: {{ .Values.replicas }} + maxReplicas: {{ .Values.maxReplicas }} metrics: - type: Resource resource: diff --git a/_infra/helm/collection-exercise/values.yaml b/_infra/helm/collection-exercise/values.yaml index b86a52efa..e217fb85f 100644 --- a/_infra/helm/collection-exercise/values.yaml +++ b/_infra/helm/collection-exercise/values.yaml @@ -53,6 +53,7 @@ scaleAt: memoryPercentage: 200 cpuPercentage: 500 replicas: 1 +maxReplicas: 1 rollingUpdate: maxSurge: 1 maxUnavailable: 1