Fluentd-kubernetes-daemonset: where do I set FLUENT_UID to 0?

Created on 7 Sep 2018  路  4Comments  路  Source: fluent/fluentd-kubernetes-daemonset

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!

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?

All 4 comments

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abh picture abh  路  11Comments

pranavmarla picture pranavmarla  路  7Comments

ericln picture ericln  路  3Comments

gtrafimenkov picture gtrafimenkov  路  5Comments

AndrewBoklashko picture AndrewBoklashko  路  10Comments