Start fluentd as non-root user

瀏覽次數:459 次
跳到第一則未讀訊息

Vivianmeme

未讀,
2021年8月10日 凌晨2:28:102021/8/10
收件者: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

未讀,
2021年8月12日 晚上9:57:222021/8/12
收件者: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

回覆所有人
回覆作者
轉寄
0 則新訊息