forked from PrefectHQ/prefect-helm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values.schema.json
719 lines (719 loc) · 25.3 KB
/
values.schema.json
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
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
{
"$schema": "http://json-schema.org/schema#",
"type": "object",
"additionalProperties": true,
"properties": {
"nameOverride": {
"type": "string",
"title": "Name Override",
"description": "partially overrides common.names.name"
},
"fullnameOverride": {
"type": "string",
"title": "Fullname Override",
"description": "fully override common.names.fullname"
},
"namespaceOverride": {
"type": "string",
"title": "Namespace Override",
"description": "fully override common.names.namespace"
},
"commonLabels": {
"type": "object",
"title": "Common Labels",
"description": "labels to add to all deployed objects"
},
"commonAnnotations": {
"type": "object",
"title": "Common Annotations",
"description": "annotations to add to all deployed objects"
},
"worker": {
"type": "object",
"title": "Worker",
"description": "worker configuration",
"additionalProperties": false,
"properties": {
"autoscaling": {
"type": "object",
"title": "Autoscaling",
"description": "autoscaling configuration for the worker",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "enable autoscaling for the worker"
},
"minReplicas": {
"type": "integer",
"title": "Min Replicas",
"description": "minimum number of replicas to scale down to"
},
"maxReplicas": {
"type": "integer",
"title": "Max Replicas",
"description": "maximum number of replicas to scale up to"
},
"targetCPUUtilizationPercentage": {
"type": "integer",
"title": "Target CPU Utilization Percentage",
"description": "target CPU utilization percentage for scaling the worker"
},
"targetMemoryUtilizationPercentage": {
"type": "integer",
"title": "Target Memory Utilization Percentage",
"description": "target memory utilization percentage for scaling the worker"
}
}
},
"clusterUid": {
"type": "string",
"title": "Cluster UID",
"description": "unique cluster identifier, if none is provided this value will be infered at time of helm install"
},
"initContainer": {
"type": "object",
"title": "initContainer",
"description": "sync-base-job-template initContainer configuration",
"additionalProperties": false,
"properties": {
"resources": {
"type": "object",
"title": "Resources",
"description": "initContainer resource configuration",
"additionalProperties": false,
"properties": {
"requests": {
"type": "object",
"title": "Requests",
"description": "the requested resources for the init container",
"additionalProperties": false,
"properties": {
"cpu": {
"type": "string",
"title": "CPU",
"description": "init resource request cpu"
},
"memory": {
"type": "string",
"title": "Memory",
"description": "init resource request memory"
}
}
},
"limits": {
"type": "object",
"title": "Limits",
"description": "the requested limits for the init container",
"additionalProperties": false,
"properties": {
"cpu": {
"type": "string",
"title": "CPU",
"description": "init resource limit cpu"
},
"memory": {
"type": "string",
"title": "Memory",
"description": "init resource limit memory"
}
}
}
}
},
"containerSecurityContext": {
"type": "object",
"title": "Container Security Context",
"description": "init container security context configuration",
"additionalProperties": false,
"properties": {
"allowPrivilegeEscalation": {
"type": "boolean",
"title": "Allow Privilege Escalation",
"description": "set init containers' security context allowPrivilegeEscalation"
},
"readOnlyRootFilesystem": {
"type": "boolean",
"title": "Read Only Root Filesystem",
"description": "set init containers' security context readOnlyRootFilesystem"
},
"runAsNonRoot": {
"type": "boolean",
"title": "Run As Non Root",
"description": "set init containers' security context runAsNonRoot"
},
"runAsUser": {
"type": "integer",
"title": "Run As User",
"description": "set init containers' security context runAsUser"
},
"capabilities": {
"type": "object",
"title": "Configure Linux capabilities",
"description": "set init container's security context capabilities",
"properties": {
"add": {
"type": "array",
"title": "Added capabilities",
"description": "set init container's security context capabilities to add",
"items": {
"type": "string"
}
},
"drop": {
"type": "array",
"title": "Removed capabilities",
"description": "set init container's security context capabilities to remove",
"items": {
"type": "string"
}
}
}
}
}
}
}
},
"image": {
"type": "object",
"title": "Image",
"description": "worker image configuration",
"additionalProperties": false,
"properties": {
"repository": {
"type": "string",
"title": "Repository",
"description": "worker image repository"
},
"prefectTag": {
"type": "string",
"title": "Tag",
"description": "worker image tag"
},
"pullPolicy": {
"type": "string",
"title": "Pull Policy",
"description": "worker image pull policy"
},
"pullSecrets": {
"type": "array",
"title": "Pull Secrets",
"description": "worker image pull secrets",
"items": {
"type": "string"
}
},
"debug": {
"type": "boolean",
"title": "Debug",
"description": "worker image debug mode"
}
}
},
"config": {
"type": "object",
"title": "Config",
"description": "general configuration of the worker",
"additionalProperties": false,
"properties": {
"workPool": {
"type": "string",
"title": "Work Pool",
"description": "the work pool that your started worker will poll."
},
"workQueues": {
"type": "array",
"title": "Work Queues",
"description": "one or more work queue names for the worker to pull from. if not provided, the worker will pull from all work queues in the work pool",
"items": {
"type": "string"
}
},
"queryInterval": {
"type": "integer",
"title": "Query Interval",
"description": "how often the worker will query for runs"
},
"prefetchSeconds": {
"type": "integer",
"title": "Prefetch Seconds",
"description": "when querying for runs, how many seconds in the future can they be scheduled"
},
"http2": {
"type": "boolean",
"title": "HTTP2",
"description": "connect using HTTP/2 if the server supports it (experimental)"
},
"limit": {
"type": ["integer", "null"],
"title": "Limit",
"description": "Maximum number of flow runs to start simultaneously (default: unlimited)"
},
"name": {
"type": ["string", "null"],
"title": "Name",
"description": "The name to give to the started worker. If not provided, a unique name will be generated."
},
"installPolicy": {
"type": "string",
"title": "Install Policy",
"description": "Install policy to use workers from Prefect integration packages."
},
"type": {
"type": "string",
"title": "Type",
"description": "the type of worker to start i.e kubernetes"
},
"baseJobTemplate": {
"type": "object",
"title": "Base Job Template",
"description": "If unspecified, Prefect will use the default base job template for the given worker type. If the work pool already exists, this will be ignored.",
"additionalProperties": false,
"properties": {
"existingConfigMapName": {
"type": "string",
"title": "Existing ConfigMap Name",
"description": "the name of an existing ConfigMap containing a base job template. NOTE - the key must be 'baseJobTemplate.json'"
},
"configuration": {
"type": ["string", "null"],
"title": "Base Job Template Configuration",
"description": "JSON formatted base job template. If data is provided here, the chart will generate a configmap and mount it to the worker pod"
},
"name": {
"type": ["string", "null"],
"title": "Name",
"description": "optionally override the default name of the generated configmap."
}
}
}
}
},
"apiConfig": {
"type": "string",
"title": "API Config",
"description": "one of 'cloud' or 'server'"
},
"cloudApiConfig": {
"type": "object",
"title": "Cloud API Config",
"description": "cloud api configuration",
"additionalProperties": false,
"properties": {
"accountId": {
"type": "string",
"title": "Account ID",
"description": "prefect account ID"
},
"workspaceId": {
"type": "string",
"title": "Workspace ID",
"description": "prefect workspace ID"
},
"apiKeySecret": {
"type": "object",
"title": "API Key Secret",
"description": "prefect api key secret",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "prefect API secret name"
},
"key": {
"type": "string",
"title": "Key",
"description": "prefect API secret key"
}
}
},
"cloudUrl": {
"type": "string",
"title": "Cloud URL",
"description": "prefect cloud url"
}
}
},
"selfHostedCloudApiConfig": {
"type": "object",
"title": "Self Hosted API Config",
"description": "self hosted api configuration",
"additionalProperties": false,
"properties": {
"accountId": {
"type": "string",
"title": "Account ID",
"description": "prefect account ID"
},
"workspaceId": {
"type": "string",
"title": "Workspace ID",
"description": "prefect workspace ID"
},
"apiKeySecret": {
"type": "object",
"title": "API Key Secret",
"description": "prefect api key secret",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "prefect API secret name"
},
"key": {
"type": "string",
"title": "Key",
"description": "prefect API secret key"
}
}
},
"uiUrl": {
"type": "string",
"title": "Self Hosted Cloud URL",
"description": "self hosted cloud url"
},
"apiUrl": {
"type": "string",
"title": "Self Hosted API URL",
"description": "self hosted API url (PREFECT_API_URL)"
}
}
},
"serverApiConfig": {
"type": "object",
"title": "Server API Config",
"description": "server api configuration",
"additionalProperties": false,
"properties": {
"apiUrl": {
"type": "string",
"title": "API",
"description": "prefect API url (PREFECT_API_URL)"
},
"uiUrl": {
"type": "string",
"title": "UI",
"description": "prefect UI url"
}
}
},
"revisionHistoryLimit": {
"type": "integer",
"title": "Revision History Limit",
"description": "the number of old ReplicaSets to retain to allow rollback"
},
"replicaCount": {
"type": "integer",
"title": "Replica Count",
"description": "number of worker replicas to deploy"
},
"resources": {
"type": "object",
"title": "Resources",
"description": "worker resource configuration",
"additionalProperties": false,
"properties": {
"requests": {
"type": "object",
"title": "Requests",
"description": "the requested resources for the worker container",
"additionalProperties": false,
"properties": {
"cpu": {
"type": "string",
"title": "CPU",
"description": "worker resource request cpu"
},
"memory": {
"type": "string",
"title": "Memory",
"description": "worker resource request memory"
}
}
},
"limits": {
"type": "object",
"title": "Limits",
"description": "the requested limits for the worker container",
"additionalProperties": false,
"properties": {
"cpu": {
"type": "string",
"title": "CPU",
"description": "worker resource limit cpu"
},
"memory": {
"type": "string",
"title": "Memory",
"description": "worker resource limit memory"
}
}
}
}
},
"livenessProbe": {
"type": "object",
"title": "Liveness Probe",
"description": "worker liveness probe configuration",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean",
"title": "Enabled",
"description": "enable worker liveness probe"
},
"config": {
"type": "object",
"title": "Config",
"description": "worker liveness probe configuration",
"additionalProperties": false,
"properties": {
"initialDelaySeconds": {
"type": "integer",
"title": "Initial Delay Seconds",
"description": "The number of seconds to wait before starting the first probe."
},
"periodSeconds": {
"type": "integer",
"title": "Period Seconds",
"description": "The number of seconds to wait between consecutive probes."
},
"timeoutSeconds": {
"type": "integer",
"title": "Timeout Seconds",
"description": "number of seconds after which the probe times out"
},
"successThreshold": {
"type": "integer",
"title": "Success Threshold",
"description": "The minimum consecutive successes required to consider the probe successful."
},
"failureThreshold": {
"type": "integer",
"title": "Failure Threshold",
"description": "The number of consecutive failures allowed before considering the probe as failed."
}
}
}
}
},
"podSecurityContext": {
"type": "object",
"title": "Pod Security Context",
"description": "worker pod security context configuration",
"additionalProperties": false,
"properties": {
"fsGroup": {
"type": "integer",
"title": "FS Group",
"description": "set worker pod's security context fsGroup"
},
"runAsNonRoot": {
"type": "boolean",
"title": "Run As Non Root",
"description": "set worker pod's security context runAsNonRoot"
},
"runAsUser": {
"type": "integer",
"title": "Run As User",
"description": "set worker pod's security context runAsUser"
}
}
},
"priorityClassName": {
"type": "string",
"title": "Priority Class Name",
"description": "priority class name to use for the worker pods; if the priority class is empty or doesn't exist, the worker pods are scheduled without a priority class"
},
"containerSecurityContext": {
"type": "object",
"title": "Container Security Context",
"description": "worker container security context configuration",
"additionalProperties": false,
"properties": {
"allowPrivilegeEscalation": {
"type": "boolean",
"title": "Allow Privilege Escalation",
"description": "set worker containers' security context allowPrivilegeEscalation"
},
"readOnlyRootFilesystem": {
"type": "boolean",
"title": "Read Only Root Filesystem",
"description": "set worker containers' security context readOnlyRootFilesystem"
},
"runAsNonRoot": {
"type": "boolean",
"title": "Run As Non Root",
"description": "set worker containers' security context runAsNonRoot"
},
"runAsUser": {
"type": "integer",
"title": "Run As User",
"description": "set worker containers' security context runAsUser"
},
"capabilities": {
"type": "object",
"title": "Configure Linux capabilities",
"description": "set worker container's security context capabilities",
"properties": {
"add": {
"type": "array",
"title": "Added capabilities",
"description": "set worker container's security context capabilities to add",
"items": {
"type": "string"
}
},
"drop": {
"type": "array",
"title": "Removed capabilities",
"description": "set worker container's security context capabilities to remove",
"items": {
"type": "string"
}
}
}
}
}
},
"podLabels": {
"type": "object",
"title": "Pod Labels",
"description": "extra labels for worker pod"
},
"podAnnotations": {
"type": "object",
"title": "Pod Annotations",
"description": "extra annotations for worker pod"
},
"affinity": {
"type": "object",
"title": "Affinity",
"description": "affinity for worker pods assignment"
},
"nodeSelector": {
"type": "object",
"title": "Node Selector",
"description": "node labels for worker pods assignment"
},
"tolerations": {
"type": "array",
"title": "Tolerations",
"description": "tolerations for worker pods assignment",
"items": {
"type": "object"
}
},
"extraEnvVars": {
"type": "array",
"title": "Extra Env Vars",
"description": "extra environment variables to add to worker pods"
},
"extraEnvVarsCM": {
"type": "string",
"title": "Extra Env Vars ConfigMap",
"description": "name of existing ConfigMap containing extra env vars to add to worker nodes"
},
"extraEnvVarsSecret": {
"type": "string",
"title": "Extra Env Vars Secret",
"description": "name of existing Secret containing extra env vars to add to worker nodes"
},
"extraContainers": {
"type": "array",
"title": "Extra Containers",
"description": "additional sidecar containers",
"items": {
"type": "object"
}
},
"extraVolumes": {
"type": "array",
"title": "Extra Volumes",
"description": "array with extra volumes for the worker pod",
"items": {
"type": "object"
}
},
"extraVolumeMounts": {
"type": "array",
"title": "Extra Volume Mounts",
"description": "array with extra volumeMounts for the worker pod",
"items": {
"type": "object"
}
},
"extraArgs": {
"type": "array",
"title": "Extra Container Args",
"description": "array with extra args for the worker container"
}
}
},
"serviceAccount": {
"type": "object",
"title": "Service Account",
"description": "service account configuration",
"additionalProperties": false,
"properties": {
"create": {
"type": "boolean",
"title": "Create",
"description": "create service account"
},
"name": {
"type": "string",
"title": "Name",
"description": "name of the service account to use"
},
"annotations": {
"type": "object",
"title": "Annotations",
"description": "annotations to add to the service account"
}
}
},
"role": {
"type": "object",
"title": "Role",
"description": "role configuration",
"additionalProperties": false,
"properties": {
"create": {
"type": "boolean",
"title": "Create",
"description": "create role"
},
"extraPermissions": {
"type": "array",
"title": "Extra Permissions",
"description": "extra permissions to add to the role"
}
}
},
"rolebinding": {
"type": "object",
"title": "RoleBinding",
"description": "rolebinding configuration",
"additionalProperties": false,
"properties": {
"create": {
"type": "boolean",
"title": "Create",
"description": "create role binding"
}
}
},
"common": {
"type": "object",
"title": "Common",
"description": "common configuration. Not set by user but required as common vars are passed to all manifests."
},
"global": {
"type": "object",
"title": "Global",
"description": "global configuration. Not set by user but required when prefect is referenced as a downstream Chart"
}
}
}