I have mounted one volume which contains DB password inside pod. If I do:
kubectl exec -it my-app -- cat /mnt/secrets-store/dbpassword
It prints the db password value.
In my spring boot app, db password property is defined as spring.datasource.password
in application.properties
file. What configuration is required so that value for property spring.datasource.password
is read from mounted secret.