fix(bstein-dev-home): harden backend gunicorn
This commit is contained in:
parent
bbb15a6532
commit
4a841a1660
@ -26,6 +26,15 @@ spec:
|
|||||||
- name: backend
|
- name: backend
|
||||||
image: registry.bstein.dev/bstein/bstein-dev-home-backend:0.1.1-69 # {"$imagepolicy": "bstein-dev-home:bstein-dev-home-backend"}
|
image: registry.bstein.dev/bstein/bstein-dev-home-backend:0.1.1-69 # {"$imagepolicy": "bstein-dev-home:bstein-dev-home-backend"}
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
|
command: ["gunicorn"]
|
||||||
|
args:
|
||||||
|
- -b
|
||||||
|
- 0.0.0.0:8080
|
||||||
|
- --workers
|
||||||
|
- "2"
|
||||||
|
- --timeout
|
||||||
|
- "180"
|
||||||
|
- app:app
|
||||||
env:
|
env:
|
||||||
- name: AI_CHAT_API
|
- name: AI_CHAT_API
|
||||||
value: http://ollama.ai.svc.cluster.local:11434
|
value: http://ollama.ai.svc.cluster.local:11434
|
||||||
@ -101,8 +110,8 @@ spec:
|
|||||||
timeoutSeconds: 3
|
timeoutSeconds: 3
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 50m
|
cpu: 100m
|
||||||
memory: 64Mi
|
memory: 128Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 300m
|
cpu: 500m
|
||||||
memory: 256Mi
|
memory: 512Mi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user