From d3a7f8b8245ca2a56b2a45a1ac9c635fc4124089 Mon Sep 17 00:00:00 2001 From: Nick Szaunig Date: Sat, 10 Oct 2026 04:08:14 +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/04-postgres.yaml | 2 +- k8s/05-app-deployment.yaml | 3 ++- k8s/07-worker-cronjob.yaml | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/k8s/04-postgres.yaml b/k8s/04-postgres.yaml index 5944897..32ce6e7 100644 --- a/k8s/04-postgres.yaml +++ b/k8s/04-postgres.yaml @@ -41,7 +41,7 @@ spec: exec: { command: ["pg_isready", "-U", "artista"] } periodSeconds: 5 resources: - requests: { cpu: 100m, memory: 256Mi } + requests: { cpu: "0", memory: "0" } limits: { memory: 1Gi } securityContext: allowPrivilegeEscalation: false diff --git a/k8s/05-app-deployment.yaml b/k8s/05-app-deployment.yaml index 56f4888..57a98f2 100644 --- a/k8s/05-app-deployment.yaml +++ b/k8s/05-app-deployment.yaml @@ -30,6 +30,7 @@ spec: envFrom: - secretRef: { name: artista-modelcamp-secrets } resources: + requests: { cpu: "0", memory: "0" } limits: { memory: 512Mi } securityContext: allowPrivilegeEscalation: false @@ -52,7 +53,7 @@ spec: initialDelaySeconds: 20 periodSeconds: 20 resources: - requests: { cpu: 200m, memory: 256Mi } + requests: { cpu: "0", memory: "0" } limits: { memory: 768Mi } securityContext: allowPrivilegeEscalation: false diff --git a/k8s/07-worker-cronjob.yaml b/k8s/07-worker-cronjob.yaml index 19cb709..dcd8b72 100644 --- a/k8s/07-worker-cronjob.yaml +++ b/k8s/07-worker-cronjob.yaml @@ -32,6 +32,7 @@ spec: - configMapRef: { name: artista-modelcamp-config } - secretRef: { name: artista-modelcamp-secrets } resources: + requests: { cpu: "0", memory: "0" } limits: { memory: 512Mi } securityContext: allowPrivilegeEscalation: false