From 0b4771fed21a9d6574f0d374b8de01f6775dd145 Mon Sep 17 00:00:00 2001 From: Angelo Caporaso <56113767+cap-ang@users.noreply.github.com> Date: Mon, 4 Nov 2024 11:17:39 +0100 Subject: [PATCH] [PAGOPA-2334] config: Update minReplica and podAntiAffinity (#25) * [PP-2334] config: Update minReplica and podAntiAffinity * [PP-2334] config: Autoscaling based on memory trigger --- helm/values-prod.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/helm/values-prod.yaml b/helm/values-prod.yaml index 9f3a2139..79e04e36 100644 --- a/helm/values-prod.yaml +++ b/helm/values-prod.yaml @@ -35,13 +35,17 @@ wispsoapconverter: cpu: "1000m" autoscaling: enable: true - minReplica: 1 + minReplica: 2 maxReplica: 10 triggers: - type: cpu metricType: Utilization metadata: value: "80" + - type: memory + metricType: Utilization + metadata: + value: "200" advanced: horizontalPodAutoscalerConfig: behavior: @@ -114,6 +118,15 @@ wispsoapconverter: operator: In values: - user + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app.kubernetes.io/instance: wispsoapconverter + namespaces: [ "nodo" ] + topologyKey: topology.kubernetes.io/zone serviceMonitor: create: true endpoints: