From 791c16f4485404bafbad81bf363d221562323858 Mon Sep 17 00:00:00 2001 From: Dominik Hebeler <dominik@suma-ev.de> Date: Mon, 22 Jan 2024 13:24:35 +0100 Subject: [PATCH] modified hpa --- .gitlab/production.yaml | 2 +- chart/templates/hpa.yaml | 6 +++--- chart/values.yaml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab/production.yaml b/.gitlab/production.yaml index 60d5aa209..0b84a801f 100644 --- a/.gitlab/production.yaml +++ b/.gitlab/production.yaml @@ -57,7 +57,7 @@ ingress: secretName: metager-tls-otherdomains autoscaling: - maxReplicas: 100 + maxReplicas: 5 podAnnotations: prometheus.io/scrape: "true" diff --git a/chart/templates/hpa.yaml b/chart/templates/hpa.yaml index 0cd3c5436..f33c1dac2 100644 --- a/chart/templates/hpa.yaml +++ b/chart/templates/hpa.yaml @@ -38,12 +38,12 @@ spec: selectPolicy: Max scaleUp: policies: - - periodSeconds: 15 + - periodSeconds: 30 type: Pods value: 4 - - periodSeconds: 15 + - periodSeconds: 30 type: Percent value: 100 selectPolicy: Max - stabilizationWindowSeconds: 60 + stabilizationWindowSeconds: 30 {{- end }} diff --git a/chart/values.yaml b/chart/values.yaml index e619a34dc..43c0677cf 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -122,7 +122,7 @@ autoscaling: enabled: true minReplicas: 2 maxReplicas: 5 - targetCPUUtilizationPercentage: 100 + targetCPUUtilizationPercentage: 85 #targetMemoryUtilizationPercentage: 80 nodeSelector: {} -- GitLab