-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
48 lines (48 loc) · 1.18 KB
/
deployment.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
36
37
38
39
40
41
42
43
44
45
46
47
48
kind: Deployment
apiVersion: apps/v1
metadata:
name: wordpress
spec:
replicas: 1
selector:
matchLabels:
name: wordpress
template:
metadata:
labels:
name: wordpress
spec:
containers:
- image: wordpress:5.8.2-php7.4-apache
name: wordpress
ports:
- name: http
containerPort: 80
env:
- name: WORDPRESS_DB_HOST
value: mysql
- name: WORDPRESS_DB_USER
valueFrom:
secretKeyRef:
name: mysql
key: MYSQL_USER
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql
key: MYSQL_PASSWORD
- name: WORDPRESS_DB_NAME
valueFrom:
secretKeyRef:
name: mysql
key: MYSQL_DATABASE
# livenessProbe:
# httpGet:
# path: /
# port: http
# readinessProbe:
# httpGet:
# path: /
# port: http
terminationGracePeriodSeconds: 30
restartPolicy: Always