title: MongoDB on Kubernetes Service Accounts
body: <p>Ok, second try and I will try to simplify the question. </p>
  
  <p>I have single MongoDB cluster running on Kubernetes (using helm) and I want to configure it in a way that each microservice (service+pod) connecting to their own mongodb database on their has their own credentials. </p>
  
  <p><strong>One way is to create mongodb database/users /password per microservice.</strong></p>
  
  <p>Alternatively, can I use Kubernetes ServiceAccount and RBAC to abstract that from the database, so the credentials are automatically passed from the overlaying microservice to the underlying database. </p>
  
  <p>thanks, </p>