From 0df276299f828d5a0f7a8102afe95cef7d74d197 Mon Sep 17 00:00:00 2001 From: Petrraa Date: Tue, 26 May 2026 00:05:58 +0200 Subject: [PATCH] . --- manifests/app/deployment.yaml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/manifests/app/deployment.yaml b/manifests/app/deployment.yaml index 177365a..95b6fc7 100644 --- a/manifests/app/deployment.yaml +++ b/manifests/app/deployment.yaml @@ -4,7 +4,7 @@ metadata: name: fastapi-api namespace: student-petrraa annotations: - argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze + argocd.argoproj.io/sync-wave: "1" spec: replicas: 3 selector: @@ -18,15 +18,18 @@ spec: containers: - name: fastapi-api image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0 + resources: requests: cpu: "10m" - memory: "64Mi" + memory: "32Mi" limits: cpu: "50m" - memory: "128Mi" + memory: "64Mi" + ports: - containerPort: 8000 + env: - name: DATABASE_HOST valueFrom: @@ -53,13 +56,7 @@ spec: secretKeyRef: name: postgres-secret key: POSTGRES_DB - resources: - requests: - cpu: "10m" - memory: "32Mi" - limits: - cpu: "50m" - memory: "64Mi" + readinessProbe: httpGet: path: /health