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