-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment.yml
55 lines (55 loc) · 1.23 KB
/
deployment.yml
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
49
50
51
52
53
54
55
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: wordpress
spec:
replicas: 1
minReadySeconds: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 50%
maxSurge: 150%
template:
metadata:
labels:
name: wordpress
spec:
containers:
- name: wordpress
image: codeablehq/kubepress:4.7.5
ports:
- name: http
containerPort: 80
env:
- name: DB_NAME
value: wordpress_database
- name: DB_USER
value: wordpress_user
- name: DB_HOST
value: 1.2.3.4
- name: DB_CHARSET
value: utf8
- name: DB_COLLATE
value: ''
volumeMounts:
- name: glusterfs
mountPath: /var/www/wordpress/wp-content
- name: secrets
readOnly: true
mountPath: /etc/secrets
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 10
timeoutSeconds: 1
volumes:
- name: glusterfs
glusterfs:
endpoints: glusterfs
path: /wp-content
readOnly: false
- name: secrets
secret:
secretName: wordpress-secrets