Last active
June 28, 2021 08:55
-
-
Save sireza/2d7b58e6c584dfe9211bb5e08b26a45a to your computer and use it in GitHub Desktop.
Using Secrets in Pod
This file contains hidden or 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: my-application-pod | |
spec: | |
containers: | |
- name: my-application | |
image: busybox | |
command: | |
- "/bin/sleep" | |
- "10000" | |
env: | |
- name: OAuth__Username | |
valueFrom: | |
secretKeyRef: | |
name: env-secrets | |
key: username | |
- name: OAuth__Password | |
valueFrom: | |
secretKeyRef: | |
name: env-secrets | |
key: password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment