Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: wordpress
- labels:
- app: wordpress
- spec:
- selector:
- matchLabels:
- app: wordpress
- strategy:
- type: Recreate
- template:
- metadata:
- labels:
- app: wordpress
- spec:
- containers:
- - image: wordpress:4.8-apache
- name: wordpress
- env:
- - name: WORDPRESS_DB_HOST
- value: wordpress-mysql
- - name: WORDPRESS_DB_PASSWORD
- valueFrom:
- secretKeyRef:
- name: mysql-pass-99bf8m65t5
- key: password
- ports:
- - containerPort: 80
- name: wordpress
- volumeMounts:
- - name: wordpress-persistent-storage
- mountPath: /var/www/html
- volumes:
- - name: wordpress-persistent-storage
- persistentVolumeClaim:
- claimName: wordpress-pv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement