-
Notifications
You must be signed in to change notification settings - Fork 333
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
Fluentd not able to run as non root #1908
Comments
Hey @Tilusch, Did you check whether your config works, when running as root? |
Hi @csatib02
|
The fluentd image is being relocated into the repo. Once we finished that we get back to this. |
For me the following configuration is working. However the sidecar is causing problems as mentioned:
|
Would it be a viable solution for you if we would allow adding custom |
@csatib02 doesnt it make more sense to edit the buffer image to allow running as non root for complexity reasons, but anyway this would be a possible workaround for me! |
@Tilusch where did you have these settings ( |
We are in the process of pulling in dependency images under this repo, we are going to handle the node-exporter next, this will be fixed as part of that. As for the user and group id's they are set within our custom fluentd image: https://github.com/kube-logging/logging-operator/blob/master/images/fluentd/Dockerfile |
@sebastiangaiser i made them up myself since its a good practice to use non default users when possible. |
@Tilusch yes it should be a good idea to use 101 and 100 since the docker image chown's the files for that user and group explicitly. |
Describe the bug:
When running flluentd asnonroot and a diffrent user the statefulset is not coming up. Is there no way to run fluentd as non root when using the logging operator ressources?
Expected behaviour:
Fluentd is able to run as non root and a specified user.
Steps to reproduce the bug:
Create the following logging ressource and access the fluentd pod logs the output should be similiar:
Additional context:
Environment details:
/kind bug
The text was updated successfully, but these errors were encountered: