fix: correct yaml indentation

This commit is contained in:
2026-05-20 00:24:41 +02:00
parent 60a0d04319
commit 97c1a191eb

View File

@@ -4,7 +4,7 @@ metadata:
name: fastapi-api
namespace: student-marijam1909
annotations:
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
argocd.argoproj.io/sync-wave: "1"
spec:
replicas: 1
selector:
@@ -20,38 +20,45 @@ spec:
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
ports:
- containerPort: 8000
env:
- name: DATABASE_HOST
valueFrom:
configMapKeyRef:
name: fastapi-config
key: DATABASE_HOST
- name: DATABASE_PORT
valueFrom:
configMapKeyRef:
name: fastapi-config
key: DATABASE_PORT
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_USER
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_PASSWORD
- name: POSTGRES_DB
valueFrom:
secretKeyRef:
name: postgres-secret
key: POSTGRES_DB
readinessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 15
periodSeconds: 5
resources:
requests:
cpu: "25m"