Grafana set password in kubernetes

I’m looking to deploy grafana on kubernetes. Is there a way to get the username/password from the kubernetes deploment/manifest file? I’ve been able to deploy, however when i try to change the password once it’s deployed, I get errors like unauthorized, and Invalid or expired reset password code. Just looking for a better way to deploy with defined credentials. Also, In the future configure a backend database for the pod.