-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwordpress-deployment.yaml
More file actions
59 lines (59 loc) · 1.45 KB
/
wordpress-deployment.yaml
File metadata and controls
59 lines (59 loc) · 1.45 KB
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
56
57
58
59
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service: wordpress
name: wordpress
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: wordpress
spec:
containers:
- env:
- name: MYSQL_PASSWORD
valueFrom:
configMapKeyRef:
key: MYSQL_PASSWORD
name: wordpress-env
- name: MYSQL_ROOT_PASSWORD
valueFrom:
configMapKeyRef:
key: MYSQL_ROOT_PASSWORD
name: wordpress-env
- name: MYSQL_USER
valueFrom:
configMapKeyRef:
key: MYSQL_USER
name: wordpress-env
- name: WORDPRESS_DB_HOST
value: db:3306
- name: WORDPRESS_DB_NAME
value: wordpress
- name: WORDPRESS_DB_PASSWORD
value: hooker111
- name: WORDPRESS_DB_USER
value: manuel
image: wordpress:5.3.1-php7.4-fpm-alpine
name: wordpress
ports:
- containerPort: 9000
resources: {}
volumeMounts:
- mountPath: /var/www/html
name: wordpress
restartPolicy: Always
volumes:
- name: wordpress
persistentVolumeClaim:
claimName: wordpress
status: {}