-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvalues.schema.json
1495 lines (1495 loc) · 46.9 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
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-07/schema#",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the service (used for app.kubernetes.io/name label)"
},
"fullname": {
"type": "string",
"description": "The name of the service instance (used for resource names and app.kubernetes.io/instance label)"
},
"version": {
"type": "string",
"description": "The version of the service (used for app.kubernetes.io/version label)"
},
"image": {
"type": "object",
"properties": {
"registry": {
"type": "string",
"default": "docker.io",
"description": "The Registry containing the image to run"
},
"repository": {
"type": "string",
"description": "The name of the image image to run (without the Registry)"
},
"tag": {
"type": "string",
"description": "The tag of the image to run; start with @ for digest instead of tag (e.g., @sha256:abc...)"
},
"pullPolicy": {
"type": "string",
"enum": [
"Never",
"IfNotPresent",
"Always"
],
"default": "IfNotPresent",
"description": "Set to Always to try to pull new versions of the image"
},
"pullSecret": {
"type": "string",
"description": "Name of the Kubernetes Secret providing credentials for pulling the image"
}
},
"required": [
"repository",
"tag"
],
"additionalProperties": false
},
"securityContext": {
"type": "object",
"description": "Security context",
"properties": {
"pod": {
"type": "object",
"description": "Security context to use for the pod",
"properties": {
"runAsUser": {
"type": "integer"
},
"runAsGroup": {
"type": "integer"
},
"fsGroup": {
"type": "integer"
}
}
},
"container": {
"type": "object",
"description": "Security context to use for running containers",
"properties": {
"allowPrivilegeEscalation": {
"type": "boolean"
},
"readOnlyRootFilesystem": {
"type": "boolean"
}
}
}
},
"additionalProperties": false
},
"command": {
"type": "array",
"items": {
"type": "string"
},
"description": "Overrides the command to launch in the image"
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "The command-line arguments passed to the service"
},
"env": {
"type": "object",
"additionalProperties": {
"type": [
"string",
"number",
"boolean"
]
},
"description": "Environment variables passed to the service as a key-value map"
},
"envFrom": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"fieldRef": {
"type": "object"
},
"resourceFieldRef": {
"type": "object"
},
"configMapKeyRef": {
"type": "object"
},
"secretKeyRef": {
"type": "object"
}
}
},
"description": "Environment variables passed to the service from other sources (e.g., secretKeyRef)"
},
"config": {
"type": "object",
"description": "YAML/JSON configuration to be mounted as a file in the container"
},
"configMountPath": {
"type": "string",
"default": "/config/config.yaml",
"description": "The file path in the container to mount the data from config into (exposed via $CONFIG_FILE)"
},
"additionalConfigs": {
"type": "array",
"items": {
"type": "string"
},
"description": "Additional ConfigMaps with key named data.yaml to be mounted (paths appended to $CONFIG_FILE)"
},
"dnsConfig": {
"type": "object",
"properties": {
"nameservers": {
"type": "array",
"items": {
"type": "string"
}
},
"searches": {
"type": "array",
"items": {
"type": "string"
}
},
"options": {
"type": "array",
"items": {
"type": "object"
}
}
},
"description": "DNS config for the pod (https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/"
},
"startupProbe": {
"type": "object",
"description": "Probe that waits for the service to initially start",
"properties": {
"initialDelaySeconds": {
"type": "integer"
},
"periodSeconds": {
"type": "integer"
},
"httpGet": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "string"
},
"path": {
"type": "string"
}
},
"additionalProperties": true
},
"grpc": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "integer"
}
},
"additionalProperties": true
},
"exec": {
"type": [
"object",
"null"
],
"properties": {
"command": {
"type": "array",
"items": {
"type": "string"
}
},
"additionalProperties": true
}
},
"additionalProperties": true
}
},
"livenessProbe": {
"type": "object",
"description": "Probe that causes the service to be restarted when failing",
"properties": {
"initialDelaySeconds": {
"type": "integer"
},
"periodSeconds": {
"type": "integer"
},
"httpGet": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "string"
},
"path": {
"type": "string"
}
},
"additionalProperties": true
},
"grpc": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "integer"
}
},
"additionalProperties": true
},
"exec": {
"type": [
"object",
"null"
],
"properties": {
"command": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"readinessProbe": {
"type": "object",
"description": "Probe that prevents the service from receiving traffic when failing",
"properties": {
"initialDelaySeconds": {
"type": "integer"
},
"periodSeconds": {
"type": "integer"
},
"httpGet": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "string"
},
"path": {
"type": "string"
}
},
"additionalProperties": true
},
"grpc": {
"type": [
"object",
"null"
],
"properties": {
"port": {
"type": "integer"
}
},
"additionalProperties": true
},
"exec": {
"type": [
"object",
"null"
],
"properties": {
"command": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
}
},
"additionalProperties": true
},
"maxShutdownSeconds": {
"type": "integer",
"default": 30,
"description": "The number of seconds the pod has to shutdown before it is terminated"
},
"labels": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional labels to set on all generated resources"
},
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional annotations to set on the Pod controller and Pods"
},
"resources": {
"type": "object",
"properties": {
"requests": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"default": "64M",
"description": "The amount of memory requested for the service (recommendation: slightly higher than average usage)"
},
"cpu": {
"type": "string",
"default": "10m",
"description": "The number of CPU cores requested for the service"
}
}
},
"limits": {
"type": "object",
"properties": {
"memory": {
"type": "string",
"default": "96Mi",
"description": "The maximum amount of memory the service may use (recommendation: slightly higher than worst-case usage)"
},
"cpu": {
"type": "string",
"default": "2000m",
"description": "The maximum number of CPU cores the service may use"
}
}
}
},
"additionalProperties": false
},
"rollout": {
"type": "object",
"properties": {
"controller": {
"type": "string",
"enum": [
"Deployment",
"StatefulSet",
"DaemonSet",
"ArgoRollout"
],
"default": "Deployment",
"description": "The type of Pod controller to create"
},
"strategy": {
"type": "string",
"enum": [
"RollingUpdate",
"Recreate",
"OnDelete",
"Canary",
"BlueGreen"
],
"default": "RollingUpdate",
"description": "The rollout strategy"
},
"autoPromotion": {
"type": "boolean",
"default": true,
"description": "Automatically promote successful rollouts (only applicable if rollout.strategy is BlueGreen)"
},
"flagger": {
"type": "boolean",
"default": false,
"description": "Use Flagger to control rollouts (rollout.controller must be Deployment or StatefulSet)"
},
"analysis": {
"description": "Flagger or Argo Rollouts analysis for automatic Canary or BlueGreen promotion"
},
"revisionHistoryLimit": {
"type": [
"integer",
"null"
],
"description": "Number of old ReplicaSets to retain (rollout.controller must be Deployment or ArgoRollout)"
}
},
"additionalProperties": false
},
"replicas": {
"type": "integer",
"default": 1,
"description": "The number of instances of the service to run"
},
"autoscaling": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables automatic starting of additional instances"
},
"maxReplicas": {
"type": "integer",
"default": 3,
"description": "The maximum number of instances to run (must be larger than replicas)"
},
"metric": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Resource",
"Pods",
"Object",
"External"
],
"default": "Resource",
"description": "The type of metric to use for scaling"
},
"name": {
"type": "string",
"default": "cpu",
"description": "The name of the metric to use for scaling"
},
"object": {
"type": [
"object",
"null"
],
"properties": {
"apiVersion": {
"type": "string"
},
"kind": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"apiVersion",
"kind",
"name"
],
"description": "Reference to the Kubernetes object the metric describes (required if type = Object)"
},
"selector": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels for selecting the metric"
}
}
},
"targetValue": {
"type": "integer",
"default": 80,
"description": "The desired value of the metric to achieve through scaling (e.g., CPU utilization in percent)"
},
"behavior": {
"type": "object",
"description": "Scaling behavior configuration (see HorizontalPodAutoscalerBehavior)"
}
},
"additionalProperties": false
},
"scheduling": {
"type": "object",
"properties": {
"priority": {
"type": "string",
"description": "The name of the PriorityClass to use for scheduling this service"
},
"nodeSelector": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to select nodes this service may be run on"
},
"nodePreferences": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Sets of label values to select nodes this service should be run on if possible"
},
"nodeExclusions": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
},
"description": "Sets of label values to select nodes this service must not run on"
},
"tolerations": {
"type": "array",
"items": {
"type": "string"
},
"description": "Taints on nodes this service can tolerate"
},
"podAffinity": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to select other pods this service should share nodes with if possible"
},
"podAntiAffinity": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Labels to select other pods this service must not share nodes with"
},
"replicaSpread": {
"type": "string",
"enum": [
"BestEffort",
"Strict",
"None"
],
"default": "BestEffort",
"description": "How to spread replicas across nodes"
},
"minAvailable": {
"type": ["integer", "string"],
"default": 1,
"description": "Minimum number of instances to keep running during cluster maintenance (only applied if this value is smaller than replicas)"
}
},
"additionalProperties": false
},
"persistence": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables persistent storage for the service"
},
"storageClass": {
"type": "string",
"description": "The type of disk to use for storage instead of the cluster default"
},
"accessModes": {
"type": "array",
"default": [
"ReadWriteOnce"
],
"items": {
"type": "string"
},
"description": "The support access modes the volume can be mounted with"
},
"size": {
"type": "string",
"default": "1G",
"description": "The size of the persistent volume to create for the service"
},
"mountPath": {
"type": "string",
"description": "The mount path for the storage inside the container"
}
},
"additionalProperties": false
},
"secrets": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"mountPath": {
"type": "string",
"description": "The mount path for the Secret inside the container"
},
"subPath": {
"type": "string",
"description": "The path of a single file in the Secret to mount; leave empty to mount all files"
},
"files": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Map of file names to base64-encoded content; leave empty to reference existing Secret"
}
},
"required": [
"mountPath"
],
"additionalProperties": false
}
},
"additionalMounts": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the volume"
}
},
"required": [
"name"
],
"additionalProperties": true
},
"description": "A map of mount paths inside the container to volumes"
},
"ingress": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables ingress into the service (either cluster-internal or public)"
},
"shutdownDelaySeconds": {
"type": "integer",
"default": 5,
"description": "The number of seconds to delay shutting down the container once no new requests are being routed to it"
},
"port": {
"type": "integer",
"default": 80,
"description": "The container port ingress traffic is routed to"
},
"protocol": {
"type": "string",
"default": "http",
"enum": [
"http",
"https",
"h2c",
"grpc",
"http2",
"h2",
"grpcs"
],
"description": "The internal protocol used for ingress"
},
"timeoutSeconds": {
"type": [
"integer",
"null"
],
"description": "Number of seconds after which to timeout waiting for response from service; -1 for infinite"
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "The public domain names under which the service is exposed (leave empty for cluster-internal only)"
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "HTTP path prefixes to accept ingress traffic for (leave empty to accept traffic for any path)"
},
"tls": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables TLS termination at the ingress (not applicable if ingress.istio.enabled)"
},
"secret": {
"type": "string",
"default": "{{ .Release.Name }}-tls",
"description": "The name of the Secret holding the TLS private key (not applicable if ingress.istio.enabled)"
},
"secretNamespace": {
"type": "string",
"description": "The Kubernetes namespace containing the Secret (only applicable if ingress.class is contour)"
}
},
"additionalProperties": false
},
"cors": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables CORS (only applicable if ingress.class is 'nginx' or ingress.istio.enabled is true)"
},
"allowOrigin": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of origins allowed to access the ingress via CORS; leave empty to allow any"
},
"allowMethods": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"GET"
],
"description": "List of HTTP methods allowed to access the ingress via CORS"
},
"allowHeaders": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"Content-Type"
],
"description": "List of HTTP headers that can be used when requesting the ingress via CORS"
},
"allowCredentials": {
"type": "boolean",
"default": true,
"description": "Indicates whether the caller is allowed to send the actual request (not the preflight) using credentials"
},
"exposeHeaders": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of HTTP headers that the browsers are allowed to access"
}
},
"additionalProperties": false
},
"class": {
"type": "string",
"description": "The ingress controller to use (not applicable if ingress.istio.enabled)"
},
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Annotations for Ingress or VirtualService resource"
},
"headless": {
"type": "boolean",
"default": false,
"description": "Creates an additional Service with the suffix '-headless' that directly exposes Pod IPs"
},
"headlessExposesAll": {
"type": "boolean",
"default": false,
"description": "Exposes all replicas, including unready ones, via the '-headless' Service"
},
"nodeLocal": {
"type": "boolean",
"default": false,
"description": "Creates an additional Service with the suffix '-local' that only routes to pods on the same node"
},
"additionalSelectors": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional label selectors used to restrict the Pods selected by the Service."
},
"istio": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Use Istio VirtualService instead of Kubernetes Ingress resource"
},
"gateways": {
"type": "array",
"items": {
"type": "string"
},
"description": "The names of the Istio Gateways to use"
},
"httpHeaders": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Custom HTTP response headers"
},
"retries": {
"type": "object",
"description": "Istio retry policy (see https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRetry)"
}
},
"additionalProperties": false
},
"extra": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"class": {
"type": "string",
"description": "Additional ingress controller to use (not applicable if ingress.istio.enabled)"
},
"port": {
"type": "integer",
"description": "The container port ingress traffic is routed to; defaults to value of ingress.port if not set"
},
"portRef": {
"type": "string",
"description": "Reference to the name of another extra ingress to share its container port"
},
"protocol": {
"type": "string",
"default": "http",
"enum": [
"http",
"https",
"h2c",
"grpc",
"http2",
"h2",
"grpcs"
],
"description": "The protocol used for the port"
},
"timeoutSeconds": {
"type": [
"integer",
"null"
],
"description": "Number of seconds after which to timeout waiting for response from service; -1 for infinite"
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "The public domain names under which the port is exposed (leave empty for cluster-internal only)"
},
"paths": {
"type": "array",
"items": {
"type": "string"
},
"description": "HTTP path prefixes to accept ingress traffic for (leave empty to accept traffic for any path)"
},
"tls": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables TLS termination at the ingress"
},
"secret": {
"type": "string",
"description": "The name of the Secret holding the TLS private key"
},
"secretNamespace": {
"type": "string",
"description": "The Kubernetes namespace containing the Secret (only applicable if class is contour)"
}
}
},
"annotations": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Additional annotations, merged with ingress.annotations (use string 'nil' to unset existing values)"
}
},
"additionalProperties": false
},
"description": "Additional container ports ingress traffic is routed to (not applicable if ingress.istio.enabled)"
}
},
"additionalProperties": false
},
"netpol": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Apply network policies for the Pods"
},
"ingress": {
"type": "array",
"items": {
"type": "object"
},
"description": "Ingress network policy rules to apply"
},
"egress": {
"type": "array",
"items": {
"type": "object"
},
"description": "Ingress network policy rules to apply"
}
},
"additionalProperties": false
},
"tracing": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"default": false,
"description": "Enables tracing with Jaeger agent (injected as sidecar)"
},
"probability": {
"type": "number",
"default": 1,
"minimum": 0,
"maximum": 1,
"description": "Probability of any single trace being sampled; can be overridden for incoming requests e.g. via Istio"
},
"class": {
"type": "string",
"default": "true",
"description": "Custom value to set for tracing sidecar injection annotations"
},
"insecure": {
"type": "boolean",
"default": true,
"description": "By default if tracing is enabled, a sidecar is injected without TLS. Set this to false, if the sidecar serves the tracing endpoints via TLS."
}
},
"additionalProperties": false
},
"monitoring": {
"type": "object",
"properties": {