/
nodevoto.yml
179 lines (179 loc) · 3.13 KB
/
nodevoto.yml
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
apiVersion: v1
kind: Namespace
metadata:
name: nodevoto
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: gif
namespace: nodevoto
spec:
replicas: 1
selector:
matchLabels:
app: gif-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: gif-svc
spec:
containers:
- env:
- name: GRPC_PORT
value: "8080"
- name: SVC_NAME
value: gif
image: sourishkrout/nodevoto:v5
name: gif-svc
ports:
- containerPort: 8080
name: grpc
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: gif-svc
namespace: nodevoto
spec:
selector:
app: gif-svc
clusterIP: None
ports:
- name: grpc
port: 8080
targetPort: 8080
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: voting
namespace: nodevoto
spec:
replicas: 1
selector:
matchLabels:
app: voting-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: voting-svc
spec:
containers:
- env:
- name: GRPC_PORT
value: "8080"
- name: SVC_NAME
value: voting
image: sourishkrout/nodevoto:v5
name: voting-svc
ports:
- containerPort: 8080
name: grpc
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: voting-svc
namespace: nodevoto
spec:
selector:
app: voting-svc
clusterIP: None
ports:
- name: grpc
port: 8080
targetPort: 8080
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: web
namespace: nodevoto
spec:
replicas: 1
selector:
matchLabels:
app: web-svc
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: web-svc
spec:
containers:
- env:
- name: WEB_PORT
value: "80"
- name: GIFSVC_HOST
value: gif-svc.nodevoto:8080
- name: VOTINGSVC_HOST
value: voting-svc.nodevoto:8080
- name: INDEX_BUNDLE
value: services/nodevoto-web/webapp/dist/index_bundle.js
- name: SVC_NAME
value: web
image: sourishkrout/nodevoto:v5
name: web-svc
ports:
- containerPort: 80
name: http
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
name: web-svc
namespace: nodevoto
spec:
type: LoadBalancer
selector:
app: web-svc
ports:
- name: http
port: 80
targetPort: 80
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
creationTimestamp: null
name: vote-bot
namespace: nodevoto
spec:
replicas: 1
selector:
matchLabels:
app: vote-bot
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: vote-bot
spec:
containers:
- env:
- name: SVC_NAME
value: voteBot
- name: WEB_HOST
value: web-svc.nodevoto:80
image: sourishkrout/nodevoto:v5
name: vote-bot
resources: {}
status: {}
---