Skip to content

Commit

Permalink
fluent-bit: added ability to set extra config reload dirs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrii Chubatiuk <[email protected]>
  • Loading branch information
AndrewChubatiuk committed Oct 23, 2024
1 parent 149d575 commit b0ed773
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,17 @@ containers:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
- -volume-dir=/watch/config
- -volume-dir=/watch/scripts
{{- range .Values.hotReload.volumeDirs }}
- -volume-dir={{ . }}
{{- end }}
volumeMounts:
- name: config
mountPath: /watch/config
- name: luascripts
mountPath: /watch/scripts
{{- with .Values.hotReload.extraVolumeMounts }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.hotReload.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,3 +510,5 @@ hotReload:
digest:
pullPolicy: IfNotPresent
resources: {}
volumeDirs: []
extraVolumeMounts: []

0 comments on commit b0ed773

Please sign in to comment.