-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb-shop-db-image-deployment.yaml
44 lines (44 loc) · 1.09 KB
/
web-shop-db-image-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
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
run: web-shop-db-image
name: web-shop-db-image
spec:
replicas: 1
selector:
matchLabels:
run: web-shop-db-image
strategy:
type: Recreate
template:
metadata:
creationTimestamp: null
labels:
run: web-shop-db-image
spec:
containers:
- env:
- name: MYSQL_DATABASE
value: webshop
- name: MYSQL_PASSWORD
value: 240b2c6d58ff2ce2f508b49f
- name: MYSQL_ROOT_PASSWORD
value: c8de110f37300a53a971749
- name: MYSQL_USER
value: webshopuser
image: web-shop-db-image
imagePullPolicy: Never
name: web-shop-db-image
ports:
- containerPort: 3306
resources: {}
volumeMounts:
- mountPath: /var/lib/mysql
name: web-shop-db-image-claim0
volumes:
- name: web-shop-db-image-claim0
persistentVolumeClaim:
claimName: web-shop-db-image-claim0
status: {}