# Meetricbeat 7.6.2 on Openshift 4.3

**URL:** <https://discuss.elastic.co/t/meetricbeat-7-6-2-on-openshift-4-3/230513>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 30, 2020, 9:49am UTC](https://discuss.elastic.co/t/meetricbeat-7-6-2-on-openshift-4-3/230513 "2020-04-30T09:49:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![doyoungim999](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@doyoungim999](https://discuss.elastic.co/u/doyoungim999)\
**Post date:** [April 30, 2020, 9:49am UTC](https://discuss.elastic.co/t/meetricbeat-7-6-2-on-openshift-4-3/230513/1 "2020-04-30T09:49:16Z")

</div>

Hi,  
I deployed successfully metricbeat7.6.2 on openshift4.3 without problem like

```auto
; $oc new-app -e output.elasticsearch.hosts="http://elasticsearch-emsproject.apps-crc.testing/" docker.elastic.co/beats/metricbeat:7.6.2
  $oc create serviceaccount useroot
  $oc adm policy add-scc-to-user anyuid -z useroot 
  $oc edit dc/metricbeat (# add serviceAccountName: useroot) 
----  
As a second step, I am trying to configure storage for metricbea.yml as configmap on openshift. It is a problem with security. 
$oc create configmap metricbeat-config --from-file=/home/user2/metricbeat/metricbeat.yml 
$oc set volume dc/metricbeat --add --mount-path=/usr/share/metricbeat --name=metricbeat-volume-1 -t configmap --configmap-name=metricbeat-config

```

metricbeat.yml is not uploaded to the container because of userid:group id ( root: metricbeat) for file authority.

Is there any Dockerfile I can reconfigure user/group for the files ?  
or anyone experience same issue ?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2020, 9:49am UTC](https://discuss.elastic.co/t/meetricbeat-7-6-2-on-openshift-4-3/230513/2 "2020-05-28T09:49:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
