-
Notifications
You must be signed in to change notification settings - Fork 459
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]Use the 'tpl' function for .Values.podAnnotations
#437
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: sangheee <afk.sh94@gmail.com>
@sangheee could you explain why neither the hot reload or the config checksum annotation are working for you? |
Actually, We create and use a new chart that has a dependency on a # my `Chart.yaml`
name: my-chart
dependencies:
- name: fluent-bit
version: 0.38.0
repository: https://fluent.github.io/helm-charts .my-chart
├── conf
│ ├── filter.conf
│ ├── input.conf
│ └── output.conf
├── templates
│ ├── config.yaml
│ ├── another1.yaml
│ └── another2.yaml
├── Chart.yaml
└── values.yaml We create a config and set |
@sangheee would hot reload not be a better fit here? |
hot reload is effective when the fluent-bit config is entered as value. {{- if not .Values.hotReload.enabled }}
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} What you mean is to modify the code related to hot reload? |
@sangheee hot reload works with the Config maps attached to FlunetBit, it doesn't matter how they were generated. |
@stevehipwell Sorry. I was busy with work so I was late in checking. |
@sangheee hot reload doesn't cause the pod to restart at all, it reloads the Fluent Bit configuration while Fluent Bit is still running. |
@sangheee My usage case is the same as yours, I also encountered your problem, and tried the same method your PR try to solved, but in the end I choose the |
Because of the memory leak issue due to multiline, we can not update the version of fluent-bit that supports hot-reload. |
@sangheee could you link to the FB issue regarding the multiline memory leak? |
@stevehipwell fluent/fluent-bit#4940 This is the issue. Could you give me some advice? |
@sangheee the PR linked in that issue has been merged, so have you checked if your issue is still present in the latest FB release? |
I want to deploy a custom config with additional template variables, like the
fluent-bit.my-config
example below.When this config changes, I want to do a deploy rollout that restarts pods.
Currently, podAnnotations is having difficulty here because they directly use the
.Values.podAnnotations
variable object.So, I would like to use the
tpl
function to evaluate.Values.podAnnotations
variable as templates.Even with this change, backward compatibility is provided.