-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbookConfig.yaml
66 lines (65 loc) · 1.29 KB
/
bookConfig.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
60
61
62
63
64
65
66
---
apiVersion: v1
kind: Service
metadata:
name: book-app-service
namespace: book-app
spec:
type: LoadBalancer
selector:
app: book-bff
ports:
- port: 82
name: book-bff
targetPort: 80
- port: 3002
name: book-service
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
test: liveness
name: book-bff
namespace: book-app
spec:
replicas: 2
selector:
matchLabels:
app: book-bff
template:
metadata:
labels:
app: book-bff
spec:
containers:
- name: book-bff
image: fibdocker/book_bff:1.0
imagePullPolicy: Always
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /status
port: 80
initialDelaySeconds: 5
periodSeconds: 5
- name: book-service
image: fibdocker/book_service:1.0
imagePullPolicy: Always
env:
- name: AWS_ACCESS_KEY_ID
value: ""
- name: AWS_SECRET_ACCESS_KEY
value: ""
- name: AWS_SESSION_TOKEN
value: ""
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /status
port: 3000
initialDelaySeconds: 5
periodSeconds: 5