-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalues.yaml
595 lines (541 loc) · 14.3 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
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
##
## Copyright 2022 European Centre for Medium-Range Weather Forecasts (ECMWF)
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## In applying this licence, ECMWF does not waive the privileges and immunities
## granted to it by virtue of its status as an intergovernmental organisation nor
## does it submit to any jurisdiction.
##
global:
namespace: my-namespace
developer:
disable_schema_check: true
logging:
level: DEBUG
#################################################################################################
# C O M M O N
#################################################################################################
# These are values which need to match across multiple fields
# They are defined here to avoid duplication
# Only relevant to Seaweedfs/mysql
mysql_service_name: &mysql_svc_name
filer_database: &filer_database
secretName: &s3_secret_name
# Only relevant to Seaweedfs/mysql and MinIO
s3_access_key: &s3_access_key
s3_secret_key: &s3_secret_key
# Relevant to all staging
# while minio will respect the host value, seaweedfs will always use the value "seaweedfs-s3"
# we suggest to keep the value staging here especially if you are using minio
# its value for seaweedfs will be auto calculated in the configmap
download_host: &download_host "staging"
download_port: &download_port 9000
#################################################################################################
# H E L M D E P E N D E N C I E S
#################################################################################################
rabbitmq:
enabled: true
replicaCount: 1
resurcesPreset: xlarge
fullnameOverride: rabbitmq #required for polytope to find the rabbitmq service
auth: #polytope assumes default rabbitmq user and password are set to guest
username: guest
password: guest
persistence:
enabled: false
networkPolicy:
enabled: false
metrics:
enabled: true
serviceMonitor:
enabled: true
default:
enabled: true
detailed:
enabled: true
perObject:
enabled: true
pdb:
enabled: false
minAvailable: 1
mongodb:
enabled: true
architecture: replicaset
auth:
enabled: false
systemLogVerbosity: 0 #default value 0
replicaCount: 2 #default value 2
resourcesPreset: xlarge
service:
nameOverride: mongodb #required for polytope to find the mongodb service
networkPolicy:
enabled: false #default value true but we dont need it
persistence:
enabled: true
size: 20Gi #default value 8Gi
metrics:
enabled: true
collector:
all: true #export all metrics, default false
resourcesPreset: small
serviceMonitor:
enabled: true #this is for prometheus to scrape metrics
pdb:
enabled: true
minAvailable: 1
mysql:
enabled: false # activate together with seaweedfs
fullnameOverride: *mysql_svc_name
startdbScripts:
init.sql: |
CREATE TABLE IF NOT EXISTS `filemeta` (
`dirhash` BIGINT NOT NULL COMMENT 'first 64 bits of MD5 hash value of directory field',
`name` VARCHAR(766) NOT NULL COMMENT 'directory or file name',
`directory` TEXT NOT NULL COMMENT 'full path to parent directory',
`meta` LONGBLOB,
PRIMARY KEY (`dirhash`, `name`)
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
primary:
service:
type: ClusterIP
persistence:
enabled: true
size: "200Gi"
resources:
requests:
memory: "4Gi"
cpu: "3000m"
limits:
memory: "16Gi"
cpu: "8000m"
auth:
rootPassword:
database: *filer_database
username:
password:
networkPolicy:
enabled: false
seaweedfs:
enabled: false # activate together with mysql
serviceMonitor:
enabled: true
createS3Secret:
enabled: true
secretName: *s3_secret_name
global:
createClusterRole: false
enableReplication: false
master:
enabled: true
replicas: 1
volumePreallocate: true
volumeSizeLimitMB: 30000
logs:
type: "emptyDir"
volume:
enabled: true
replicas: 1
minFreeSpacePercent: 7
index: leveldbLarge
dataDirs:
- name: data
type: "persistentVolumeClaim"
size: 1Ti
maxVolumes: 0
filer:
enabled: true
replicas: 1
enablePVC: true
storage: 50Gi
maxMB: 1000
logs:
type: "emptyDir"
data:
type: "persistentVolumeClaim"
size: "50Gi"
s3:
enabled: true
port: *download_port
allowEmptyFolder: true
enableAuth: true
existingConfigSecret: *s3_secret_name
createBuckets:
- name: default
anonymousRead: true
credentials:
anvAdmin:
accessKey: *s3_access_key
secretKey: *s3_secret_key
extraEnvironmentVars:
WEED_LEVELDB2_ENABLED: "false"
WEED_MYSQL_ENABLED: "true"
WEED_MYSQL_DATABASE: *filer_database
WEED_MYSQL_HOSTNAME: *mysql_svc_name
minio:
enabled: false
host: *download_host
port: *download_port
size: 1Ti
replicas: 1
s3_access_key: *s3_access_key
s3_secret_key: *s3_secret_key
#################################################################################################
# D E P L O Y M E N T
#################################################################################################
deployment:
registry:
tag:
mars_c: # in certain environments you may need to use the mars c client
enabled: false
# the mars c client requires configuration which is currently accessed at runtime via git, so you need to provide an ssh key
# sshPrivateKey: |
# -----BEGIN OPENSSH PRIVATE KEY-----
# -----END OPENSSH PRIVATE KEY-----
# sshPublicKey:
imageCredentials:
registry:
username:
password:
ingress:
enabled: true
https_rewrite: true
host: frontend
port: 32002
public_endpoint_dns_name: # deployment specific, e.g. ecmwf.int
deployment_name: # deployment specific, e.g. polytope
frontend_tls_secret: # deployment specific
downloads:
host: *download_host
port: *download_port
downloads_tls_secret: # deployment specific
extra_ingress_annotations:
dns.operators.ecmwf.int/on-transport-server: vs-transport-https
broker:
replicas: 1
frontend:
replicas: 1
garbage-collector:
host: garbage-collector
port: 9000
replicas: 1
minio:
host: staging
port: 9000
replicas: 1
telemetry:
replicas: 1
testrunner:
replicas: 0
worker:
replicas: 1
type: deployment
schedule:
enabled: false
folder: /etc/polytope_schedule/
XML: ""
polytope_proxy: ""
#################################################################################################
# S E R V I C E S
#################################################################################################
frontend:
handler: flask
server: gunicorn
host: frontend
port: 32002
bind_to: 0.0.0.0
#bind_to: frontend
telemetry:
handler: fastapi
server: uvicorn
host: telemetry
port: 32012
bind_to: 0.0.0.0
obfuscate_apikeys: True # obfuscate api keys in the endpoints
usage:
enabled: True
cache_expiry_seconds: 30 # set a value similar to prometheus scrape interval, default is 30 seconds
timeframes: # in s/h/d format, it controls the timeframes for which the usage is calculated in /usage endpoint
- 12h
- 1d
- 3d
- 7d
- 30d
ingress:
enabled: false
telemetry_tls_secret: # deployment specific
basic_auth:
enabled: false
log_suppression_ttl: 3600 # in seconds
users:
- attributes: {}
password: # deployment specific
uid: # deployment specific
metric_store:
mongodb:
uri: mongodb://mongodb:27017
collection: metrics
request_store:
mongodb:
uri: mongodb://mongodb:27017
collection: requests
caching:
mongodb:
uri: mongodb://mongodb:27017
collection: cache
queue:
rabbitmq:
host: rabbitmq
port: 5672
name: default
worker:
host: worker
port: 5000
tmp_dir: /tmp
broker:
host: broker
port: 5000
interval: 1
testrunner:
host: testrunner
port: 5000
staging:
s3_boto3:
access_key: *s3_access_key
buffer_size: 10971520
host: *download_host
max_threads: 10
port: *download_port
secret_key: *s3_secret_key
use_ssl: true
garbage-collector:
interval: 10s
threshold: 1T
age: 3d
metric_age: 365d # we keep processed metrics for long time for /metrics endpoint
# The last two sections are very deployment specific, so we're only leaving some examples here
#################################################################################################
# A U T H E N T I C A T I O N & A U T H O R I Z A T I O N
#################################################################################################
# authentication:
# ####################################
# # E C M W F R E A L M
# ####################################
# ecmwf: # realm name
# authenticators:
# ecmwfapi:
# type: ecmwfapi
# url:
# status_url:
# authorizers:
# plain:
# type: plain
# roles:
# polytope-admin:
# -
# ldap:
# type: ldap
# url:
# filter:
# search_base:
# ldap_user:
# ldap_password:
# ####################################
# # DestinE Service Platform Realm
# ####################################
# desp:
# authenticators:
# keycloak:
# type: jwt
# cert_url:
# client_id:
# openid_offline_access:
# type: openid_offline_access
# cert_url:
# public_client_id:
# private_client_id:
# private_client_secret:
# iam_url:
# iam_realm:
# admin:
# roles:
# ecmwf: [ polytope-admin ]
# api-keys:
# generator:
# type: mongodb
# uri: mongodb://mongodb:27017
# allowed_realms: [ ecmwf, desp ]
# authenticator:
# type: mongoapikey
# uri: mongodb://mongodb:27017
#################################################################################################
# D A T A S O U R C E S & C O L L E C T I O N S
#################################################################################################
# datasources:
# mars_c:
# type: mars
# #command: /usr/local/bin/mars
# command: mars-wrapper.py # this is for using mars-c client
# tmp_dir: /data
# match:
# patch:
# mars_cpp:
# type: mars
# command: /opt/ecmwf/mars-client-cpp/bin/mars-client
# # command: mars-wrapper.py
# tmp_dir: /home/polytope/data
# match:
# patch:
# protocol: remote
# binary: /opt/ecmwf/mars-client-cpp/bin/mars-client
# config:
# - name: databridge
# class: fdb5base
# visit: true
# fdb_config:
# - type: remote
# host:
# port: 10000
# engine: remote
# store: remote
# webmars:
# type: webmars
# url:
# override_email:
# override_apikey:
# tmp_dir: /data
# fdb:
# type: fdb
# config:
# type: local
# engine: toc
# schema:
# git: # path to a git repository containing the fdb schema
# remote:
# branch:
# path:
# spaces:
# - handler: Default
# roots:
# - path: /data/fdb
# ionbeam:
# type: ionbeam
# api_endpoint:
# polytope:
# type: polytope
# gribjump_config:
# type: remote
# uri: fdbtest:9123
# datacube:
# type: gribjump
# options:
# axis_config:
# - axis_name: date
# transformations:
# - name: merge
# other_axis: time
# linkers:
# - T
# - "00"
# - axis_name: values
# transformations:
# - name: mapper
# type: octahedral
# resolution: 1280
# axes:
# - latitude
# - longitude
# local:
# - axis_name: latitude
# transformations:
# - name: reverse
# is_reverse: true
# - axis_name: longitude
# transformations:
# - name: cyclic
# range:
# - 0
# - 360
# - axis_name: step
# transformations:
# - name: type_change
# type: int
# - axis_name: number
# transformations:
# - name: type_change
# type: int
# - axis_name: levelist
# transformations:
# - name: type_change
# type: int
# compressed_axes_config:
# - longitude
# - latitude
# - levtype
# - step
# - date
# - domain
# - expver
# - param
# - class
# - stream
# - type
# - number
# - levelist
# req_single_keys:
# - class
# - stream
# - type
# - levtype
# - expver
# alternative_axes: []
# coverageconfig:
# param_db: ecmwf
# echo:
# type: echo
# raise:
# type: raise
# dummy:
# type: dummy
# collections:
# ecmwf-mars:
# roles: # per realm
# ecmwf: [ ]
# limits:
# total: 15
# per-user: 6
# datasources:
# - name: polytope
# match:
# class: [ od ]
# stream: [ enfo, oper ]
# type: [ fc, pf, cf ]
# levtype: [ sfc, pl ]
# expver: [ "0079" ]
# - name: mars
# match:
# expver: [ hs3g, ht3e, hsvs ]
# - name: mars
# match:
# class: [ ea ]
# stream: [ dacl ]
# dummy:
# roles:
# ecmwf: [ polytope-admin ]
# datasources:
# - name: dummy
# fdb-test:
# roles:
# ecmwf: [ polytope-admin ]
# datasources:
# - name: fdb