Run Grafana as non root user in openshift

Hello, Team.

In openshift, I need to deploy Grafana with a non-root user. Is there a non-root user id that I can specify in the security context for this?

“grafana/grafana:9.4.7” is an image.

Thanks & Regards,
Bhuvaneshwari D

Hi @bhuvaneshwari

Found a similar post with a proposed suggestion. Give it a try and hopefully, it works for your case…

Hi @usman.ahmad
We’ve seen the previous post about running Grafana as a non-root user in Kubernetes. However, we are using Openshift, and despite updating the runAsUser to 472, the deployments continue to run as root user.Please let us know if you have any alternate suggestions for this.

Thanks & Regards,
Bhuvaneshwari D