.
This commit is contained in:
@@ -4,7 +4,7 @@ metadata:
|
|||||||
name: fastapi-api
|
name: fastapi-api
|
||||||
namespace: student-petrraa
|
namespace: student-petrraa
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-wave: "1" # deploy NAKON baze
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
spec:
|
spec:
|
||||||
replicas: 3
|
replicas: 3
|
||||||
selector:
|
selector:
|
||||||
@@ -18,15 +18,18 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: fastapi-api
|
- name: fastapi-api
|
||||||
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
|
image: git.fpmoz.sum.ba/dvasic/fastapi-todo-api:1.0
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: "10m"
|
cpu: "10m"
|
||||||
memory: "64Mi"
|
memory: "32Mi"
|
||||||
limits:
|
limits:
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
memory: "128Mi"
|
memory: "64Mi"
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_HOST
|
- name: DATABASE_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
@@ -53,13 +56,7 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: postgres-secret
|
name: postgres-secret
|
||||||
key: POSTGRES_DB
|
key: POSTGRES_DB
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: "10m"
|
|
||||||
memory: "32Mi"
|
|
||||||
limits:
|
|
||||||
cpu: "50m"
|
|
||||||
memory: "64Mi"
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
|
|||||||
Reference in New Issue
Block a user