Mounting Secrets as Files
Learn how we can mount secrets as files.
We'll cover the following...
We'll cover the following...
Just like we did with ConfigMaps, we can also mount Secrets as files in our containers:
Run the code below, and see if it works.
apiVersion: v1 kind: Secret metadata: name: hellok8s-secret data: SECRET_MESSAGE: "SXQgd29ya3Mgd2l0aCBhIFNlY3JldAo="
Testing our application
...