Run heartbeat in Openshift

I'd like to run heartbeat in Openshift.
I am trying to deploy it using this yaml file https://raw.githubusercontent.com/elastic/beats/8.15/deploy/kubernetes/heartbeat-kubernetes.yaml

the issue is that in OCP we do not have root permissions and we cannot set runAsUser: 1000 and I get the following error:

/usr/local/bin/docker-entrypoint: line 8: /usr/share/heartbeat/heartbeat: Operation not permitted

How can I solve it?
Any reason why it requires root user?

I solved it creating my own docker image:

FROM beats/heartbeat:8.15.0
USER root
RUN chown -R heartbeat:root /usr/share/heartbeat \
 && chmod -R 0775 /usr/share/heartbeat
USER heartbeat