Skip to content

Commit 6187276

Browse files
authored
Merge pull request #1460 from CharlieR-o-o-t/master
feat: Add livenessProbe to FluentBit template (fluentbit-fluentBit.yaml)
2 parents bda6ebd + a3bd147 commit 6187276

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

charts/fluent-operator/templates/fluentbit-fluentBit.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ spec:
7373
volumes:
7474
{{ toYaml .Values.fluentbit.additionalVolumes | indent 4 }}
7575
{{- end }}
76+
{{- with .Values.fluentbit.livenessProbe }}
77+
{{- if .enabled }}
78+
livenessProbe:
79+
httpGet:
80+
port: 2020
81+
path: /
82+
initialDelaySeconds: {{ .initialDelaySeconds }}
83+
periodSeconds: {{ .periodSeconds }}
84+
timeoutSeconds: {{ .timeoutSeconds }}
85+
successThreshold: {{ .successThreshold }}
86+
failureThreshold: {{ .failureThreshold }}
87+
{{- end }}
88+
{{- end }}
7689
{{- if .Values.fluentbit.additionalVolumesMounts }}
7790
volumesMounts:
7891
{{ toYaml .Values.fluentbit.additionalVolumesMounts | indent 4 }}

charts/fluent-operator/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,14 @@ fluentbit:
8686
tlsConfig: {}
8787
relabelings: []
8888
metricRelabelings: []
89+
livenessProbe:
90+
enabled: true
91+
initialDelaySeconds: 10
92+
periodSeconds: 10
93+
timeoutSeconds: 15
94+
successThreshold: 1
95+
failureThreshold: 8
96+
8997
image:
9098
repository: "ghcr.io/fluent/fluent-operator/fluent-bit"
9199
tag: "3.1.8"

0 commit comments

Comments
 (0)