Grafana on Kubernetes - Cloud database connection

Hello all, I wanted to ask if anyone has created a Grafana deployment on Kubernetes using a cloud database like an Azure flexible server? How to establish the connection to the database? Any information about this would be much appreciated. Thanks!