Guia-Tutorial-kubernetes/files/yaml-del-pelado/15-pod-secret.yaml
Manuel Vergara de7a4de537 Restructuración de los contenidos
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
2022-11-12 03:01:25 +01:00

24 lines
437 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: nginx
spec:
containers:
- name: nginx
image: nginx:alpine
env:
- name: MI_VARIABLE
value: "pelado"
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: db-credentials
key: username
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: db-credentials
key: password
ports:
- containerPort: 80