forked from Light-young/douyin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
117 lines (117 loc) · 2.05 KB
/
deploy.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: user-service
labels:
app: user-service
spec:
replicas: 1
selector:
matchLabels:
app: user-service
template:
metadata:
labels:
app: user-service
spec:
containers:
- name: user-service
image: fduyh2021/user:v2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8087
resources:
requests:
cpu: 50m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: user-service
spec:
ports:
- port: 8087
targetPort: 8087
selector:
app: user-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: video-service
labels:
app: video-service
spec:
replicas: 1
selector:
matchLabels:
app: video-service
template:
metadata:
labels:
app: video-service
spec:
containers:
- name: video-service
image: fduyh2021/video:v2
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8088
resources:
requests:
cpu: 50m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: video-service
spec:
ports:
- port: 8088
targetPort: 8088
selector:
app: video-service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-service
labels:
app: api-service
spec:
replicas: 1
selector:
matchLabels:
app: api-service
template:
metadata:
labels:
app: api-service
spec:
containers:
- name: video-service
image: fduyh2021/api:v2
imagePullPolicy: IfNotPresent
env:
- name: NETWORK_IP
value: "172.19.109.141"
ports:
- containerPort: 8082
resources:
requests:
cpu: 50m
memory: 100Mi
---
apiVersion: v1
kind: Service
metadata:
name: api-service
spec:
ports:
- port: 8082
targetPort: 8082
selector:
app: api-service