<p>In kubernetes POD I have an option to mount a secret or a configmap as a volume mounted to the POD.  It would be difficult to access these files as environment variables. So why should I be doing it instead of using them as environment variables?</p>

Aditya Bhuyan
<p>This depends on how the application expect to load the secret.</p>
<p>E.g. if the application expect to load an <a href="https://www.tutorialsteacher.com/https/ssl-certificate-format" rel="nofollow noreferrer">SSL certificate file</a>, it is possible to have the certificated as a file in a Secret and mount the Secret so that the application can read it as file.</p>
