fix: api container probe config - listen on 0.0.0.0 and increase probe delays
This commit is contained in:
parent
39c0b88476
commit
e013edb4ee
@ -57,19 +57,13 @@ spec:
|
||||
- name: api
|
||||
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}"
|
||||
imagePullPolicy: {{ .Values.api.image.pullPolicy }}
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
pip install --no-cache-dir Flask==2.3.2 2>&1 | grep -v "already satisfied" || true
|
||||
exec python3 /app/app.py
|
||||
ports:
|
||||
- name: api
|
||||
containerPort: 5000
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: API_HOST
|
||||
value: "127.0.0.1"
|
||||
value: "0.0.0.0"
|
||||
- name: API_PORT
|
||||
value: "5000"
|
||||
- name: FLASK_ENV
|
||||
@ -78,17 +72,17 @@ spec:
|
||||
httpGet:
|
||||
path: /health
|
||||
port: api
|
||||
initialDelaySeconds: 15
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /ready
|
||||
port: api
|
||||
initialDelaySeconds: 15
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 3
|
||||
timeoutSeconds: 5
|
||||
failureThreshold: 2
|
||||
resources:
|
||||
limits:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user