Created
March 21, 2023 14:35
-
-
Save anjanashankar9/1166fd099117f953ef7f157752295d12 to your computer and use it in GitHub Desktop.
Using a secret as an environment variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: example-secret | |
spec: | |
containers: | |
- name: example-container | |
image: nginx | |
env: | |
- name: SECRET | |
valueFrom: | |
secretKeyRef: | |
name: test-secret | |
key: test-secret-key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment