From 7698d4cef323e23e0f2ce8a7f3a0b0a6d0b8e420 Mon Sep 17 00:00:00 2001 From: Nick Szaunig Date: Sat, 10 Oct 2026 04:08:40 +0200 Subject: [PATCH] chore(k8s): CPU- und Speicher-Reservierung entfernen Requests stehen explizit auf 0 statt zu fehlen, weil Kubernetes einen fehlenden Request auf das Limit setzt und dann noch mehr reserviert. Die Limits bleiben als Obergrenze. Co-Authored-By: Claude Opus 5.5 (1M context) --- k8s/03-mysql.yaml | 4 ++-- k8s/03-postgres.yaml | 4 ++-- k8s/05-app-deployment.yaml | 4 ++-- k8s/07-backup-cronjob.yaml | 12 ++++++------ 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/k8s/03-mysql.yaml b/k8s/03-mysql.yaml index f9e06bd..f9de845 100644 --- a/k8s/03-mysql.yaml +++ b/k8s/03-mysql.yaml @@ -43,8 +43,8 @@ spec: periodSeconds: 5 resources: requests: - cpu: 100m - memory: 256Mi + cpu: "0" + memory: "0" limits: memory: 512Mi volumeClaimTemplates: diff --git a/k8s/03-postgres.yaml b/k8s/03-postgres.yaml index 7403542..37e4387 100644 --- a/k8s/03-postgres.yaml +++ b/k8s/03-postgres.yaml @@ -42,8 +42,8 @@ spec: periodSeconds: 5 resources: requests: - cpu: 100m - memory: 256Mi + cpu: "0" + memory: "0" limits: memory: 512Mi volumeClaimTemplates: diff --git a/k8s/05-app-deployment.yaml b/k8s/05-app-deployment.yaml index 88573d9..b2d74f4 100644 --- a/k8s/05-app-deployment.yaml +++ b/k8s/05-app-deployment.yaml @@ -164,8 +164,8 @@ spec: # Transcode hart drosseln, auch wenn der Knoten gerade frei ist. resources: requests: - cpu: 500m - memory: 512Mi + cpu: "0" + memory: "0" limits: memory: 1Gi volumes: diff --git a/k8s/07-backup-cronjob.yaml b/k8s/07-backup-cronjob.yaml index f7c6ba4..39d5d32 100644 --- a/k8s/07-backup-cronjob.yaml +++ b/k8s/07-backup-cronjob.yaml @@ -129,8 +129,8 @@ spec: ls -lh /backup resources: requests: - cpu: 50m - memory: 128Mi + cpu: "0" + memory: "0" limits: memory: 256Mi volumeMounts: @@ -242,8 +242,8 @@ spec: exec tsx scripts/release-stale-orders.ts resources: requests: - cpu: 50m - memory: 128Mi + cpu: "0" + memory: "0" limits: # Derselbe Wert wie beim App-Container: der Lauf laedt # denselben Prisma-Client samt Treiber. @@ -296,7 +296,7 @@ spec: exec tsx scripts/apicore-stock-sync.ts resources: requests: - cpu: 50m - memory: 128Mi + cpu: "0" + memory: "0" limits: memory: 512Mi