Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fluent-bit] Add support for additional watch paths in hot reload #578

Merged
merged 13 commits into from
Jan 16, 2025
2 changes: 1 addition & 1 deletion charts/fluent-bit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ maintainers:
annotations:
artifacthub.io/changes: |
- kind: changed
description: "Updated Fluent Bit OCI image to v3.2.4."
description: "Adding additional watch paths for hot reload"
danielkalotai marked this conversation as resolved.
Show resolved Hide resolved
7 changes: 7 additions & 0 deletions charts/fluent-bit/templates/_pod.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,18 @@ containers:
- {{ printf "-webhook-url=http://localhost:%s/api/v2/reload" (toString .Values.metricsPort) }}
- -volume-dir=/watch/config
- -volume-dir=/watch/scripts
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
danielkalotai marked this conversation as resolved.
Show resolved Hide resolved
- -volume-dir=/watch/extra-{{ $i }}
danielkalotai marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
volumeMounts:
- name: config
mountPath: /watch/config
- name: luascripts
mountPath: /watch/scripts
{{- range $i, $v := .Values.hotReload.extraWatchVolumes }}
- name: {{ $v }}
mountPath: /watch/extra-{{ $i }}
danielkalotai marked this conversation as resolved.
Show resolved Hide resolved
{{- end }}
{{- with .Values.hotReload.resources }}
resources:
{{- toYaml . | nindent 12 }}
Expand Down
1 change: 1 addition & 0 deletions charts/fluent-bit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ logLevel: info

hotReload:
enabled: false
extraWatchVolumes: []
danielkalotai marked this conversation as resolved.
Show resolved Hide resolved
image:
repository: ghcr.io/jimmidyson/configmap-reload
tag: v0.14.0
Expand Down