Database creds rotation for app deployed in Kubernetes

Hi all, I am looking at below tutorial and I want to apply it my application that run in kubernetes.

But, the question that pop up in my brain is what will happen with the pods when the credential is expired, it mean the pods will failed to connect to DB.
Is there an elegant way to overcome this issue?

Thanks in advance