From dc76334369b64c1088cc4291812938ab486c09dd Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Thu, 25 Jan 2024 18:46:23 +0000 Subject: [PATCH 1/2] PTFE-1388 update HPA config and apiVersion --- charts/artifacts/templates/autoscaler.yaml | 2 +- charts/artifacts/values.yaml | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/charts/artifacts/templates/autoscaler.yaml b/charts/artifacts/templates/autoscaler.yaml index 931c368..ab910f0 100644 --- a/charts/artifacts/templates/autoscaler.yaml +++ b/charts/artifacts/templates/autoscaler.yaml @@ -1,4 +1,4 @@ -apiVersion: autoscaling/v1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "fullname" $ }} diff --git a/charts/artifacts/values.yaml b/charts/artifacts/values.yaml index 76f06e0..85e2970 100644 --- a/charts/artifacts/values.yaml +++ b/charts/artifacts/values.yaml @@ -80,13 +80,25 @@ deployment: ## default: min = 1 and max = 1 (i.e. one at all times) ## minReplicas: 1 - maxReplicas: 1 + maxReplicas: 2 ## autoscalerSpec contains the dictionnary to insert in place ## of criterias to meet to scale up and down. ## autoscalerSpec: - targetCPUUtilizationPercentage: 90 + metrics: + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 50 + - type: Resource + resource: + name: memory + target: + type: AverageValue + averageValue: 500Mi artifacts: ## Configure resource requests and limits From 7581a5d9db67014554e02422455105cdf786d61a Mon Sep 17 00:00:00 2001 From: Thomas Carmet <8408330+tcarmet@users.noreply.github.com> Date: Thu, 25 Jan 2024 10:47:43 -0800 Subject: [PATCH 2/2] Update charts/artifacts/values.yaml --- charts/artifacts/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/artifacts/values.yaml b/charts/artifacts/values.yaml index 85e2970..23830d1 100644 --- a/charts/artifacts/values.yaml +++ b/charts/artifacts/values.yaml @@ -80,7 +80,7 @@ deployment: ## default: min = 1 and max = 1 (i.e. one at all times) ## minReplicas: 1 - maxReplicas: 2 + maxReplicas: 1 ## autoscalerSpec contains the dictionnary to insert in place ## of criterias to meet to scale up and down.