fix: api container probe config - listen on 0.0.0.0 and increase probe delays

This commit is contained in:
dvirlabs 2026-04-21 19:08:24 +03:00
parent 39c0b88476
commit e013edb4ee

View File

@ -57,19 +57,13 @@ spec:
- name: api - name: api
image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}" image: "{{ .Values.api.image.repository }}:{{ .Values.api.image.tag }}"
imagePullPolicy: {{ .Values.api.image.pullPolicy }} 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: ports:
- name: api - name: api
containerPort: 5000 containerPort: 5000
protocol: TCP protocol: TCP
env: env:
- name: API_HOST - name: API_HOST
value: "127.0.0.1" value: "0.0.0.0"
- name: API_PORT - name: API_PORT
value: "5000" value: "5000"
- name: FLASK_ENV - name: FLASK_ENV
@ -78,17 +72,17 @@ spec:
httpGet: httpGet:
path: /health path: /health
port: api port: api
initialDelaySeconds: 15 initialDelaySeconds: 20
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 3 timeoutSeconds: 5
failureThreshold: 3 failureThreshold: 3
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /ready path: /ready
port: api port: api
initialDelaySeconds: 15 initialDelaySeconds: 20
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 3 timeoutSeconds: 5
failureThreshold: 2 failureThreshold: 2
resources: resources:
limits: limits: