-
Notifications
You must be signed in to change notification settings - Fork 1
/
clientes.yaml
210 lines (210 loc) · 4.18 KB
/
clientes.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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
apiVersion: v1
kind: Namespace
metadata:
name: clientes
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: eventos
namespace: clientes
labels:
app: eventos
spec:
selector:
matchLabels:
app: eventos
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: eventos
spec:
containers:
- name: eventos
image: boletia/eventos
imagePullPolicy: Never
env:
- name: MONGO_URL
value: mongodb://mongo-0.mongo:27017,mongo-1.mongo:27017,mongo-2.mongo:27017/?replicaSet=rs0
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 8070
name: http
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: eventos
namespace: clientes
spec:
selector:
app: eventos
type: ClusterIP
sessionAffinity: None
sessionAffinityConfig:
clientIP:
timeoutSeconds: 10800
ports:
- name: eventos
protocol: TCP
port: 8070
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reservas
namespace: clientes
labels:
app: reservas
spec:
selector:
matchLabels:
app: reservas
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: reservas
spec:
containers:
- name: reservas
image: boletia/reservas
imagePullPolicy: Never
env:
- name: MONGO_URL
value: mongodb://mongo-0.mongo:27017,mongo-1.mongo:27017,mongo-2.mongo:27017/?replicaSet=rs0
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
ports:
- containerPort: 8071
name: http
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: reservas
namespace: clientes
spec:
selector:
app: reservas
type: ClusterIP
sessionAffinity: None
sessionAffinityConfig:
clientIP:
timeoutSeconds: 10800
ports:
- name: eventos
protocol: TCP
port: 8071
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: inventario
namespace: clientes
labels:
app: inventario
spec:
selector:
matchLabels:
app: inventario
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: inventario
spec:
containers:
- name: inventario
image: boletia/inventario
imagePullPolicy: Never
env:
- name: KAFKA_TOPIC_PARTITIONS
value: "1"
- name: KAFKA_TOPIC_REPLICAS
value: "3"
- name: KAFKA_URL
value: kafka.kafka:9092
- name: MONGO_URL
value: mongodb://mongo-0.mongo:27017,mongo-1.mongo:27017,mongo-2.mongo:27017/?replicaSet=rs0
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: notificaciones
namespace: clientes
labels:
app: notificaciones
spec:
selector:
matchLabels:
app: notificaciones
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: notificaciones
spec:
containers:
- name: notificaciones
image: boletia/notificaciones
imagePullPolicy: Never
env:
- name: KAFKA_TOPIC_PARTITIONS
value: "1"
- name: KAFKA_TOPIC_REPLICAS
value: "3"
- name: KAFKA_URL
value: kafka.kafka:9092
- name: SENDER_EMAIL
value: avaco.digital@gmail.com
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 100m
memory: 100Mi
restartPolicy: Always