hi y'all, can anyone elucidate on the instructions: set FLUENT_UID environment variable to 0 in your kubernetes configuration, as mentioned in the project Readme?
My first inclination is to define this env var in, for example, the fluentd-daemonset-elasticsearch.yaml file along with the other containers.env declarations but the fact that it's not already there suggests this is supposed to be defined somewhere else? How/where should this be defined?
Any help appreciated!
Yes, simply put it in your daemonset with other environment variables. That works for me:
containers:
- name: fluentd
image: fluent/fluentd-kubernetes-daemonset:elasticsearch
env:
- name: FLUENT_ELASTICSEARCH_HOST
value: "elasticsearch.mydomain.com"
- name: FLUENT_UID
value: "0"
Thank you!
Question for maintainers:
If this env var is needed for the daemonset to function properly, and that's where it's supposed to be, why isn't it in the yaml file(s) in the repository?
@sdanieru I don't think this should be closed until we have this be the default or at least part of the config and commented out ; this is definitely a bug
Hmm... v1 images run fluentd as root, so this problem should not happen.
Does anyone still see permission error with latest images?
Most helpful comment
Thank you!
Question for maintainers:
If this env var is needed for the daemonset to function properly, and that's where it's supposed to be, why isn't it in the yaml file(s) in the repository?