From a7f3fa41a2bb51c8c42ae3ef68ecdae24f5bdb99 Mon Sep 17 00:00:00 2001 From: IvaCerkez Date: Mon, 25 May 2026 16:05:01 +0200 Subject: [PATCH] fix cpu quota for fastapi deploy --- manifests/app/deployment.yaml | 4 ++-- manifests/database/deployment.yaml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/manifests/app/deployment.yaml b/manifests/app/deployment.yaml index 8647cca..aafdb47 100644 --- a/manifests/app/deployment.yaml +++ b/manifests/app/deployment.yaml @@ -21,10 +21,10 @@ spec: resources: requests: - cpu: "1m" + cpu: "5m" memory: "32Mi" limits: - cpu: "5m" + cpu: "10m" memory: "64Mi" ports: diff --git a/manifests/database/deployment.yaml b/manifests/database/deployment.yaml index 3017fd6..ab6ec84 100644 --- a/manifests/database/deployment.yaml +++ b/manifests/database/deployment.yaml @@ -21,6 +21,15 @@ spec: name: postgres-secret # lozinke iz Secreta ports: - containerPort: 5432 + + resources: + requests: + cpu: "50m" + memory: "64Mi" + limits: + cpu: "100m" + memory: "128Mi" + volumeMounts: - name: postgres-data mountPath: /var/lib/postgresql/data