-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb-deployment.yaml
More file actions
53 lines (53 loc) · 1.22 KB
/
db-deployment.yaml
File metadata and controls
53 lines (53 loc) · 1.22 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
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
creationTimestamp: null
labels:
io.kompose.service: db
name: db
spec:
replicas: 1
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
io.kompose.service: db
spec:
containers:
- args:
- --default-authentication-plugin=mysql_native_password
env:
- name: MYSQL_DATABASE
value: wordpress
- name: MYSQL_PASSWORD
valueFrom:
configMapKeyRef:
key: MYSQL_PASSWORD
name: db-env
- name: MYSQL_ROOT_PASSWORD
valueFrom:
configMapKeyRef:
key: MYSQL_ROOT_PASSWORD
name: db-env
- name: MYSQL_USER
valueFrom:
configMapKeyRef:
key: MYSQL_USER
name: db-env
image: mysql:8.0
name: db
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
name: dbdata
restartPolicy: Always
volumes:
- name: dbdata
persistentVolumeClaim:
claimName: dbdata
status: {}