forked from linode/apl-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
values-schema.yaml
2458 lines (2457 loc) · 77 KB
/
values-schema.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
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
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$schema: 'http://json-schema.org/draft-07/schema'
additionalProperties: true
definitions:
rawValues:
description: "May define value overrides for a chart. WARNING: these values currently have no schema and can't be validated as such, and may break deployment. You are on your own here."
type: object
alerts:
additionalProperties: false
properties:
drone:
default: slack
enum:
- slack
- msteams
type: string
email:
additionalProperties: false
properties:
critical:
$ref: '#/definitions/email'
description: One or more email addresses (comma separated) for critical events.
x-secret: ''
nonCritical:
$ref: '#/definitions/email'
description: One or more email addresses (comma separated) for non-critical events.
x-secret: ''
groupInterval:
default: 5m
description: How long to wait before sending a notification about new alerts that are added to a group of alerts for which an initial notification has already been sent. (Usually ~5m or more.)
type: string
msteams:
additionalProperties: false
properties:
highPrio:
description: The low prio web hook.
type: string
x-secret: ''
lowPrio:
description: The high prio web hook.
type: string
x-secret: ''
receivers:
description: Notification receivers.
items:
enum:
- slack
- msteams
- email
type: string
type: array
repeatInterval:
default: 3h
description: How long to wait before sending a notification again if it has already been sent successfully for an alert. (Usually ~3h or more).
type: string
slack:
additionalProperties: false
properties:
channel:
default: dev-mon-otomi
description: The Slack channel for non-critical notifications.
type: string
channelCrit:
default: dev-mon-otomi
description: The Slack channel for critical notifications.
type: string
url:
$ref: '#/definitions/url'
description: A Slack webhook URL.
x-secret: ''
allOf:
- anyOf:
- not:
required:
- receivers
- properties:
receivers:
contains:
enum:
- email
required:
- email
- properties:
receivers:
contains:
enum:
- msteams
required:
- msteams
- properties:
receivers:
contains:
enum:
- slack
required:
- slack
- anyOf:
- not:
required:
- drone
- properties:
drone:
const: msteam
required:
- msteam
- properties:
drone:
const: slack
required:
- slack
annotations:
$ref: '#/definitions/labelsAnnotations'
description: A set of annotations.
autoscaling:
additionalProperties: false
properties:
enabled:
default: true
type: boolean
maxReplicas:
type: integer
default: 10
minReplicas:
type: integer
default: 2
aws:
definitions:
accessKey:
title: AWS access key
description: An AWS access key ID.
type: string
x-secret: ''
secretKey:
title: AWS secret key
description: An AWS secret key.
type: string
x-secret: ''
region:
title: AWS region
description: An AWS region.
type: string
role:
description: Role may be set explicitly if no metadata can be accessed.
example: arn:aws:iam::YYYYYYYYYYYY:role/dns-manager
type: string
azure:
definitions:
clientId:
title: Azure client id
description: An Azure client id.
type: string
x-secret: ''
clientSecret:
title: Azure client secret
description: An Azure client secret.
type: string
x-secret: ''
environment:
title: Azure environment
description: An Azure environment. Don't specify this if you don't know what you are doing!
type: string
default: AzureCloud
enum:
- AzureCloud
- AzureChinaCloud
- AzureUSGovernment
- AzureGermanCloud
monitor:
additionalProperties: false
properties:
appInsightsApiKey:
$ref: '#/definitions/azure/definitions/clientSecret'
title: AppInsights api key
description: An Azure AppInsights client secret.
appInsightsAppId:
$ref: '#/definitions/azure/definitions/clientId'
title: AppInsights app id
azureLogAnalyticsSameAs:
title: LogAnalytics using same creds?
type: boolean
default: true
clientId:
$ref: '#/definitions/azure/definitions/clientId'
clientSecret:
$ref: '#/definitions/azure/definitions/clientSecret'
logAnalyticsClientId:
$ref: '#/definitions/azure/definitions/clientId'
title: LogAnalytics client id
description: An Azure client secret.
logAnalyticsClientSecret:
$ref: '#/definitions/azure/definitions/clientSecret'
title: LogAnalytics client secret
description: An Azure client secret.
logAnalyticsTenantId:
$ref: '#/definitions/azure/definitions/tenantId'
title: LogAnalytics tenant id
description: An Azure tenant id.
logAnalyticsDefaultWorkspace:
title: LogAnalytics default workspace to show
description: An Azure LogAnalytics workspace.
type: string
subscriptionId:
$ref: '#/definitions/azure/definitions/subscriptionId'
tenantId:
$ref: '#/definitions/azure/definitions/tenantId'
required:
- clientId
- clientSecret
tenantId:
title: Azure tenant id
description: An Azure tenant id.
type: string
subscriptionId:
title: Azure subscription id
description: An Azure subscription id.
type: string
cluster:
additionalProperties: false
properties:
apiName:
description: Only used for API/UI to show in app.
type: string
apiServer:
description: Used by kubectl for local deployment to target cluster.
$ref: '#/definitions/url'
domainSuffix:
$ref: '#/definitions/domain'
description: Domain suffix for the cluster. Also added to list of dns zones in the Otomi Console.
entrypoint:
description: A Kubernetes API public IP address (onprem only).
type: string
k8sContext:
$ref: '#/definitions/k8sContext'
k8sVersion:
$ref: '#/definitions/k8sVersion'
name:
type: string
owner:
$ref: '#/definitions/idName'
description: The name of the organization owning the cluster.
provider:
$ref: '#/definitions/provider'
region:
description: Dependent on provider.
examples:
- europe-west4
- eu-central-1
- westeurope
type: string
vpcID:
description: AWS only. If provided will override autodiscovery from metadata.
type: string
required:
- domainSuffix
- k8sVersion
- name
- owner
- provider
containerSpecNoSec:
additionalProperties: false
properties:
image:
$ref: '#/definitions/image'
resources:
$ref: '#/definitions/resources'
env:
$ref: '#/definitions/env'
files:
$ref: '#/definitions/files'
nativeSecrets:
$ref: '#/definitions/nativeSecrets'
description: Reserved for internal use.
secrets:
$ref: '#/definitions/secrets'
secretMounts:
$ref: '#/definitions/secretMounts'
command:
type: array
items:
type: string
args:
type: array
items:
type: string
required:
- image
- resources
containerSpec:
allOf:
- $ref: '#/definitions/securityContext'
- $ref: '#/definitions/containerSpecNoSec'
cpuQuantity:
description: 'Amount of cores, or slice of cpu in millis.'
examples:
- '1'
- 200m
pattern: '^([0-9]+\.[0-9]{1,2})|([0-9]{2,3}m)?$'
type: string
domain:
pattern: '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$'
type: string
droneGit:
properties:
clientID:
type: string
clientSecretValue:
type: string
x-secret: ''
email:
pattern: '^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$'
type: string
nullable: true
env:
additionalProperties: false
examples:
- FOO: bar
- bar: foo
patternProperties:
'[a-zA-Z_]{1,}[a-zA-Z0-9_]*':
maxLength: 131072
type: string
nullable: true
type: object
title: Environment variables
files:
additionalProperties: false
description: Dictionary of absolute path > content pairs.
patternProperties:
'^[/].*':
type: string
google:
additionalProperties: false
definitions:
accountJson:
type: string
x-secret: ''
projectId:
type: string
hostPort:
pattern: '^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]):()([1-9]|[1-5]?[0-9]{2,4}|6[1-4][0-9]{3}|65[1-4][0-9]{2}|655[1-2][0-9]|6553[1-5])$'
type: string
idName:
description: A lowercase name that starts with a letter and may contain dashes.
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$'
type: string
image:
additionalProperties: false
properties:
pullPolicy:
default: IfNotPresent
enum:
- IfNotPresent
- Always
type: string
repository:
$ref: '#/definitions/repository'
tag:
default: latest
type: string
title: Container image
imageSimple:
additionalProperties: false
properties:
pullPolicy:
default: IfNotPresent
enum:
- IfNotPresent
- Always
type: string
tag:
type: string
title: Container image
jobs:
description: You may pass an array of Job objects. The Kubernetes API accepts
a Job specification, which is meant for run-to-completion apps (e.g. batch
Jobs).
items:
items:
allOf:
- properties:
id:
type: string
readOnly: true
type: object
- $ref: '#/definitions/jobSpec'
- $ref: '#/definitions/podSpec'
type: array
jobSpec:
additionalProperties: false
properties:
type:
default: Job
enum:
- Job
- CronJob
type: string
name:
$ref: '#/definitions/idName'
title: Name
description: A job name
example: some-job
enabled:
default: true
type: boolean
runPolicy:
default: OnSpecChange
description: |
If runPolicy is set to 'Always', the job controller will always be re-deployed after a successful deployment with Helm.
If runPolicy is set to 'OnSpecChange', the job controller will only be re-deployed if one changes this specification.
enum:
- Always
- OnSpecChange
type: string
schedule:
default: 0 1 * * *
description: Must give a cron-type expression if the job type is 'Cronjob'.
type: string
script:
$ref: '#/definitions/script'
shell:
default: /bin/sh
description: Full path to a shell binary that exists in the image.
type: string
ttlSecondsAfterFinished:
default: 86400
description: Time To Live after job is finished in seconds. Will be removed afterwards.
title: TTL after finished
type: integer
init:
type: array
items:
$ref: '#/definitions/containerSpec'
nullable: true
required:
- name
- script
- type
type: object
k8sContext:
description: The cluster k8s context as found in $KUBECONFIG.
type: string
k8sVersion:
description: The cluster k8s version. Otomi supports 2 minor versions backwards compatibility from the suggested default.
enum:
- '1.18'
- '1.19'
- '1.20'
type: string
labels:
$ref: '#/definitions/labelsAnnotations'
description: A set of labels.
labelsAnnotations:
additionalProperties: false
patternProperties:
'^((([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9]){1,253}\/)?([a-z0-9A-Z]+[a-z0-9A-Z-_.]+[a-z0-9A-Z]){1,63}$':
pattern: '^((.){1,253}\/)?(.){1,63}$'
type: string
logLevel:
type: string
default: info
enum:
- error
- warn
- info
- debug
- trace
memoryQuantity:
description: Amount of memory. Valid units are E|P|T|G|M|K|Ei|Pi|Ti|Gi|Mi|Ki.
examples:
- 1Mi
- 0.5M
pattern: '^([0-9]+\.)?[0-9]+(E|P|T|G|M|K|Ei|Pi|Ti|Gi|Mi|Ki)?$'
type: string
nativeSecrets:
description: List of kubernetes secret names.
additionalProperties: false
patternProperties:
'[a-zA-Z_]{1,}[a-zA-Z0-9_]*':
maxLength: 131072
type: string
nullable: true
type: object
title: Kubernetes secrets
podSecurityContext:
allOf:
- $ref: '#/definitions/securityContext'
- properties:
fsGroup:
description: Supplementary group ID. Volumes that support ownership management are modified to be owned and writable by this ID.
type: integer
fsGroupChangePolicy:
description:
'Defines behavior for changing ownership and permission of the volume before being exposed inside a Pod. This field only applies to volume types that support fsGroup controlled ownership and permissions.
This field has two possible values:
- OnRootMismatch: Only change permissions and ownership if permission and ownership of root directory does not match with expected permissions of the volume. This could help shorten the time it takes to change ownership and permission of a volume.
- Always: Always change permission and ownership of the volume when volume is mounted.'
type: string
enum:
- Always
- OnRootMismatch
description: Security context for the pod.
title: Pod security context
podSpec:
allOf:
- properties:
annotations:
$ref: '#/definitions/annotations'
title: Pod annotations
type: object
- $ref: '#/definitions/podSecurityContext'
- $ref: '#/definitions/securityContext'
- $ref: '#/definitions/containerSpec'
type: object
portNumber:
maximum: 32768
minimum: 80
type: number
provider:
type: string
enum:
- aws
- azure
- google
- onprem
redisChart:
properties:
_rawValues:
$ref: '#/definitions/rawValues'
architecture:
type: string
enum:
- standalone
- replication
default: standalone
password:
type: string
x-secret: 'randAlpha 24'
resources:
additionalProperties: false
properties:
master:
$ref: '#/definitions/resources'
sentinel:
$ref: '#/definitions/resources'
slave:
$ref: '#/definitions/resources'
sizes:
additionalProperties: false
properties:
master:
$ref: '#/definitions/size'
sentinel:
$ref: '#/definitions/size'
slave:
$ref: '#/definitions/size'
type: object
registry:
pattern: '^[a-z0-9]+(?:[._-][a-z0-9]+)*$'
type: string
repoUrl:
description: Path to a remote git repo without protocol. Will use https to access.
pattern: '^(.+@)*([\w\d\.]+)(:[\d]+){0,1}/*(.*)$'
type: string
repository:
description: A container image repository.
pattern: '^[a-z0-9]+(?:[/._-]{1,2}[a-z0-9]+)*$'
type: string
resource:
additionalProperties: false
properties:
cpu:
$ref: '#/definitions/cpuQuantity'
memory:
$ref: '#/definitions/memoryQuantity'
required:
- cpu
- memory
resources:
additionalProperties: false
description: Compute resources for containers.
properties:
limits:
$ref: '#/definitions/resource'
description: Requested resources (best effort).
requests:
$ref: '#/definitions/resource'
description: Requested resources (guaranteed).
title: Pod resources
runAsUser:
description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
type: integer
minimum": 0
maximum": 65535
default: 1001
scaling:
additionalProperties: false
description: Min and max number of replicas.
properties:
maxReplicas:
type: integer
minReplicas:
type: integer
script:
description: May specify a non-empty string containing an executable script.
type: string
properties:
id:
readOnly: true
type: string
name:
$ref: '#/definitions/idName'
required:
- name
- type
secret:
type: object
properties:
id:
readOnly: true
type: string
name:
$ref: '#/definitions/subdomainType'
required:
- name
oneOf:
- title: Generic
properties:
type:
default: generic
enum:
- generic
entries:
type: array
items:
description: A property name at vaultPath
minItems: 1
pattern: '^[a-zA-Z0-9_]*$'
type: string
uniqueItems: true
required:
- type
- entries
- title: Docker registry
properties:
type:
default: docker-registry
enum:
- docker-registry
type: string
required:
- type
- title: TLS
properties:
type:
default: tls
enum:
- tls
type: string
crt:
type: string
default: 'tls.crt'
key:
type: string
default: 'tls.key'
ca:
type: string
default: 'ca.crt'
required:
- type
- crt
- key
secrets:
description: List of secret names that will have their props injected as env vars into the container.
items:
type: string
pattern: '[a-zA-Z_]{1,}[a-zA-Z0-9_]*'
nullable: true
title: Secrets
type: array
secretMounts:
description: Dictionary of absolute folder path > secret name. Will mount the contents of the secret in the container at the specified folder path.
examples:
- /foo: bar
nullable: true
patternProperties:
'^[/].*$':
type: string
title: Secret mounts
type: object
secretTemplates:
definitions:
otomiAdminUsername:
x-secret: '"admin"'
securityContext:
additionalProperties:
uniqueItems: true
properties:
runAsUser:
$ref: '#/definitions/runAsUser'
runAsNonRoot:
description: Enforces that the container must run as non root. This implies that the UID must also be set with runAsUser.
type: boolean
default: true
runAsGroup:
description: The GID to run the entrypoint of the container process. Defaults to group specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
type: integer
minimum": 0
maximum": 65535
default: 1001
service:
additionalProperties: false
properties:
authz:
additionalProperties: false
description: Identifies a workload to authorize.
properties:
forwardOriginalToken:
default: false
description: If true istio will forward the bearer token instead of removing it from the headers.
type: boolean
workload:
$ref: '#/definitions/labelsAnnotations'
certArn:
description: Only available on AWS when an external LB is configured. The cert ARN will be registered on the load balancer for SSL termination.
example: arn:aws:acm:eu-central-1:xxx:certificate/xxx
pattern: 'arn:aws(-cn|-us-gov)?:acm:\S+:\d+:\w+\/\S+'
type: string
certName:
description: The name of a TLS secret known to exist in the team namespace.
example: www-example-com
type: string
domain:
description: A custom service domain name (max 64 bytes).
maxLength: 64
type: string
forwardPath:
default: false
description: Whether to forward the path into the service, or 'terminate' it.
type: boolean
hasCert:
description: Select when a certificate exists and should not be generated.
type: boolean
hide:
description: Used by otomi console to determine wether to render it on screen or not. Only used by core services.
type: boolean
host:
description: Reference to another core service name. Used by otomi console to show a variation of a core service with a different path (i.e. Loki). Only used by core services.
type: string
id:
description: Unique identifier created by and used in API. Optional.
type: string
auth:
description: When true the service will get it's own domain by prefixing the app name to the cluster domain. Mostly used by core apps.
type: boolean
isShared:
description: When true the service will get it's own domain by prefixing the app name to the cluster domain. Mostly used by core apps.
type: boolean
ksvc:
anyOf:
- description: Details for a knative service that will be deployed and operated.
allOf:
- properties:
annotations:
$ref: '#/definitions/annotations'
title: Pod annotations
type: object
- properties:
securityContext:
properties:
runAsUser:
$ref: '#/definitions/runAsUser'
readOnlyRootFilesystem:
description: Whether this container has a read-only root filesystem. Default is false.
type: boolean
default: false
- $ref: '#/definitions/containerSpecNoSec'
- properties:
autoCD:
additionalProperties: false
description: NOT IN USE YET! Deploys new images based on a tagging strategy.
oneOf:
- additionalProperties: false
nullable: true
title: 'Off'
type: string
- nullable: true
type: object
properties:
additionalProperties: false
semver:
description: 'Use this filter if your images tags follow semantic versioning rules (MAJOR.MINOR.PATCH). E.g.: PATCH only: "~1.1", MINOR and PATCH only "~1", ALL "*".'
example: 'PATCH only: "~1.1", MINOR and PATCH only "~1", ALL "*", ">=1.2.3-0"'
title: Semver version pattern
type: string
tagMatcher:
default: semver
enum:
- semver
type: string
required:
- semver
title: Semver versioning
- additionalProperties: false
properties:
glob:
description: 'Use this filter if you want to make simple non-standard patterns. E.g.: "master-v1.*.*".'
example: master-v1.*.*
title: Glob string pattern
type: string
tagMatcher:
default: glob
enum:
- glob
type: string
required:
- glob
title: Glob pattern matching
title: Continuous delivery pipeline
containerPort:
$ref: '#/definitions/portNumber'
description: Container port the knative pod will connect with. Leaving this empty will let knative infer the port from the container, which usually works, but might be problematic when the container does not specifically expose a port. (As is the case with nginx derived images!)
title: Container port
scaleToZero:
default: false
description: Scales to zero after 60 seconds and needs approximately 8 seconds to start back up.
title: Scale to zero
type: boolean
- description: Choose this when the ksvc is already deployed
properties:
predeployed:
default: true
description: Has this service been predeployed? Otherwise otomi will start it with the configuration given.
type: boolean
logo:
description: Used by otomi-console as an override mechanism to display another logo.
properties:
name:
type: string
required:
- name
name:
$ref: '#/definitions/idName'
description: Short name. Will be used for generation of knative service name, as well as service URL.
namespace:
$ref: '#/definitions/idName'
description: A kubernetes namespace. Only used by core services, so should be disallowed for non-admins.
ownHost:
default: true
description: When true the service will get it's own domain by prefixing the app name to the team domain. Mostly set to true. This will probably be removed soon.
type: boolean
path:
description: Used by otomi-console to render a path for the app. Only used by core services.
type: string
paths:
items:
description: |
Path mapping to only route certain paths to the service. This allows micro services to operate on the same domain and port.
When left empty all paths will go to this service.
type: string
# nullable: true
type: array
port:
$ref: '#/definitions/portNumber'
description: Points to the backing k8s service (only used when 'svc' is set).
svc:
$ref: '#/definitions/idName'
description: When given a backing k8s service is expected to be deployed with this name, which will be exposed through this team service.
tlsPass:
description: Will pass the request to the backing service without TLS termination.
type: boolean
default: false
type:
nullable: true
default: public
description: Will determine the ingress routing.
enum:
- public
- private
- cluster
type: string
required:
- name
- type
size:
description: Disk size. Valid units are E|P|T|G|Ti|Gi.
examples:
- 1Gi
- 0.5Ti
pattern: '^([0-9]+\.)?[0-9]+(E|P|T|G||Ti|Gi)?$'
type: string
subdomainType:
type: string
pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$'
team:
additionalProperties: false
properties:
alerts:
$ref: '#/definitions/alerts'
azureMonitor:
$ref: '#/definitions/azure/definitions/monitor'
clusters:
items:
type: string
type: array
secrets:
items:
$ref: '#/definitions/secret'
type: array
id:
$ref: '#/definitions/idName'
description: Must be the same as the name.
jobs:
$ref: '#/definitions/jobs'
limitRange:
description: 'Kubernetes limit range. As is.'
properties:
default:
$ref: '#/definitions/resource'
defaultRequest:
$ref: '#/definitions/resource'
oidc:
additionalProperties: false
properties:
groupMapping:
description: IDP group id to map onto this team.
type: string
password:
description: Will be used to separate team resources.
type: string
x-secret: ''
resourceQuota:
description: 'List of kubernetes resource quota. Should adhere to the "spec.hard" format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. Not validated as there is no schema published. Change at your own risk.'
type: object
selfService:
$ref: '#/definitions/teamSelfService'
services:
items:
$ref: '#/definitions/service'
type: array
required:
- id
teamSelfService:
title: Team self service flags
description: Grant team permissions to modify certain configuration parameters.
type: object
properties:
Service:
title: Service
type: array
items:
type: string
enum: [ingress]
uniqueItems: true
Team:
title: Team
type: array
items:
type: string
enum: [alerts, oidc, resourceQuota]
uniqueItems: true
url:
pattern: '^(https:\/\/)([\w\-])+\.{1}([a-zA-Z]{2,63})([\/\w-]*)*\/?\??([^#\n\r]*)?#?([^\n\r]*)$'
type: string
volumes:
items:
additionalProperties: false
properties:
name:
description: Name must match mount name.
type: string
configMap:
properties:
name:
type: string
type: array
properties:
alerts:
$ref: '#/definitions/alerts'
azure:
description: Azure specific configuration.
properties:
storageType:
properties:
fast:
type: string
standard:
type: string
appgw:
properties:
isManaged:
default: true
description: Is this appgw installed as AKS addon?
type: boolean
monitor:
$ref: '#/definitions/azure/definitions/monitor'
cloud:
additionalProperties: true
properties:
skipStorageClasses:
description: