diff --git a/charts/gitops-status-server/templates/deployment.yaml b/charts/gitops-status-server/templates/deployment.yaml index 9e38d55..1ba364d 100644 --- a/charts/gitops-status-server/templates/deployment.yaml +++ b/charts/gitops-status-server/templates/deployment.yaml @@ -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: