Skip to content

Commit

Permalink
feat(helm): Add support for scaling behavior (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
mishraomp authored Nov 2, 2023
1 parent 98cdc87 commit 382f9cd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 10 deletions.
10 changes: 5 additions & 5 deletions charts/quickstart-openshift/Chart.lock
Original file line number Diff line number Diff line change
@@ -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"
6 changes: 3 additions & 3 deletions charts/quickstart-openshift/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
46 changes: 44 additions & 2 deletions charts/quickstart-openshift/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 382f9cd

Please sign in to comment.