fix cpu qouta
This commit is contained in:
@@ -5,44 +5,64 @@ metadata:
|
||||
namespace: student-antoniomaric1
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "1"
|
||||
|
||||
spec:
|
||||
replicas: 1
|
||||
|
||||
selector:
|
||||
matchLabels:
|
||||
app: fastapi-api
|
||||
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: fastapi-api
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: fastapi-api
|
||||
image: vasic/fastapi-todo-api:1.0
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "64Mi"
|
||||
limits:
|
||||
cpu: "100m"
|
||||
memory: "128Mi"
|
||||
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
env:
|
||||
- name: DATABASE_HOST
|
||||
value: postgres-service
|
||||
|
||||
- name: DATABASE_PORT
|
||||
value: "5432"
|
||||
|
||||
- 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
|
||||
Reference in New Issue
Block a user