From b6d1a73101438511ce74862e93fe53b21423267a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Sun, 18 Jan 2026 21:24:01 +0100 Subject: [PATCH] fix HPA --- k8s/hpa.yaml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/k8s/hpa.yaml b/k8s/hpa.yaml index a695608..6d85633 100644 --- a/k8s/hpa.yaml +++ b/k8s/hpa.yaml @@ -10,15 +10,23 @@ spec: minReplicas: 2 maxReplicas: 20 metrics: - - type: Resource - resource: - name: cpu - target: - type: Utilization - averageUtilization: 80 - - type: Resource - resource: - name: memory - target: - type: Utilization - averageUtilization: 90 + - type: Resource + resource: + name: cpu + target: + type: Utilization + averageUtilization: 80 + - type: Resource + resource: + name: memory + target: + type: Utilization + averageUtilization: 90 + behavior: + scaleDown: + stabilizationWindowSeconds: 600 + policies: + - type: Pods + value: 1 + periodSeconds: 600 + selectPolicy: Min \ No newline at end of file