24 lines
437 B
YAML
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
|