-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordpress-deploy.yaml
35 lines (35 loc) · 991 Bytes
/
wordpress-deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress-deploy
spec:
selector:
matchLabels:
app: wordpress
tier: frontend
template:
metadata:
labels:
app: wordpress
tier: frontend
spec:
containers:
- name: wordpress
image: wordpress:php7.1-apache
env:
- name: WORDPRESS_DB_HOST
value: mysql-svc
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
key: password
name: myaql-pass
ports:
- containerPort: 80
volumeMounts:
- mountPath: /var/www/html
name: wordpress-storage
volumes:
- name: wordpress-storage
persistentVolumeClaim:
claimName: wordpress-efs-pvc