Skip to content

Commit

Permalink
Adds a startupProbe and additional parameters to values.yaml to allow…
Browse files Browse the repository at this point in the history
… customization of startupProbe, livenessProbe, readinessProbe. (#106)

Signed-off-by: Julio Morimoto <[email protected]>
  • Loading branch information
juliohm1978 authored Feb 24, 2022
1 parent 7ca56e4 commit 986d09f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/graylog/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: graylog
home: https://www.graylog.org
version: 2.0.0
version: 2.1.0
appVersion: 4.2.3
description: Graylog is the centralized log management solution built to open standards for capturing, storing, and enabling real-time analysis of terabytes of machine data.
keywords:
Expand Down
31 changes: 21 additions & 10 deletions charts/graylog/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,30 +169,41 @@ spec:
{{- end }}
resources:
{{ toYaml .Values.graylog.resources | indent 12 }}
startupProbe:
httpGet:
path: /api/system/lbstatus
port: 9000
{{- if .Values.graylog.tls.enabled }}
scheme: HTTPS
{{- end }}
periodSeconds: {{ .Values.graylog.startupProbe.periodSeconds }}
failureThreshold: {{ .Values.graylog.startupProbe.failureThreshold }}
successThreshold: {{ .Values.graylog.startupProbe.successThreshold }}
timeoutSeconds: {{ .Values.graylog.startupProbe.timeoutSeconds }}
livenessProbe:
httpGet:
path: /api/system/lbstatus
port: 9000
{{- if .Values.graylog.tls.enabled }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 120
periodSeconds: 30
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.graylog.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.graylog.livenessProbe.periodSeconds }}
failureThreshold: {{ .Values.graylog.livenessProbe.failureThreshold }}
successThreshold: {{ .Values.graylog.livenessProbe.successThreshold }}
timeoutSeconds: {{ .Values.graylog.livenessProbe.timeoutSeconds }}
readinessProbe:
httpGet:
path: /api/system/lbstatus
port: 9000
{{- if .Values.graylog.tls.enabled }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 60
periodSeconds: 10
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5
initialDelaySeconds: {{ .Values.graylog.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.graylog.readinessProbe.periodSeconds }}
failureThreshold: {{ .Values.graylog.readinessProbe.failureThreshold }}
successThreshold: {{ .Values.graylog.readinessProbe.successThreshold }}
timeoutSeconds: {{ .Values.graylog.readinessProbe.timeoutSeconds }}
volumeMounts:
- name: journal
mountPath: /usr/share/graylog/data/journal
Expand Down
20 changes: 20 additions & 0 deletions charts/graylog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,26 @@ graylog:
##
type: ClusterIP

startupProbe:
periodSeconds: 60
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5

livenessProbe:
initialDelaySeconds: 0
periodSeconds: 30
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5

readinessProbe:
initialDelaySeconds: 0
periodSeconds: 10
failureThreshold: 3
successThreshold: 1
timeoutSeconds: 5

## Additional input ports for receiving logs from servers
## Note: Name must be in IANA_SVC_NAME (at most 15 characters, matching regex [a-z0-9]([a-z0-9-]*[a-z0-9])* and it must contains at least one letter [a-z], hyphens cannot be adjacent to other hyphens)
## Note: Array must be sorted by port order
Expand Down

0 comments on commit 986d09f

Please sign in to comment.