fix: ukloni sync-wave i dodaj resource limits za fastapi
This commit is contained in:
@@ -3,8 +3,6 @@ kind: Deployment
|
|||||||
metadata:
|
metadata:
|
||||||
name: fastapi-api
|
name: fastapi-api
|
||||||
namespace: student-tony773
|
namespace: student-tony773
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
@@ -20,6 +18,13 @@ spec:
|
|||||||
image: vasic/fastapi-todo-api:1.0
|
image: vasic/fastapi-todo-api:1.0
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: "10m"
|
||||||
|
memory: "64Mi"
|
||||||
|
limits:
|
||||||
|
cpu: "100m"
|
||||||
|
memory: "128Mi"
|
||||||
env:
|
env:
|
||||||
- name: DATABASE_HOST
|
- name: DATABASE_HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
|
|||||||
Reference in New Issue
Block a user