From 06eb48bcf3f1b7b287c62ed039a9e69a7eccc182 Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Thu, 9 Apr 2020 17:58:28 +0300 Subject: [PATCH] Add privileged option so as mb to access data dir in Openshift (#17606) (#17634) (cherry picked from commit eb4769c3602c12bfefd915c4f0df17409ea76520) --- CHANGELOG.next.asciidoc | 1 + deploy/kubernetes/metricbeat-kubernetes.yaml | 2 ++ deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml | 2 ++ 3 files changed, 5 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 21fc8b481ac..7ce8ce954d6 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -194,6 +194,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix vsphere VM dashboard host aggregation visualizations. {pull}17555[17555] - Fix azure storage dashboards. {pull}17590[17590] - Metricbeat no longer needs to be started strictly after Logstash for `logstash-xpack` module to report correct data. {issue}17261[17261] {pull}17497[17497] +- Add privileged option so as mb to access data dir in Openshift. {pull}17606[17606] - Fix "ID" event generator of Google Cloud module {issue}17160[17160] {pull}17608[17608] *Packetbeat* diff --git a/deploy/kubernetes/metricbeat-kubernetes.yaml b/deploy/kubernetes/metricbeat-kubernetes.yaml index ad3fe81076e..5bde4ef86ae 100644 --- a/deploy/kubernetes/metricbeat-kubernetes.yaml +++ b/deploy/kubernetes/metricbeat-kubernetes.yaml @@ -138,6 +138,8 @@ spec: fieldPath: spec.nodeName securityContext: runAsUser: 0 + # If using Red Hat OpenShift uncomment this: + #privileged: true resources: limits: memory: 200Mi diff --git a/deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml b/deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml index 378ac2df1a1..96f841c4519 100644 --- a/deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml +++ b/deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml @@ -46,6 +46,8 @@ spec: fieldPath: spec.nodeName securityContext: runAsUser: 0 + # If using Red Hat OpenShift uncomment this: + #privileged: true resources: limits: memory: 200Mi