kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch04/sleep/sleep-with-secret.yaml

23 lines
440 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sleep
spec:
selector:
matchLabels:
app: sleep
template:
metadata:
labels:
app: sleep
spec:
containers:
- name: sleep
image: kiamol/ch03-sleep
env:
- name: KIAMOL_SECRET
valueFrom:
secretKeyRef:
name: sleep-secret-literal
key: secret