diff options
author | Rashesh Padia <rashesh.padia@collabora.com> | 2024-05-22 15:19:38 +0530 |
---|---|---|
committer | Rashesh Padia <rasheshpadia419@gmail.com> | 2024-06-12 12:24:30 +0530 |
commit | 0568496c56f78d38f22b612dcc030e6ee0aacee7 (patch) | |
tree | b8bf609d16cb7da2bd584d40a9369d6b082f5d4d | |
parent | annotation: match the reply order to core (diff) | |
download | online-0568496c56f78d38f22b612dcc030e6ee0aacee7.tar.gz online-0568496c56f78d38f22b612dcc030e6ee0aacee7.zip |
k8s: added config option to disable HPA scaledown
Signed-off-by: Rashesh Padia <rashesh.padia@collabora.com>
Change-Id: I43931c6d19e3bb1695a6d0cf099c79fc0e534114
-rw-r--r-- | kubernetes/helm/collabora-online/templates/hpa.yaml | 5 | ||||
-rw-r--r-- | kubernetes/helm/collabora-online/values.yaml | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/kubernetes/helm/collabora-online/templates/hpa.yaml b/kubernetes/helm/collabora-online/templates/hpa.yaml index 4981bb469b..e266154ecd 100644 --- a/kubernetes/helm/collabora-online/templates/hpa.yaml +++ b/kubernetes/helm/collabora-online/templates/hpa.yaml @@ -29,4 +29,9 @@ spec: type: Utilization averageUtilization: {{ . }} {{- end }} + {{- if .Values.autoscaling.scaleDownDisabled }} + behavior: + scaleDown: + selectPolicy: Disabled + {{- end }} {{- end }} diff --git a/kubernetes/helm/collabora-online/values.yaml b/kubernetes/helm/collabora-online/values.yaml index 3b788acdf0..d0c606344b 100644 --- a/kubernetes/helm/collabora-online/values.yaml +++ b/kubernetes/helm/collabora-online/values.yaml @@ -229,6 +229,7 @@ autoscaling: maxReplicas: 100 targetCPUUtilizationPercentage: 70 targetMemoryUtilizationPercentage: 50 + scaleDownDisabled: false dynamicConfig: enabled: false |