From 382f9cd295da2e1d789a3346b09c6bac13458bd4 Mon Sep 17 00:00:00 2001 From: Om Mishra <32200996+mishraomp@users.noreply.github.com> Date: Wed, 1 Nov 2023 21:39:56 -0700 Subject: [PATCH] feat(helm): Add support for scaling behavior (#1565) --- charts/quickstart-openshift/Chart.lock | 10 +++--- charts/quickstart-openshift/Chart.yaml | 6 ++-- charts/quickstart-openshift/values.yaml | 46 +++++++++++++++++++++++-- 3 files changed, 52 insertions(+), 10 deletions(-) diff --git a/charts/quickstart-openshift/Chart.lock b/charts/quickstart-openshift/Chart.lock index f0d593bfa..0214c25fc 100644 --- a/charts/quickstart-openshift/Chart.lock +++ b/charts/quickstart-openshift/Chart.lock @@ -1,15 +1,15 @@ dependencies: - name: component repository: https://bcgov.github.io/helm-service - version: 0.0.15 + version: 0.0.16 - name: component repository: https://bcgov.github.io/helm-service - version: 0.0.15 + version: 0.0.16 - name: postgresql repository: https://charts.bitnami.com/bitnami version: 13.2.0 - name: component repository: https://bcgov.github.io/helm-service - version: 0.0.15 -digest: sha256:3b972df598e4d6e8bb3d83b3bf75de3bf003e99f1cc6edbd6c891e11cc797dc9 -generated: "2023-11-01T02:46:19.651314098Z" + version: 0.0.16 +digest: sha256:1672c409413ee4af395c82eb625bc38bd6b48f3abea0440b5b566d6f354f062b +generated: "2023-11-01T21:30:49.1977577-07:00" diff --git a/charts/quickstart-openshift/Chart.yaml b/charts/quickstart-openshift/Chart.yaml index de3f434ad..67526bdec 100644 --- a/charts/quickstart-openshift/Chart.yaml +++ b/charts/quickstart-openshift/Chart.yaml @@ -27,13 +27,13 @@ appVersion: "1.16.0" dependencies: - name: component condition: backend.enabled - version: 0.0.15 + version: 0.0.16 repository: https://bcgov.github.io/helm-service alias: backend - name: component condition: frontend.enabled - version: 0.0.15 + version: 0.0.16 repository: https://bcgov.github.io/helm-service alias: frontend @@ -46,6 +46,6 @@ dependencies: - name: component condition: backup.enabled - version: 0.0.15 + version: 0.0.16 repository: https://bcgov.github.io/helm-service alias: backup diff --git a/charts/quickstart-openshift/values.yaml b/charts/quickstart-openshift/values.yaml index e141c2cf4..4c8aa8d0c 100644 --- a/charts/quickstart-openshift/values.yaml +++ b/charts/quickstart-openshift/values.yaml @@ -97,8 +97,29 @@ backend: autoscaling: enabled: true minReplicas: 3 - maxReplicas: 5 + maxReplicas: 7 targetCPUUtilizationPercentage: 80 # this percentage from request cpu + behavior: + scaleDown: + stabilizationWindowSeconds: 300 + policies: + - type: Percent + value: 10 + periodSeconds: 60 + - type: Pods + value: 2 + periodSeconds: 60 + selectPolicy: Min + scaleUp: + stabilizationWindowSeconds: 0 + policies: + - type: Percent + value: 100 + periodSeconds: 30 + - type: Pods + value: 2 + periodSeconds: 30 + selectPolicy: Max vault: enabled: false entrypoint: ~ # the entrypoint for vault, this is the override of container command. @@ -205,8 +226,29 @@ frontend: autoscaling: enabled: true minReplicas: 3 - maxReplicas: 5 + maxReplicas: 7 targetCPUUtilizationPercentage: 80 # this percentage from request cpu + behavior: + scaleDown: + stabilizationWindowSeconds: 300 + policies: + - type: Percent + value: 10 + periodSeconds: 60 + - type: Pods + value: 2 + periodSeconds: 60 + selectPolicy: Min + scaleUp: + stabilizationWindowSeconds: 0 + policies: + - type: Percent + value: 100 + periodSeconds: 30 + - type: Pods + value: 2 + periodSeconds: 30 + selectPolicy: Max service: enabled: true type: ClusterIP