Skip to content

Commit 1241b86

Browse files
committed
feat(charts): Add ability for custom positionDB for FluentBit
1 parent 07df44d commit 1241b86

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ spec:
2222
{{ toYaml .Values.fluentbit.imagePullSecrets | indent 4 }}
2323
{{- end }}
2424
positionDB:
25-
hostPath:
26-
path: /var/lib/fluent-bit/
25+
{{- toYaml .Values.fluentbit.positionDB | nindent 4 }}
2726
resources:
2827
{{- toYaml .Values.fluentbit.resources | nindent 4 }}
2928
fluentBitConfigName: fluent-bit-config

charts/fluent-operator/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ fluentbit:
120120
# Specify additional custom annotations for fluentbit-serviceaccount
121121
serviceAccountAnnotations: {}
122122

123+
# Specify storage for position db. You will use it if tail input is enabled.
124+
## Ref: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.31/#volumesource-v1-core
125+
positionDB:
126+
hostPath:
127+
path: /var/lib/fluent-bit/
128+
123129
## Reference to one or more secrets to be used when pulling images
124130
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
125131
##

0 commit comments

Comments
 (0)