Skip to content

Commit

Permalink
Add missing startupProbe for NGINX
Browse files Browse the repository at this point in the history
Signed-off-by: Jeroen Rijken <[email protected]>
  • Loading branch information
Jeroen0494 committed Mar 4, 2023
1 parent 2aa6334 commit 6431084
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions charts/nextcloud/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,20 @@ spec:
successThreshold: {{ .Values.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.readinessProbe.failureThreshold }}
{{- end }}
{{- if and .Values.startupProbe.enabled }}
startupProbe:
httpGet:
path: /status.php
port: http
httpHeaders:
- name: Host
value: {{ .Values.nextcloud.host | quote }}
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
successThreshold: {{ .Values.startupProbe.successThreshold }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
{{- end }}

resources:
{{ toYaml .Values.nginx.resources | indent 10 }}
Expand Down

0 comments on commit 6431084

Please sign in to comment.