We can write a secret as an environment variable in the container.
For example:

We have Deployment as mongodb.yml

env:
 - name: SECRET_VALUE_ENV_VAR 
   valueFrom:
         secretKeyRef: 
                name: myusername
                key: password

The secret will be injected in the container using Environment Variable.

Support On Demand!

Cloud