Skip to content
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

Cherry-pick #17606 to 7.7: Add privileged option so as mb to access data dir in Openshift #17634

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Apr 9, 2020

Cherry-pick of PR #17606 to 7.7 branch. Original message:

What does this PR do?

This PR adds privileged: true in securityContext of Metricbeat Daemonset spec file so as to enable access to data 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:

oc -n kube-system logs -f metricbeat-zsfwt
2020-04-06T10:58:56.615Z        INFO    instance/beat.go:622    Home path: [/usr/share/metricbeat] Config path: [/usr/share/metricbeat] Data path: [/usr/share/metricbeat/data] Logs path: [/usr/share/metricbeat/logs]
2020-04-06T10:58:56.615Z        INFO    instance/beat.go:372    metricbeat stopped.
2020-04-06T10:58:56.616Z        ERROR   instance/beat.go:933    Exiting: Failed to create Beat meta file: open /usr/share/metricbeat/data/meta.json.new: permission denied

Related to #17516.

cc: @exekias @jsoriano @blakerouse

@ChrsMark ChrsMark requested review from a team April 9, 2020 13:00
@ChrsMark ChrsMark self-assigned this Apr 9, 2020
@ChrsMark ChrsMark added the Team:Platforms Label for the Integrations - Platforms team label Apr 9, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@ChrsMark ChrsMark merged commit 06eb48b into elastic:7.7 Apr 9, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants