Best Practice to Deploy Grafana on Kubernetes with Custom DB


We are trying to deploy Grafana as pods in Kubernetes. Our Grafana database is in AWS as RDS. We are looking for best way to deploy Grafana with defining the custom DB in grafana.ini file. All the documents that I’ve found about deploying Grafana to Kubernetes uses a database with persistent volumes. Is there any way that I can define the DB name or whole grafana.ini file as environment variable? (in Kubernetes yaml file or helm chart)

Hi @opulasli,

Thanks for opening this post.

Well, we only have this documentation available which explains how to install Grafana on a Kubernetes cluster:

After some further digging, found a similar question to yours and found this:

I hope this helps as it brings you closer to the solution you are looking for :slight_smile: