From 49037ad251614c6b856bfdfcef72d427f9cea470 Mon Sep 17 00:00:00 2001 From: chrismark Date: Wed, 8 Apr 2020 12:09:19 +0300 Subject: [PATCH 1/2] Add privileged option so as mb to access data dir in openshift Signed-off-by: chrismark --- deploy/kubernetes/metricbeat-kubernetes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/kubernetes/metricbeat-kubernetes.yaml b/deploy/kubernetes/metricbeat-kubernetes.yaml index f7d6c76c584..f5550f6ecbe 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 From 1d04deb07e2bd833f915fb716a2caf919be19a06 Mon Sep 17 00:00:00 2001 From: chrismark Date: Wed, 8 Apr 2020 12:17:09 +0300 Subject: [PATCH 2/2] changelog Signed-off-by: chrismark --- CHANGELOG.next.asciidoc | 1 + deploy/kubernetes/metricbeat/metricbeat-daemonset.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index a2a6975cc56..cc3664efbcb 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -150,6 +150,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d - Fix Unix socket path in memcached. {pull}17512[17512] - Fix vsphere VM dashboard host aggregation visualizations. {pull}17555[17555] - 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] *Packetbeat* 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