Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configurable probes with defaults #42

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,20 +142,18 @@ spec:
- name: cluster
containerPort: {{ .Values.service.clusterPort }}
protocol: TCP
{{- with .Values.livenessProbe }}
livenessProbe:
httpGet:
path: /c/portal/robots
port: http
failureThreshold: 20
initialDelaySeconds: 30
periodSeconds: 10
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.readinessProbe }}
readinessProbe:
httpGet:
path: /c/portal/robots
port: http
failureThreshold: 20
initialDelaySeconds: 30
periodSeconds: 10
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.startupProbe }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
22 changes: 22 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,28 @@ objectstorage:
# hosts:
# - chart-example.local

livenessProbe:
httpGet:
path: /c/portal/robots
port: http
failureThreshold: 2
initialDelaySeconds: 10
periodSeconds: 5
readinessProbe:
httpGet:
path: /c/portal/robots
port: http
failureThreshold: 2
initialDelaySeconds: 10
periodSeconds: 5
startupProbe:
httpGet:
path: /c/portal/robots
port: http
failureThreshold: 30
initialDelaySeconds: 20
periodSeconds: 5

################################################################################
#### Less common fine tuning options ###########################################
################################################################################
Expand Down