-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustomer-service.yaml
44 lines (44 loc) · 983 Bytes
/
customer-service.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:
name: customer-service
spec:
replicas: 1
selector:
matchLabels:
app: customer-service
template:
metadata:
labels:
app: customer-service
spec:
containers:
- name: customer-service
image: mounanga/customer-service
ports:
- containerPort: 8881
env:
- name: DISCOVERY_SERVER
value: "http://discovery-service:8761/eureka/"
- name: MYSQL_USER
value: "root"
- name: MYSQL_PWD
value: "rootroot"
- name: MYSQL_HOST
value: "mysql-service"
- name: MYSQL_PORT
value: "3306"
- name: MYSQL_DATABASE
value: "customer_db"
---
apiVersion: v1
kind: Service
metadata:
name: customer-service
spec:
type: ClusterIP
ports:
- port: 8881
targetPort: 8881
selector:
app: customer-service