Skip to content

Commit 94c0582

Browse files
CharlieR-o-o-tcw-Guo
authored andcommitted
Make fluentbit livenessProbe more flexible
Signed-off-by: Siarhei Rasiukevich <[email protected]>
1 parent 8a954f8 commit 94c0582

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

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

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,10 @@ spec:
7272
volumes:
7373
{{- toYaml . | nindent 4 }}
7474
{{- end }}
75-
{{- with .Values.fluentbit.livenessProbe }}
76-
{{- if .enabled }}
75+
{{- if .Values.fluentbit.livenessProbe.enabled }}
7776
livenessProbe:
78-
httpGet:
79-
port: 2020
80-
path: /
81-
initialDelaySeconds: {{ .initialDelaySeconds }}
82-
periodSeconds: {{ .periodSeconds }}
83-
timeoutSeconds: {{ .timeoutSeconds }}
84-
successThreshold: {{ .successThreshold }}
85-
failureThreshold: {{ .failureThreshold }}
77+
{{- with omit .Values.fluentbit.livenessProbe "enabled" }}
78+
{{- toYaml . | nindent 4 }}
8679
{{- end }}
8780
{{- end }}
8881
{{- with .Values.fluentbit.additionalVolumesMounts }}

charts/fluent-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ fluentbit:
9595
metricRelabelings: []
9696
livenessProbe:
9797
enabled: true
98+
httpGet:
99+
port: 2020
100+
path: /
98101
initialDelaySeconds: 10
99102
periodSeconds: 10
100103
timeoutSeconds: 15

0 commit comments

Comments
 (0)