Skip to content

Instantly share code, notes, and snippets.

@vlj91
Created April 21, 2018 01:58
Show Gist options
  • Save vlj91/0cd596e6bec68d4acc45cbcdf6c3cefd to your computer and use it in GitHub Desktop.
Save vlj91/0cd596e6bec68d4acc45cbcdf6c3cefd to your computer and use it in GitHub Desktop.
kube-pod-secret.yaml
---
apiVersion: v1
kind: Pod
metadata:
name: redis
spec:
containers:
- name: redis
image: redis
env:
- name: REDIS_PASSWORD
valueFrom:
secretKeyRef:
name: REDIS_SECRETS
key: REDIS_PASSWORD
restartPolicy: Always
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment