-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add privileged option so as mb to access data dir in Openshift #17606
Conversation
Signed-off-by: chrismark <[email protected]>
Pinging @elastic/integrations-platforms (Team:Platforms) |
Signed-off-by: chrismark <[email protected]>
Thanks for opening this! I wonder if we can better set permissions on the data folder to avoid needing this? It would be awesome if we could avoid privileged mode. Not sure myself if it's actually possible, but worth exploring |
We are solving it the same way in filebeat (here), so I think we could go on as this by now, but I agree that it would worth exploring alternatives to avoid running on privileged mode. Same change will be probably needed in Auditbeat manifest too. |
From https://kubernetes.io/docs/concepts/storage/volumes/#hostpath: Given this, I don't see an "automatic" way to do this other than giving permissions to the directory on each one of the hosts. However Openshift suggests to not use In general, I don't see any value in having this |
We need I'm ok with moving this forward as it is |
Ok for Filebeat it is mandatory, we cannot remove it. But is it important for Metricbeat too since it only keeps the UUID? |
The UUID is used by stack monitoring to identify metricbeats, so I would say this is something we want to keep |
Merging this, and will open a separate issue for Auditbeat since its not only
|
…ic#17606) (elastic#17634) (cherry picked from commit 91565f6)
What does this PR do?
This PR adds
privileged: true
insecurityContext
of Metricbeat Daemonset spec file so as to enable access todata
volume added in #17429.Tested with
minishift v1.34.2+83ebaab
.Why is it important?
Metricbeat is not able to start in Openshift without this option:
Related to #17516.
cc: @exekias @jsoriano @blakerouse