-
Notifications
You must be signed in to change notification settings - Fork 1
/
customerConfig.yaml
59 lines (58 loc) · 1.16 KB
/
customerConfig.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
48
49
50
51
52
53
54
55
56
57
58
59
---
apiVersion: v1
kind: Service
metadata:
name: book-app-cust-service
namespace: book-app
spec:
type: LoadBalancer
selector:
app: customer-bff
ports:
- port: 81
name: customer-bff
targetPort: 80
- port: 3001
name: customer-service
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
test: liveness
name: customer-bff
namespace: book-app
spec:
replicas: 1
selector:
matchLabels:
app: customer-bff
template:
metadata:
labels:
app: customer-bff
spec:
containers:
- name: customer-bff
image: fibdocker/customer_bff:1.0
imagePullPolicy: Always
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /status
port: 80
initialDelaySeconds: 5
periodSeconds: 5
- name: customer-service
image: fibdocker/customer_service:1.0
imagePullPolicy: Always
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /status
port: 3000
initialDelaySeconds: 5
periodSeconds: 5