Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(helm): Add support for scaling behavior #1565

Merged
merged 1 commit into from
Nov 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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