Skip to content

Instantly share code, notes, and snippets.

@sireza
Last active June 28, 2021 08:55
Show Gist options
  • Save sireza/2d7b58e6c584dfe9211bb5e08b26a45a to your computer and use it in GitHub Desktop.
Save sireza/2d7b58e6c584dfe9211bb5e08b26a45a to your computer and use it in GitHub Desktop.
Using Secrets in Pod
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