-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathvalues.yaml
494 lines (441 loc) · 11.9 KB
/
values.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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
# Default values for unguard-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
kubernetesClusterDomain: cluster.local
# Local Development
# Enable if deploying locally on minikube or kind
# Creates an ingress
localDev:
enabled: true
# Cloud deployment to AWS
# Enable if deploying ta an aws cluster
# Creates an ingress and adds annotations
aws:
enabled: false
ingress:
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/scheme: internal
alb.ingress.kubernetes.io/load-balancer-name: "unguard-lb"
# Ingress
ingress:
name: ingress
# Tracing
tracing:
enabled: false
# Jaeger
jaeger:
name: jaeger
# MariaDB
mariaDB:
serviceName: unguard-mariadb
password: mariadb-root-password
labels:
# Add common labels to all resources here
common: {}
# Malicious load generator
maliciousLoadGenerator:
enabled: false
name: malicious-load-generator
deployment:
strategy:
type: Recreate
terminationGracePeriodSeconds: 5
restartPolicy: Always
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-malicious-load-generator
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8083
env:
FRONTEND_ADDR: unguard-envoy-proxy:8080/ui
USERS: 1
WAIT_TIME: 1800
# Profile Service
profileService:
name: profile-service
service:
type: ClusterIP
ports:
- targetPort: 8080
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-profile-service
tag: 0.8.1
pullPolicy: IfNotPresent
ports:
containerPort: 8080
env:
OTEL_LOGS_EXPORTER: none
OTEL_METRICS_EXPORTER: none
OTEL_RESOURCE_ATTRIBUTES: service.name=unguard-profile-service
OTEL_TRACES_EXPORTER: none
OTEL_EXPERIMENTAL_SDK_ENABLED: false
OTEL_EXPORTER_JAEGER_ENDPOINT: "http://jaeger-collector:14250"
OTEL_PROPAGATORS: "jaeger"
SPRING_DATASOURCE_PASSWORD: password
SPRING_DATASOURCE_URL: jdbc:h2:file:./database/bio
SPRING_DATASOURCE_USERNAME: sa
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 15
# User Simulator
userSimulator:
name: user-simulator
cronJob:
schedule: "*/3 * * * *"
startingDeadlineSeconds: 180
jobTemplate:
restartPolicy: OnFailure
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-user-simulator
tag: 0.9.4
pullPolicy: IfNotPresent
env:
FRONTEND_ADDR: unguard-envoy-proxy:8080/ui
SIMULATE_PRIVATE_RANGES: false
resources:
requests:
cpu: 10m
memory: 256Mi
limits:
cpu: 500m
memory: 512Mi
# Membership Service
membershipService:
name: membership-service
service:
type: ClusterIP
ports:
- targetPort: 8083
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-membership-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8083
env:
ASPNETCORE_ENVIRONMENT: Development
SERVER_PORT: 8083
API_PATH: /membership-service
MARIADB_SERVICE: "{{ .Values.mariaDB.serviceName }}"
MARIADB_PASSWORD:
secretKeyRef:
name: "{{ .Values.mariaDB.serviceName }}"
key: "{{ .Values.mariaDB.password }}"
# User Auth Service
userAuthService:
name: user-auth-service
service:
type: ClusterIP
ports:
- targetPort: 9091
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-user-auth-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 9091
env:
SERVER_PORT: 9091
MARIADB_SERVICE: "{{ .Values.mariaDB.serviceName }}"
MARIADB_PASSWORD:
secretKeyRef:
name: "{{ .Values.mariaDB.serviceName }}"
key: "{{ .Values.mariaDB.password }}"
JAEGER_AGENT_HOST: agent # change depending on your jaeger deployment
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 0
JAEGER_DISABLED: true
ASPNETCORE_ENVIRONMENT: Production
API_PATH: /ad-service
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
# Add Service
adService:
name: ad-service
service:
type: ClusterIP
ports:
- targetPort: 8082
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-ad-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8082
env:
JAEGER_AGENT_HOST: agent # change depending on your jaeger deployment
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 0
JAEGER_DISABLED: true
ASPNETCORE_ENVIRONMENT: Production
SERVER_PORT: 8082
API_PATH: /ad-service
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
# Envoy Proxy
envoyProxy:
name: envoy-proxy
service:
type: ClusterIP
ports:
- name: http
targetPort: 8080
port: 8080
- name: health
targetPort: 8081
port: 8081
deployment:
strategy:
type: RollingUpdate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-envoy-proxy
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
- name: health
containerPort: 8081
# Microblog Service
microblogService:
name: microblog-service
service:
type: ClusterIP
ports:
- targetPort: 8080
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-microblog-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8080
env:
SERVER_PORT: 8080
JAEGER_AGENT_HOST: agent # change depending on your jaeger deployment
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 0
OPENTRACING_JAEGER_ENABLED: false
REDIS_SERVICE_ADDRESS: unguard-redis
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
# Status Service
statusService:
name: status-service
service:
type: ClusterIP
ports:
- targetPort: 8083
port: 80
serviceAccount:
name: unguard-status
role:
name: status-role
rules:
- apiGroups: ["apps"]
resources: ["deployments"]
verbs: ["get", "list"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list"]
roleBindings:
name: status-rolebinding
subjects:
- kind: ServiceAccount
name: unguard-status
apiGroup: ""
roleRef:
kind: Role
name: status-role
apiGroup: rbac.authorization.k8s.io
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-status-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8083
env:
SERVER_PORT: 8083
API_PATH: /status-service
KUBERNETES_NAMESPACE: unguard
IGNORED_DEPLOYMENTS: unguard-user-simulator # add deployments to ignore separated by spaces
MARIADB_SERVICE: "{{ .Values.mariaDB.serviceName }}"
MARIADB_PASSWORD:
secretKeyRef:
name: "{{ .Values.mariaDB.serviceName }}"
key: "{{ .Values.mariaDB.password }}"
# Proxy Service
proxyService:
name: proxy-service
service:
type: ClusterIP
ports:
- targetPort: 8081
port: 80
serviceAccount:
name: unguard-proxy
role:
name: proxy-role
rules:
- apiGroups: [""] # "" indicates the core API group
resources: ["pods"]
verbs: ["create", "list", "get"]
- apiGroups: [""]
resources: ["pods/exec"]
verbs: ["create"]
roleBindings:
name: proxy-rolebinding
subjects:
- kind: ServiceAccount
name: unguard-proxy
apiGroup: ""
roleRef:
kind: Role
name: proxy-role
apiGroup: rbac.authorization.k8s.io
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-proxy-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8081
env:
SERVER_PORT: 8081
JAEGER_AGENT_HOST: agent # change depending on your jaeger deployment
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 0
OPENTRACING_JAEGER_ENABLED: false
# Like Service
likeService:
name: like-service
service:
type: ClusterIP
ports:
- targetPort: 8000
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-like-service
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 8000
env:
JAEGER_COLLECTOR_HOST: collector # PHP OpenTelemetry sends data to jaeger-collector instead of jaeger-agent
JAEGER_DISABLED: true
JAEGER_PORT: 4318
SERVICE_NAME: unguard-like-service
SERVER_PORT: 8000
API_PATH: /like-service
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
DB_HOST: "{{ .Values.mariaDB.serviceName }}"
DB_PORT: "3306"
MARIADB_PASSWORD:
secretKeyRef:
name: "{{ .Values.mariaDB.serviceName }}"
key: "{{ .Values.mariaDB.password }}"
# Payment Service
paymentService:
name: payment-service
containerPort: 8084
service:
type: ClusterIP
ports:
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-payment-service
tag: 0.9.4
pullPolicy: IfNotPresent
env:
API_PATH: /payment-service
OTEL_LOGS_EXPORTER: none
OTEL_METRICS_EXPORTER: none
OTEL_RESOURCE_ATTRIBUTES: service.name=unguard-payment-service
OTEL_TRACES_EXPORTER: none
OTEL_EXPERIMENTAL_SDK_ENABLED: false
OTEL_EXPORTER_OTLP_ENDPOINT: "http://jaeger-collector:4318"
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
OTEL_PROPAGATORS: "jaeger"
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED: false
# Frontend
frontend:
name: frontend
service:
type: ClusterIP
ports:
- targetPort: 3000
port: 80
deployment:
strategy:
type: Recreate
container:
image:
repository: ghcr.io/dynatrace-oss/unguard/unguard-frontend
tag: 0.9.4
pullPolicy: IfNotPresent
ports:
containerPort: 3000
env:
JAEGER_AGENT_HOST: agent # change depending on your jaeger deployment
JAEGER_SAMPLER_TYPE: const
JAEGER_SAMPLER_PARAM: 0
JAEGER_DISABLED: true
MICROBLOG_SERVICE_ADDRESS: unguard-microblog-service
PROXY_SERVICE_ADDRESS: unguard-proxy-service
USER_AUTH_SERVICE_ADDRESS: unguard-user-auth-service
AD_SERVICE_ADDRESS: unguard-ad-service
STATUS_SERVICE_ADDRESS: unguard-status-service
MEMBERSHIP_SERVICE_ADDRESS: unguard-membership-service
PROFILE_SERVICE_ADDRESS: unguard-profile-service
LIKE_SERVICE_ADDRES: unguard-like-service
PAYMENT_SERVICE_ADDRESS: unguard-payment-service
FRONTEND_BASE_PATH: /ui
AD_SERVICE_BASE_PATH: /ad-service
LIKE_SERVICE_BASE_PATH: /like-service
MEMBERSHIP_SERVICE_BASE_PATH: /membership-service
STATUS_SERVICE_BASE_PATH: /status-service