Skip to content

Commit

Permalink
feat(startupProbe): Tune start-up process
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Jun 25, 2024
1 parent dfd0e3b commit b93e6a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions helm/defectdojo/templates/django-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion helm/defectdojo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b93e6a4

Please sign in to comment.