diff --git a/helm/defectdojo/templates/django-deployment.yaml b/helm/defectdojo/templates/django-deployment.yaml index 398aa767cb3..72f6de46b49 100644 --- a/helm/defectdojo/templates/django-deployment.yaml +++ b/helm/defectdojo/templates/django-deployment.yaml @@ -221,6 +221,16 @@ spec: successThreshold: {{ .Values.django.uwsgi.livenessProbe.successThreshold }} timeoutSeconds: {{ .Values.django.uwsgi.livenessProbe.timeoutSeconds }} {{- end }} + {{- if .Values.django.uwsgi.startupProbe.enabled }} + startupProbe: + exec: + command: + - /app/manage.py + - migrate + - --check + initialDelaySeconds: 5 + periodSeconds: 5 + {{- end }} resources: {{- toYaml .Values.django.uwsgi.resources | nindent 10 }} - name: nginx diff --git a/helm/defectdojo/values.yaml b/helm/defectdojo/values.yaml index 1faba1520b3..c2986c61373 100644 --- a/helm/defectdojo/values.yaml +++ b/helm/defectdojo/values.yaml @@ -220,10 +220,12 @@ django: # Enable liveness checks on uwsgi container. Those values are use on nginx readiness checks as well. enabled: true failureThreshold: 6 - initialDelaySeconds: 120 + initialDelaySeconds: 10 periodSeconds: 10 successThreshold: 1 timeoutSeconds: 5 + startupProbe: + enabled: true resources: requests: cpu: 100m