-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathconfig.yaml
More file actions
8597 lines (8359 loc) · 314 KB
/
config.yaml
File metadata and controls
8597 lines (8359 loc) · 314 KB
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: https://json-schema.org/draft/2020-12/schema
$id: https://github.com/elastisys/compliantkubernetes-apps/raw/main/config/schemas/config.yaml
title: Welkin Apps Config
description: |-
This describes the structure of the config for both the service and workload clusters.
Keep in mind that this is evaluated on the merged config, and each config file will contain different properties.
$defs:
component:
deprecated: true
additionalProperties: false
description: This is meant to describe the base class if you will, for Welkin resources.
properties:
affinity:
$ref: '#/$defs/io.k8s.api.core.v1.Affinity'
enabled:
type: boolean
nodeSelector:
$ref: '#/$defs/kubernetesNodeSelector'
resources:
$ref: '#/$defs/kubernetesResourceRequirements'
tolerations:
$ref: '#/$defs/kubernetesTolerations'
topologySpreadConstraints:
$ref: '#/$defs/kubernetesTopologySpreadConstraints'
extraArgs:
$ref: '#/$defs/extraArgs'
required: [] # Shouldn't at least 'enabled' be required?
title: Common Resource
type: object
cpumem:
deprecated: true
description: |-
Use `.$defs.kubernetesQuantity` instead.
additionalProperties: false
properties:
cpu:
default: 100m
pattern: ^[1-9][0-9]*m?$
type:
- string
- integer
memory:
default: 128Mi
pattern: ^[0-9]+(\.[0-9]+)?([KMG]i)?$
type:
- string
- integer
title: CPU and Memory Specifications
type: object
extraArgs:
items:
type: string
title: Extra Arguments
description: |-
Extra arguments passed to a container
type: array
fluentdBuffer:
title: Fluentd Buffer Config
description: |-
Fluentd buffer configuration parameters.
> [!note]
> See [upstream documentation for reference](https://docs.fluentd.org/configuration/buffer-section#parameters), set keys will be converted from `camelCase` to `snake_case`.
additionalProperties:
title: Additional Properties
description: |-
Additional properties
$comment: Assuming that these are never structures, only scalars
not:
title: Invalid Additional Properties Types
description: |-
Invalid additional properties types
type:
- object
- array
type:
- string
- integer
- boolean
type: object
properties:
timekey:
title: Time Key
description: |-
Output plugin will flush chunks per specified time (enabled when time is specified in chunk keys).
[Common/Time parameters](https://docs.fluentd.org/configuration/buffer-section#argument)
examples:
- 10m
type: string
timekeyUseUtc:
title: Timekey Use UTC
description: |-
Output plugin decides to use UTC or not to format placeholders using timekey.
[Common/Time parameters](https://docs.fluentd.org/configuration/buffer-section#argument)
type: boolean
timekeyWait:
title: Timekey wait
description: |-
Output plugin will write chunks after timekey_wait seconds later after timekey expiration.
If a user configures timekey 60m, output plugin will wait delayed events for flushed timekey and write the chunk at 10 minutes of each hour.
[Common/Time parameters](https://docs.fluentd.org/configuration/buffer-section#argument)
examples:
- 1m
type: string
chunkLimitSize:
title: Chunk Limit Size
description: |-
Events will be written into chunks until the size of chunks become `chunkLimitSize`.
[Buffering parameters](https://docs.fluentd.org/configuration/buffer-section#buffering-parameters)
examples:
- 50MB
type: string
totalLimitSize:
title: Total Limit Size
description: |-
The size limitation of this buffer plugin instance.
Once the total size of stored buffer reached this threshold, all append operations will fail with error (and data will be lost).
[Buffering parameters](https://docs.fluentd.org/configuration/buffer-section#buffering-parameters)
examples:
- 9GB
type: string
flushInterval:
title: Flush Interval
description: |-
Flushes the buffer each `flushInterval`, if `flushMode` is equal to `interval`.
[Flushing parameters](https://docs.fluentd.org/configuration/buffer-section#flushing-parameters)
examples:
- 15m
type: string
flushMode:
title: Flush Mode
description: |-
The flush mode to use.
[Flushing parameters](https://docs.fluentd.org/configuration/buffer-section#flushing-parameters)
enum:
- lazy
- interval
- immediate
meta:enum:
lazy: Flushes/writes chunks once per timekey
interval: Flushes/writes chunks per specified time via flushInterval
immediate: Flushes/writes chunks immediately after events are appended into chunks
type: string
flushThreadBurstInterval:
title: Flush Thread Burst Interval
description: |-
The sleep interval (seconds) for threads between flushes when the output plugin flushes the waiting chunks to the next ones.
[Flushing parameters](https://docs.fluentd.org/configuration/buffer-section#flushing-parameters)
type: number
flushThreadCount:
title: Flush Thread Count
description: |-
The number of threads to flush/write chunks in parallel.
[Flushing parameters](https://docs.fluentd.org/configuration/buffer-section#flushing-parameters)
type: integer
retryForever:
title: Retry Forever
description: |-
If true, plugin will ignore `retryTimeout` and `retryMaxTimes` options and retry flushing forever.
[Retries parameters](https://docs.fluentd.org/configuration/buffer-section#retries-parameters)
type: boolean
retryType:
title: Retry Type
description: |-
The retry algorithm type to use.
[Retries parameters](https://docs.fluentd.org/configuration/buffer-section#retries-parameters)
enum:
- exponential_backoff
- periodic
meta:enum:
exponential_backoff: Increase the wait time, in seconds, exponentially per failure
periodic: Output plugin will retry periodically with fixed intervals (configured via retryWait)
type: string
retryMaxInterval:
title: Retry Max Interval
description: |-
The maximum interval (seconds) for exponential backoff between retries while failing.
[Retries parameters](https://docs.fluentd.org/configuration/buffer-section#retries-parameters)
type: integer
goDuration:
title: Duration String
description: |-
A duration string is a possibly signed sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m".
Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".
examples:
- 2h45m0s
pattern: ^([-+]?[0-9]+(.[0-9]+)?(ns|us|µs|ms|s|m|h))+$
type: string
iplist:
title: List Of IP Netmasks
description: |-
List of IP netmasks
items:
type: string
pattern: ^[0-9a-f.:]{2,45}/[0-9]{1,3}$
description: A IP address with netmask
examples:
- 0.0.0.0/0
- 192.0.2.1/24
- 2001:db8:0:1234::/64
type: array
netpolRule:
title: IP And Port List
description: |-
Network policy rule
[Kubernetes network policies](https://kubernetes.io/docs/concepts/services-networking/network-policies/)
additionalProperties: false
properties:
enabled:
type: boolean
ips:
$ref: '#/$defs/iplist'
ports:
$ref: '#/$defs/portlist'
type: object
kubernetesNodeSelector:
title: Kubernetes Node Selector
description: |-
Kubernetes node selector
[Kubernetes assign pod node](https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector)
additionalProperties:
type: string
examples:
- kubernetes.io/os: linux
type: object
percentage:
description: Percentage, 0% - 100%
maximum: 100
minimum: 0
title: Percentage
type: number
port:
maximum: 65535
minimum: 1
type: integer
portlist:
title: Port Number List
description: |-
A 16 bit unsigned integer
items:
$ref: '#/$defs/port'
type: array
kubernetesResourceRequirements:
title: Kubernetes Resource Requirements
description: |-
Resource requests are used by the kube-scheduler to pick a node to schedule pods on.
Limits are enforced. Resources are commonly 'cpu' and 'memory'.
additionalProperties: false
properties:
requests:
$ref: '#/$defs/kubernetesQuantityMap'
limits:
$ref: '#/$defs/kubernetesQuantityMap'
type: object
examples:
- requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 250m
timeRange:
title: Time Range
description: |-
An amount of time
examples:
- 300s
- 72h
- 3d
pattern: ^[0-9]+[hmsd]+$
type: string
kubernetesTolerations:
title: Kubernetes Tolerations
description: |-
Kubernetes Tolerations
[Kubernetes taint and toleration](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/)
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.Toleration'
default: {}
type: array
kubernetesTopologySpreadConstraints:
title: Kubernetes Topology Spread Constraints
description: |-
TopologySpreadConstraints describes how pods should spread across topology domains.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.TopologySpreadConstraint'
default: {}
type: array
kubernetesQuantityMap:
title: Kubernetes Quantity Map
description: ""
type: object
additionalProperties:
$ref: '#/$defs/kubernetesQuantity'
kubernetesQuantity:
title: Kubernetes Quantity
type:
- string
- number
regex: ^[-+]?[0-9]+([KMGTPE]i|[eE][0-9]+|[mkMGTPE])?$
description: |-
Used for CPU shares, memory and storage size etc.
See <https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go>
kubernetesPersistentVolumeClaim:
title: Kubernetes Persistent Volume Claim
description: |-
PersistentVolumeClaim
additionalProperties: false
properties:
size:
default: 1Gi
type: string
type: object
io.k8s.api.core.v1.Affinity:
title: Affinity
description: |-
Affinity is a group of affinity scheduling rules.
properties:
nodeAffinity:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeAffinity'
description: Describes node affinity scheduling rules for the pod.
podAffinity:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PodAffinity'
description: Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).
podAntiAffinity:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PodAntiAffinity'
description: Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).
type: object
containerImage:
title: URI for a container image
type: string
examples:
- registry.k8s.io/ingress-nginx/controller-chroot:v1.12.1@sha256:90155c86548e0bb95b3abf1971cd687d8f5d43f340cfca0ad3484e2b8351096e
io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement:
title: Label Selector Requirement
description: |-
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
default: ""
description: key is the label key that the selector applies to.
type: string
operator:
default: ""
description: operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
type: string
values:
title: Values
description: values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
required:
- key
- operator
type: object
io.k8s.api.core.v1.NodeAffinity:
title: NodeAffinity
description: |-
Node affinity is a group of node affinity scheduling rules.
properties:
preferredDuringSchedulingIgnoredDuringExecution:
title: Preferred During Scheduling Ignored During Execution
description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PreferredSchedulingTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
requiredDuringSchedulingIgnoredDuringExecution:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeSelector'
description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.PodAffinity:
title: PodAffinity
description: |-
Pod affinity is a group of inter pod affinity scheduling rules.
properties:
preferredDuringSchedulingIgnoredDuringExecution:
title: Preferred During Scheduling Ignored During Execution
description: The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
requiredDuringSchedulingIgnoredDuringExecution:
title: Required During Scheduling Ignored During Execution
description: If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.PodAntiAffinity:
title: PodAntiAffinity
description: |-
Pod anti affinity is a group of inter pod anti affinity scheduling rules.
properties:
preferredDuringSchedulingIgnoredDuringExecution:
title: Preferred During Scheduling Ignored During Execution
description: The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.WeightedPodAffinityTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
requiredDuringSchedulingIgnoredDuringExecution:
title: Required During Scheduling Ignored During Execution
description: If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.PreferredSchedulingTerm:
title: PreferredSchedulingTerm
description: |-
An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).
properties:
preference:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeSelectorTerm'
default: {}
description: A node selector term, associated with the corresponding weight.
weight:
default: 0
description: Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.
format: int32
type: integer
required:
- weight
- preference
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.NodeSelector:
title: NodeSelector
description: |-
A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.
properties:
nodeSelectorTerms:
title: Node Selector Terms
description: Required. A list of node selector terms. The terms are ORed.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeSelectorTerm'
default: {}
type: array
x-kubernetes-list-type: atomic
required:
- nodeSelectorTerms
type: object
x-kubernetes-map-type: atomic
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.WeightedPodAffinityTerm:
title: WeightedPodAffinityTerm
description: |-
The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
properties:
podAffinityTerm:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.PodAffinityTerm'
default: {}
description: Required. A pod affinity term, associated with the corresponding weight.
weight:
default: 0
description: weight associated with matching the corresponding podAffinityTerm, in the range 1-100.
format: int32
type: integer
required:
- weight
- podAffinityTerm
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.PodAffinityTerm:
title: PodAffinityTerm
description: |-
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
properties:
labelSelector:
allOf:
- $ref: '#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector'
description: A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods.
matchLabelKeys:
title: Match Label Keys
description: MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
mismatchLabelKeys:
title: Mismatch Label Keys
description: MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is an alpha field and requires enabling MatchLabelKeysInPodAffinity feature gate.
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
namespaceSelector:
allOf:
- $ref: '#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector'
description: A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces.
namespaces:
title: Namespaces
description: namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace".
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
topologyKey:
default: ""
description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
type: string
required:
- topologyKey
type: object
$comment: Imported from Kubernetes project
io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector:
title: LabelSelector
description: |-
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
properties:
matchExpressions:
title: Match Expressions
description: matchExpressions is a list of label selector requirements. The requirements are ANDed.
items:
allOf:
- $ref: '#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement'
default: {}
type: array
x-kubernetes-list-type: atomic
matchLabels:
additionalProperties:
default: ""
type: string
description: matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
type: object
type: object
x-kubernetes-map-type: atomic
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.NodeSelectorTerm:
title: NodeSelectorTerm
description: |-
A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.
properties:
matchExpressions:
title: Match Expressions
description: A list of node selector requirements by node's labels.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement'
default: {}
type: array
x-kubernetes-list-type: atomic
matchFields:
title: Match Fields
description: A list of node selector requirements by node's fields.
items:
allOf:
- $ref: '#/$defs/io.k8s.api.core.v1.NodeSelectorRequirement'
default: {}
type: array
x-kubernetes-list-type: atomic
type: object
x-kubernetes-map-type: atomic
io.k8s.api.core.v1.NodeSelectorRequirement:
title: NodeSelectorRequirement
description: |-
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
properties:
key:
default: ""
description: The label key that the selector applies to.
type: string
operator:
default: ""
description: Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
type: string
values:
title: Values
description: An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
required:
- key
- operator
type: object
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.EnvVar:
title: Environment Variable
description: EnvVar represents an environment variable present in a Container.
type: object
properties:
name:
title: Environment Variable Name
description: |-
Name of the environment variable.
Must be a C_IDENTIFIER.
type: string
value:
title: Environment Variable Value
description: |-
Variable references `$(VAR_NAME)` are expanded using the previously defined environment variables in the container and any service environment variables.
If a variable cannot be resolved, the reference in the input string will be unchanged.
Double `$$` are reduced to a single `$`, which allows for escaping the `$(VAR_NAME)` syntax: i.e. `$$(VAR_NAME)` will produce the string literal `$(VAR_NAME)`.
Escaped references will never be expanded, regardless of whether the variable exists or not.
type: string
valueFrom:
$ref: '#/$defs/io.k8s.api.core.v1.EnvVarSource'
required:
- name
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.EnvVarSource:
title: Environment Variable Source
description: Environment Variable Source represents a source for the value of an Environment Variable.
type: object
properties:
configMapKeyRef:
$ref: '#/components/schemas/io.k8s.api.core.v1.ConfigMapKeySelector'
fieldRef:
$ref: '#/components/schemas/io.k8s.api.core.v1.ObjectFieldSelector'
resourceFieldRef:
$ref: '#/components/schemas/io.k8s.api.core.v1.ResourceFieldSelector'
secretKeyRef:
$ref: '#/components/schemas/io.k8s.api.core.v1.SecretKeySelector'
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.ConfigMapKeySelector:
title: Config Map Key Selector
description: Selects a key from a ConfigMap.
type: object
properties:
key:
title: Config Map Key
description: The key to select.
type: string
default: ""
name:
title: Config Map Name
type: string
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is allowed to be empty.
Instances of this type with an empty value here are almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
default: ""
optional:
title: Config Map Optional
description: Specify whether the ConfigMap or its key must be defined.
type: boolean
required:
- key
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.ObjectFieldSelector:
title: Object Field Selector
description: ObjectFieldSelector selects an APIVersioned field of an object.
properties:
apiVersion:
title: API Version
description: Version of the schema the FieldPath is written in terms of, defaults to `v1`.
type: string
fieldPath:
title: Field Path
default: ""
description: Path of the field to select in the specified API version.
type: string
required:
- fieldPath
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.ResourceFieldSelector:
title: Resource Field Selector
description: ResourceFieldSelector represents container resources (cpu, memory) and their output format.
type: object
properties:
containerName:
title: Container Name
description: Container name, required for volumes, optional for env vars
type: string
divisor:
title: Divisor
description: Specifies the output format of the exposed resources, defaults to `1`.
$ref: "#/$defs/KubernetesQuantity"
resource:
title: Resource
description: Required, resource to select.
type: string
default: ""
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.SecretKeySelector:
title: Secret Key Selector
description: SecretKeySelector selects a key of a Secret.
type: object
properties:
key:
description: |-
The key of the secret to select from.
Must be a valid secret key.
type: string
default: ""
name:
description: |-
Name of the referent.
This field is effectively required, but due to backwards compatibility is allowed to be empty.
Instances of this type with an empty value here are almost certainly wrong.
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
type: string
default: ""
optional:
description: Specify whether the Secret or its key must be defined
type: boolean
required:
- key
$comment: Imported from Kubernetes project
io.k8s.api.core.v1.TopologySpreadConstraint:
title: Topology Spread Constraint
description: TopologySpreadConstraint specifies how to spread matching pods among the given topology.
properties:
labelSelector:
allOf:
- $ref: '#/$defs/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector'
description: LabelSelector is used to find matching pods. Pods that match this label selector are counted to determine the number of pods in their corresponding topology domain.
matchLabelKeys:
title: Match Label Keys
description: |-
MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector.
This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default).
items:
default: ""
type: string
type: array
x-kubernetes-list-type: atomic
maxSkew:
default: 0
description: 'MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It''s a required field. Default value is 1 and 0 is not allowed.'
format: int32
type: integer
minDomains:
description: |-
MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule.
For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew.
format: int32
type: integer
nodeAffinityPolicy:
description: |-
NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations.
If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
type: string
nodeTaintsPolicy:
description: |-
NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included.
If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag.
type: string
topologyKey:
default: ""
description: TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a "bucket", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field.
type: string
whenUnsatisfiable:
default: ""
description: |-
WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location,
but giving higher precedence to topologies that would help reduce the
skew.
A constraint is considered "Unsatisfiable" for an incoming pod if and only if every possible node assignment for that pod would violate "MaxSkew" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field.
type: string
required:
- maxSkew
- topologyKey
- whenUnsatisfiable
type: object
io.k8s.api.core.v1.Toleration:
title: Toleration
description: The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
properties:
effect:
description: Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
type: string
key:
description: Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.
type: string
operator:
description: Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.
type: string
tolerationSeconds:
description: TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.
format: int64
type: integer
value:
description: Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.
type: string
type: object
io.k8s.api.rbac.v1.Subject:
title: Subject
description: Subject contains a reference to the object or user identities a role
binding applies to. This can either hold a direct API object reference, or a
value for non-objects such as user and group names.
properties:
apiGroup:
title: Kind
description: APIGroup holds the API group of the referenced subject. Defaults
to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io"
for User and Group subjects.
type: string
kind:
title: Kind
description: Kind of object being referenced. Values defined by this API group
are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized
the kind value, the Authorizer should report an error.
type: string
enum:
- Group
- ServiceAccount
- User
name:
title: Name
description: Name of the object being referenced.
type: string
namespace:
title: Namespace
description: Namespace of the referenced object. If the object kind is non-namespace,
such as "User" or "Group", and this value is not empty the Authorizer should
report an error.
type: string
required:
- kind
- name
type: object
io.k8s.api.rbac.v1.PolicyRule:
title: PolicyRule
description: PolicyRule holds information that describes a policy rule, but does
not contain information about who the rule applies to or which namespace the rule
applies to.
properties:
apiGroups:
title: APIGroups
description: APIGroups is the name of the APIGroup that contains the resources. If
multiple API groups are specified, any action requested against one of the
enumerated resources in any API group will be allowed.
items:
type: string
type: array
nonResourceURLs:
title: NonResourceURLs
description: NonResourceURLs is a set of partial urls that a user should have
access to. *s are allowed, but only as the full, final step in the path Since
non-resource URLs are not namespaced, this field is only applicable for ClusterRoles
referenced from a ClusterRoleBinding. Rules can either apply to API resources
(such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but
not both.
items:
type: string
type: array
resourceNames:
title: ResourceNames
description: ResourceNames is an optional white list of names that the rule
applies to. An empty set means that everything is allowed.
items:
type: string
type: array
resources:
title: Resources
description: Resources is a list of resources this rule applies to. ResourceAll
represents all resources.
items:
type: string
type: array
verbs:
title: Verbs
description: Verbs is a list of Verbs that apply to ALL the ResourceKinds and
AttributeRestrictions contained in this rule. VerbAll represents all kinds.
items:
type: string
type: array
required:
- verbs
type: object
cronSchedule:
type: string
pattern: ^(((\*\/)?([0-5]?[0-9])((\,|\-|\/)([0-5]?[0-9]))*|\*)[^\S\r\n]+((\*\/)?((2[0-3]|1[0-9]|[0-9]|00))((\,|\-|\/)(2[0-3]|1[0-9]|[0-9]|00))*|\*)[^\S\r\n]+((\*\/)?([1-9]|[12][0-9]|3[01])((\,|\-|\/)([1-9]|[12][0-9]|3[01]))*|\*)[^\S\r\n]+((\*\/)?([1-9]|1[0-2])((\,|\-|\/)([1-9]|1[0-2]))*|\*|(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec))[^\S\r\n]+((\*\/)?[0-6]((\,|\-|\/)[0-6])*|\*|00|(sun|mon|tue|wed|thu|fri|sat)))$|^@(annually|yearly|monthly|weekly|daily|hourly|reboot)$
scrapeTimeout:
type: string
pattern: ^((([0-9]+)y)?(([0-9]+)w)?(([0-9]+)d)?(([0-9]+)h)?(([0-9]+)m)?(([0-9]+)s)?(([0-9]+)ms)?|0)$
s3StorageConfig:
additionalProperties: false
title: S3 Storage Configurations
description: |-
Configurations for using S3 storage.
type: object
properties:
region:
title: S3 Region
description: Region to store data.
type: string
regionEndpoint:
title: S3 Region Endpoint
description: |-
Endpoint to reach the S3 service, mainly applicable for non-AWS implementations.
Make sure to prepend the protocol (e.g. `https://`).
type: string
format: uri
forcePathStyle:
title: S3 Force Path Style
description: |-
Force the use of path style access instead of virtual host style access.
Generally `false` when using AWS, Exoscale, and UpCloud and `true` for other providers.
type: boolean
v2Auth:
title: S3 v2 authentication
description: |-
Force the use of v2 authentication, will default to using v4 authentication otherwise.
type: boolean
default: false
type: object
required:
- global
allOf:
- if:
properties:
trivy:
properties:
enabled:
type: boolean
const: true
then:
properties:
networkPolicies:
properties:
global:
properties:
trivy:
properties:
ips:
$ref: '#/$defs/iplist'
- if:
properties:
kured:
properties:
enabled:
type: boolean
const: true
notification:
properties:
slack:
properties:
enabled:
type: boolean
const: true
then:
properties:
networkPolicies:
properties:
kured: