forked from IBM/spring-boot-microservices-on-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
account-database.yaml
47 lines (46 loc) · 922 Bytes
/
account-database.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
---
apiVersion: v1
kind: Service
metadata:
name: account-database
labels:
app: office-space
spec:
ports:
- port: 3306
protocol: TCP
targetPort: 3306
selector:
app: office-space
tier: database
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: account-database
labels:
app: office-space
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: office-space
tier: database
spec:
containers:
- image: mysql:5.6
name: account-database
env:
- name: MYSQL_USER
value: michaelbolton
- name: MYSQL_PASSWORD
value: password
- name: MYSQL_ROOT_PASSWORD
value: password
- name: MYSQL_DATABASE
value: dockercon2017
ports:
- containerPort: 3306
name: db