I want use kubernetes secret inside my spring boot application.
I read about spring cloud kubernetes at this link:
From what I understand the best practice is to read the secret as file from mounted volume in pods instead of using API.
So if I want to apply best practices, is it not recommended to use SecretsPropertySource?
I created a service and a secret according to kubernetes documentation.
But how Spring Cloud can help me to read secret files? I need DiscoveryClient to get information about file path?
This example
injects the secrets inside env variables. It's a good choise?