From 19921557f4c1d75351214a9dbbdee6763c3a961f Mon Sep 17 00:00:00 2001 From: Janis Eccarius Date: Mon, 1 Jun 2026 23:41:26 +0200 Subject: [PATCH] fix(staging): cap all HPA maxReplicas to 1 in staging environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Staging HPAs were scaling up to 3-5 replicas under CPU load, competing with production for node memory request budget on the shared 2-node cluster. Staging does not need autoscaling — fixed at 1 replica per service. Co-Authored-By: Claude Sonnet 4.6 --- .../eu-central-1-staging/kustomization.yaml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/nowchess/eu-central-1-staging/kustomization.yaml b/nowchess/eu-central-1-staging/kustomization.yaml index 668de13..7bda82a 100644 --- a/nowchess/eu-central-1-staging/kustomization.yaml +++ b/nowchess/eu-central-1-staging/kustomization.yaml @@ -28,6 +28,7 @@ patches: name: nowchess-account spec: minReplicas: 1 + maxReplicas: 1 - patch: |- apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler @@ -35,6 +36,42 @@ patches: name: nowchess-ws spec: minReplicas: 1 + maxReplicas: 1 +- patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: nowchess-bot-platform + spec: + maxReplicas: 1 +- patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: nowchess-io + spec: + maxReplicas: 1 +- patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: nowchess-official-bots + spec: + maxReplicas: 1 +- patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: nowchess-rule + spec: + maxReplicas: 1 +- patch: |- + apiVersion: autoscaling/v2 + kind: HorizontalPodAutoscaler + metadata: + name: nowchess-store + spec: + maxReplicas: 1 - patch: |- apiVersion: argoproj.io/v1alpha1 kind: Rollout