mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 10:15:22 +00:00
24 lines
525 B
YAML
24 lines
525 B
YAML
apiVersion: apps/v1beta2
|
|
kind: Deployment
|
|
metadata:
|
|
name: wordpress
|
|
spec:
|
|
template:
|
|
spec:
|
|
initContainers:
|
|
- name: init-command
|
|
image: debian
|
|
command:
|
|
- "echo $(WORDPRESS_SERVICE)"
|
|
- "echo $(MYSQL_SERVICE)"
|
|
containers:
|
|
- name: wordpress
|
|
env:
|
|
- name: WORDPRESS_DB_HOST
|
|
value: $(MYSQL_SERVICE)
|
|
- name: WORDPRESS_DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: mysql-pass
|
|
key: password
|