fix: correct yaml indentation
This commit is contained in:
@@ -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,42 +20,49 @@ 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:
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "25m"
|
||||
memory: "64Mi"
|
||||
limits:
|
||||
cpu: "50m"
|
||||
memory: "128Mi"
|
||||
memory: "128Mi"
|
||||
Reference in New Issue
Block a user