<p>I am trying to setup google kubernetes engine and its pods has to communicate with cloud sql database. The cloud sql database credentials are stored on google cloud secret manger. How pods will fetch credentials from secret manager and if secret manager credentials are updated than how pod will get update the new secret?</p>
<p>How to setup above requirement? Can you someone please help on the same?</p>
<p>Thanks,
Anand</p>

<p>You can find information regarding that particular solution in this <a href="https://cloud.google.com/secret-manager/docs/using-other-products#google-kubernetes-engine" rel="nofollow noreferrer">doc</a>.<br />
There are also good examples on medium <a href="https://medium.com/google-cloud/consuming-google-secret-manager-secrets-in-gke-911523207a79" rel="nofollow noreferrer">here</a> and <a href="https://alessio-trivisonno.medium.com/injecting-secrets-in-gke-with-secret-manager-fd961bbeea73" rel="nofollow noreferrer">here</a>.</p>
<p>To answer your question regarding updating the secrets:<br />
Usually secrets are pulled when the container is being created, but if you expect the credentials to change often (or for the pods to stick around for very long) you can adjust the code to update the secrets on every execution.</p>
