-
Notifications
You must be signed in to change notification settings - Fork 3
/
ota-director-v2-sit.yaml
317 lines (317 loc) · 7.36 KB
/
ota-director-v2-sit.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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: ota-director-v2
release: ota-director-v2
name: ota-director-v2
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: ota-director-v2
release: ota-director-v2
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
prometheus.io/scrape: "true"
labels:
app: ota-director-v2
release: ota-director-v2
spec:
containers:
- envFrom:
- configMapRef:
name: ota-director-v2
- secretRef:
name: ota-director
image: advancedtelematic/director-v2:f22c043a54683360d27c666b11cf2a4b784a6050-SNAPSHOT
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 9001
scheme: HTTP
initialDelaySeconds: 300
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
name: ota-director-v2
ports:
- containerPort: 9001
name: http
protocol: TCP
resources:
limits:
cpu: 4
memory: 2Gi
requests:
cpu: 4
memory: 2Gi
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: docker-registry-key
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
kind: Service
apiVersion: v1
metadata:
labels:
app: ota-director-v2
release: ota-director-v2
name: ota-director-v2
spec:
type: ClusterIP
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: ota-director-v2
release: ota-director-v2
sessionAffinity: None
---
kind: ConfigMap
apiVersion: v1
data:
AKKA_HTTP_CLIENT_MAX_CONNECTIONS: "1024"
AKKA_HTTP_CLIENT_MAX_OPEN_REQUESTS: "2048"
AKKA_HTTP_MAX_CONNECTIONS: "2048"
ATS_HTTP_TRACING: "false"
BIND_HOST: 0.0.0.0
BIND_PORT: "9001"
DB_MIGRATE: "true"
DB_NUM_THREADS: "100"
DB_URL: jdbc:mariadb://db_director.sit-ota.aws.in.here.com:3306/director_v2
DB_USER: director
ENV_PREFIX: sit_
JAVA_OPTS: -XshowSettings:vm -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -Xmx1500m
KAFKA_BOOTSTRAP_SERVERS: kafka0.sit-ota.aws.in.here.com:9092
KAFKA_HOST: kafka0.sit-ota.aws.in.here.com:9092
KAFKA_TOPIC_SUFFIX: sit
LOG_APPENDER: async_json
REQUEST_LOG_LEVEL: debug
REPORT_METRICS: "false"
TUF_KEYSERVER_HOST: ota-tuf-keyserver
TUF_KEYSERVER_PORT: "80"
ZIPKIN_URI: http://ota-zipkin:9411
metadata:
labels:
app: ota-director-v2
release: ota-director-v2
name: ota-director-v2
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
labels:
app: ota-director-v2-daemon
release: ota-director-v2
name: ota-director-v2-daemon
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: ota-director-v2-daemon
release: ota-director-v2
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app: ota-director-v2-daemon
release: ota-director-v2
spec:
containers:
- args:
- -main
- com.advancedtelematic.director.daemon.DaemonBoot
envFrom:
- configMapRef:
name: ota-director-v2
- secretRef:
name: ota-director
image: advancedtelematic/director-v2:f22c043a54683360d27c666b11cf2a4b784a6050-SNAPSHOT
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
httpGet:
path: /health
port: 9001
scheme: HTTP
initialDelaySeconds: 300
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 1
name: ota-director-v2-daemon
ports:
- containerPort: 9001
name: http
protocol: TCP
resources:
limits:
cpu: 2
memory: 2Gi
requests:
cpu: 2
memory: 2Gi
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: docker-registry-key
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
annotations:
external-dns.alpha.kubernetes.io/hostname: ota-director-v2-elb-sit.borg-rd.nw.ops.here.com
labels:
app: ota-director-v2
release: ota-director-v2
name: ota-director-v2-elb
spec:
type: LoadBalancer
externalTrafficPolicy: Cluster
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: ota-director-v2
release: ota-director-v2
---
apiVersion: extensions/v1beta1
kind: NetworkPolicy
metadata:
annotations:
creationTimestamp: "2019-12-05T15:13:18Z"
name: ota-director-elb-allow-traffic
spec:
ingress:
- from:
- ipBlock:
cidr: 10.0.0.0/0
ports:
- port: 9001
protocol: TCP
podSelector:
matchExpressions:
- key: app
operator: In
values:
- ota-director
- ota-director-lt
- ota-director-v2
- ota-director-v2-proxy
policyTypes:
- Ingress
---
kind: ConfigMap
apiVersion: v1
data:
AKKA_HTTP_CLIENT_MAX_CONNECTIONS: "1024"
AKKA_HTTP_CLIENT_MAX_OPEN_REQUESTS: "2048"
AKKA_HTTP_MAX_CONNECTIONS: "2048"
ATS_HTTP_TRACING: "false"
BIND_HOST: 0.0.0.0
BIND_PORT: "9001"
DIRECTOR_HOST: ota-director
DIRECTOR_PORT: "80"
DIRECTORV2_HOST: ota-director-v2
DIRECTORV2_PORT: "80"
KAFKA_HOST: kafka0.sit-ota.aws.in.here.com:9092
KAFKA_TOPIC_SUFFIX: sit
metadata:
labels:
app: ota-director-v2-proxy
release: ota-director-v2-proxy
name: ota-director-v2-proxy
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: ota-director-v2-proxy
release: ota-director-v2-proxy
name: ota-director-v2-proxy
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: ota-director-v2-proxy
release: ota-director-v2-proxy
template:
metadata:
annotations:
prometheus.io/scrape: "false"
labels:
app: ota-director-v2-proxy
release: ota-director-v2-proxy
spec:
containers:
- envFrom:
- configMapRef:
name: ota-director-v2-proxy
image: advancedtelematic/directorv2-proxy:6c016e24b36029cb467b330780798df2627fd2e5
imagePullPolicy: Always
livenessProbe:
tcpSocket:
port: 9001
initialDelaySeconds: 15
periodSeconds: 20
name: ota-director-v-proxy
ports:
- containerPort: 9001
name: http
protocol: TCP
resources:
limits:
cpu: 1
memory: 2Gi
requests:
cpu: 1
memory: 2Gi
imagePullSecrets:
- name: docker-registry-key
restartPolicy: Always
---
kind: Service
apiVersion: v1
metadata:
labels:
app: ota-director-v2-proxy
release: ota-director-v2-proxy
name: ota-director-v2-proxy
spec:
type: ClusterIP
ports:
- name: http
port: 80
protocol: TCP
targetPort: http
selector:
app: ota-director-v2-proxy
release: ota-director-v2-proxy