From 91565f683b7a015cbf79b0e3c1989d1580d06e99 Mon Sep 17 00:00:00 2001 From: Chris Mark Date: Thu, 9 Apr 2020 15:58:11 +0300 Subject: [PATCH] Add privileged option so as mb to access data dir in Openshift (#17606) --- 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 e3342d740def..9f9d4ac9c47a 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -151,6 +151,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 f7d6c76c5848..f5550f6ecbe5 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 378ac2df1a1c..96f841c45198 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