fix: correct yaml indentation
This commit is contained in:
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: fastapi-api
|
name: fastapi-api
|
||||||
namespace: student-marijam1909
|
namespace: student-marijam1909
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -20,42 +20,49 @@ spec:
|
|||||||
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
|
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_HOST
|
- name: DATABASE_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: fastapi-config
|
name: fastapi-config
|
||||||
key: DATABASE_HOST
|
key: DATABASE_HOST
|
||||||
|
|
||||||
- name: DATABASE_PORT
|
- name: DATABASE_PORT
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: fastapi-config
|
name: fastapi-config
|
||||||
key: DATABASE_PORT
|
key: DATABASE_PORT
|
||||||
|
|
||||||
- name: POSTGRES_USER
|
- name: POSTGRES_USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
key: POSTGRES_USER
|
key: POSTGRES_USER
|
||||||
|
|
||||||
- name: POSTGRES_PASSWORD
|
- name: POSTGRES_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
key: POSTGRES_PASSWORD
|
key: POSTGRES_PASSWORD
|
||||||
|
|
||||||
- name: POSTGRES_DB
|
- name: POSTGRES_DB
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
key: POSTGRES_DB
|
key: POSTGRES_DB
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: 8000
|
port: 8000
|
||||||
initialDelaySeconds: 15
|
initialDelaySeconds: 15
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
resources:
|
|
||||||
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "25m"
|
cpu: "25m"
|
||||||
memory: "64Mi"
|
memory: "64Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
Reference in New Issue
Block a user