Start fluentd as non-root user

691 views
Skip to first unread message

Vivianmeme

unread,
Aug 10, 2021, 2:28:10 AM8/10/21
to Fluentd Google Group
Hi,

I'm trying to bring up fluentd container as a non-root user(e.g. fluentd) within k8s cluster.
bash-4.1$ id
uid=999(fluent) gid=999(fluentd) groups=999(fluentd)

However met the following read-only filey system error:

Screen Shot 2021-08-09 at 11.12.06 PM.png

If adding the user and group options, the Operation not permitted error being thrown:Screen Shot 2021-08-09 at 11.12.27 PM.png

Do I have to build a new image which gives the user "fluent" enough permission?

Any help is appreciated:)


Vivian

Vivianmeme

unread,
Aug 12, 2021, 9:57:22 PM8/12/21
to Fluentd Google Group
Ok, I fixed it. 
The root cause is that /tmp is read-only for non-root user inside fluentd container. And this issue can be resolved by mounting a volume (empty dir type) to fluentd.

Vivian

Reply all
Reply to author
Forward
0 new messages