Skip to content

Commit

Permalink
chart: add support for startupProbe
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn committed Mar 27, 2024
1 parent 56c25f0 commit 04ed898
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion chart/hyrax/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: hyrax
description: An open-source, Samvera-powered digital repository system
type: application
version: 3.6.0
version: 3.7.0
appVersion: 5.0.0
dependencies:
- name: fcrepo
Expand Down
12 changes: 12 additions & 0 deletions chart/hyrax/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,18 @@ spec:
- name: http
containerPort: 3000
protocol: TCP
{{- if .Values.startupProbe.enabled }}
startupProbe:
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds | default 5 }}
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds | default 5 }}
failureThreshold: {{ .Values.startupProbe.failureThreshold | default 3 }}
periodSeconds: {{ .Values.startupProbe.periodSeconds | default 10}}
successThreshold: {{ .Values.startupProbe.successThreshold | default 1 }}
httpGet:
scheme: "HTTP"
path: {{ .Values.startupProbe.path | default "/" }}
port: 3000
{{- end }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds | default 5 }}
Expand Down
10 changes: 10 additions & 0 deletions chart/hyrax/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,16 @@ readinessProbe:
# failureThreshold: 6
# successThreshold: 1

# consider enabling if you are experiencing slow startup times
startupProbe:
enabled: false
# path: "/healthz"
# initialDelaySeconds: 30
# periodSeconds: 30
# timeoutSeconds: 5
# failureThreshold: 3
# successThreshold: 1

resources: {}

worker:
Expand Down

0 comments on commit 04ed898

Please sign in to comment.