/
values_types.proto
1442 lines (1120 loc) · 55.9 KB
/
values_types.proto
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
// Copyright Istio Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = 'proto3';
package v1alpha1;
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "k8s.io/api/core/v1/generated.proto";
import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
// Package-wide variables from generator "generated".
option go_package = "istio.io/istio/operator/pkg/apis/istio/v1alpha1";
// ArchConfig specifies the pod scheduling target architecture(amd64, ppc64le, s390x, arm64)
// for all the Istio control plane components.
message ArchConfig {
// Sets pod scheduling weight for amd64 arch
uint32 amd64 = 1;
// Sets pod scheduling weight for ppc64le arch.
uint32 ppc64le = 2;
// Sets pod scheduling weight for s390x arch.
uint32 s390x = 3;
// Sets pod scheduling weight for arm64 arch.
uint32 arm64 = 4;
}
// Configuration for CNI.
message CNIConfig {
// Controls whether CNI is installed.
google.protobuf.BoolValue enabled = 1;
// Hub to pull the container image from. Image will be `Hub/Image:Tag-Variant`.
string hub = 2;
// The container image tag to pull. Image will be `Hub/Image:Tag-Variant`.
google.protobuf.Value tag = 3;
// The container image variant to pull. Options are "debug" or "distroless". Unset will use the default for the given version.
string variant = 29;
// Image name to pull from. Image will be `Hub/Image:Tag-Variant`.
// If Image contains a "/", it will replace the entire `image` in the pod.
string image = 4;
// Specifies the image pull policy. one of Always, Never, IfNotPresent.
// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated.
//
// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
string pullPolicy = 5;
// The directory path within the cluster node's filesystem where the CNI binaries are to be installed. Typically /var/lib/cni/bin.
string cniBinDir = 6;
// The directory path within the cluster node's filesystem where the CNI configuration files are to be installed. Typically /etc/cni/net.d.
string cniConfDir = 7;
// The name of the CNI plugin configuration file. Defaults to istio-cni.conf.
string cniConfFileName = 8;
// The directory path within the cluster node's filesystem where network namespaces are located.
// Defaults to '/var/run/netns', in minikube/docker/others can be '/var/run/docker/netns'.
string cniNetnsDir = 31;
// List of namespaces that should be ignored by the CNI plugin.
repeated string excludeNamespaces = 9;
// K8s affinity to set on the istio-cni Pods. Can be used to exclude istio-cni from being scheduled on specified nodes.
k8s.io.api.core.v1.Affinity affinity = 20;
// Additional annotations to apply to the istio-cni Pods.
google.protobuf.Struct podAnnotations = 10 [deprecated = true];
// PodSecurityPolicy cluster role. No longer used anywhere.
string psp_cluster_role = 11;
// Configuration log level of istio-cni binary. By default, istio-cni sends all logs to the UDS server.
// To see the logs, change global.logging.level to cni:debug.
string logLevel = 12;
// Configuration for the CNI Repair controller.
CNIRepairConfig repair = 13;
// Configure the plugin as a chained CNI plugin. When true, the configuration is added to the CNI chain; when false,
// the configuration is added as a standalone file in the CNI configuration directory.
google.protobuf.BoolValue chained = 14;
// The resource quotas configration for the CNI DaemonSet.
ResourceQuotas resource_quotas = 16;
// The k8s resource requests and limits for the istio-cni Pods.
Resources resources = 17;
// No longer used for CNI. See: https://github.com/istio/istio/issues/49004
google.protobuf.BoolValue privileged = 18 [deprecated = true];
// The Container seccompProfile
//
// See: https://kubernetes.io/docs/tutorials/security/seccomp/
k8s.io.api.core.v1.SeccompProfile seccompProfile = 19;
// Configuration for Istio Ambient.
CNIAmbientConfig ambient = 21;
// Specifies the CNI provider. Can be either "default" or "multus". When set to "multus", an additional
// NetworkAttachmentDefinition resource is deployed to the cluster to allow the istio-cni plugin to be
// invoked in a cluster using the Multus CNI plugin.
string provider = 22;
// The number of pods that can be unavailable during a rolling update of the CNI DaemonSet (see
// `updateStrategy.rollingUpdate.maxUnavailable` here:
// https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/daemon-set-v1/#DaemonSetSpec).
// May be specified as a number of pods or as a percent of the total number
// of pods at the start of the update.
IntOrString rollingMaxUnavailable = 23;
}
message CNIUsageConfig {
// Controls whether CNI should be used.
google.protobuf.BoolValue enabled = 1;
google.protobuf.BoolValue chained = 2 [deprecated = true];
// Specifies the CNI provider. Can be either "default" or "multus". When set to "multus", an annotation
// `k8s.v1.cni.cncf.io/networks` is set on injected pods to point to a NetworkAttachmentDefinition
string provider = 3;
}
message CNIAmbientConfig {
// Controls whether ambient redirection is enabled
google.protobuf.BoolValue enabled = 1;
// The directory path containing the configuration files for Ambient. Defaults to /etc/ambient-config.
string configDir = 3;
// If enabled, and ambient is enabled, DNS redirection will be enabled.
google.protobuf.BoolValue dnsCapture = 5;
}
message CNIRepairConfig {
// Controls whether repair behavior is enabled.
google.protobuf.BoolValue enabled = 1;
// Hub to pull the container image from. Image will be `Hub/Image:Tag-Variant`.
string hub = 2;
// The container image tag to pull. Image will be `Hub/Image:Tag-Variant`.
google.protobuf.Value tag = 3;
// Image name to pull from. Image will be `Hub/Image:Tag-Variant`.
// If Image contains a "/", it will replace the entire `image` in the pod.
string image = 4;
// The Repair controller has 3 modes (labelPods, deletePods, and repairPods). Pick which one meets your use cases. Note only one may be used.
// The mode defines the action the controller will take when a pod is detected as broken.
// If labelPods is true, the controller will label all broken pods with <brokenPodLabelKey>=<brokenPodLabelValue>.
// This is only capable of identifying broken pods; the user is responsible for fixing them (generally, by deleting them).
// Note this gives the DaemonSet a relatively high privilege, as modifying pod metadata/status can have wider impacts.
bool labelPods = 5;
// The Repair controller has 3 modes (labelPods, deletePods, and repairPods). Pick which one meets your use cases. Note only one may be used.
// The mode defines the action the controller will take when a pod is detected as broken.
// If repairPods is true, the controller will dynamically repair any broken pod by setting up the pod networking configuration even after it has started.
// Note the pod will be crashlooping, so this may take a few minutes to become fully functional based on when the retry occurs.
// This requires no RBAC privilege, but will require the CNI agent to run as a privileged pod.
bool repairPods = 11;
// No longer used.
string createEvents = 6 [deprecated = true];
// The Repair controller has 3 modes (labelPods, deletePods, and repairPods). Pick which one meets your use cases. Note only one may be used.
// The mode defines the action the controller will take when a pod is detected as broken.
// If deletePods is true, the controller will delete the broken pod. The pod will then be rescheduled, hopefully onto a node that is fully ready.
// Note this gives the DaemonSet a relatively high privilege, as it can delete any Pod.
bool deletePods = 7;
// The label key to apply to a broken pod when the controller is in labelPods mode.
string brokenPodLabelKey = 8;
// The label value to apply to a broken pod when the controller is in labelPods mode.
string brokenPodLabelValue = 9;
// The name of the init container to use for the repairPods mode.
string initContainerName = 10;
}
// Configuration for the resource quotas for the CNI DaemonSet.
message ResourceQuotas {
// Controls whether to create resource quotas or not for the CNI DaemonSet.
google.protobuf.BoolValue enabled = 1;
// The hard limit on the number of pods in the namespace where the CNI DaemonSet is deployed.
int64 pods = 2;
}
// Configuration for CPU or memory target utilization for HorizontalPodAutoscaler target.
message TargetUtilizationConfig {
// K8s utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
int32 targetAverageUtilization = 1;
}
// Compute resources required by a container.
message Resources {
// The maximum amount of compute resources allowed.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
map<string, string> limits = 1;
// The minimum amount of compute resources required. If Requests is omitted for a container,
// it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value.
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
map<string, string> requests = 2;
}
// Mirrors ServiceAccount for unmarshaling.
message ServiceAccount {
google.protobuf.Struct annotations = 1;
}
// DefaultPodDisruptionBudgetConfig specifies the default pod disruption budget configuration.
//
// See https://kubernetes.io/docs/concepts/workloads/pods/disruptions/
message DefaultPodDisruptionBudgetConfig {
// Controls whether a PodDisruptionBudget with a default minAvailable value of 1 is created for each deployment.
google.protobuf.BoolValue enabled = 1;
}
// DefaultResourcesConfig specifies the default k8s resources settings for all Istio control plane components.
message DefaultResourcesConfig {
// k8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
ResourcesRequestsConfig requests = 1;
}
// Configuration for an egress gateway.
message EgressGatewayConfig {
// Controls whether auto scaling with a HorizontalPodAutoscaler is enabled.
google.protobuf.BoolValue autoscaleEnabled = 1;
// maxReplicas setting for HorizontalPodAutoscaler.
uint32 autoscaleMax = 2;
// minReplicas setting for HorizontalPodAutoscaler.
uint32 autoscaleMin = 3;
// K8s memory utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig memory = 4 [deprecated = true];
// K8s utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig cpu = 5 [deprecated = true];
google.protobuf.BoolValue customService = 6;
// Controls whether an egress gateway is enabled.
google.protobuf.BoolValue enabled = 7;
// Environment variables passed to the proxy container.
google.protobuf.Struct env = 8;
map<string, string> labels = 9;
string name = 25;
// K8s node selector.
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
google.protobuf.Struct nodeSelector = 10 [deprecated = true];
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
google.protobuf.Struct podAnnotations = 11 [deprecated = true];
// Pod anti-affinity label selector.
//
// Specify the pod anti-affinity that allows you to constrain which nodes
// your pod is eligible to be scheduled based on labels on pods that are
// already running on the node rather than based on labels on nodes.
// There are currently two types of anti-affinity:
// "requiredDuringSchedulingIgnoredDuringExecution"
// "preferredDuringSchedulingIgnoredDuringExecution"
// which denote “hard” vs. “soft” requirements, you can define your values
// in "podAntiAffinityLabelSelector" and "podAntiAffinityTermLabelSelector"
// correspondingly.
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
//
// Examples:
// podAntiAffinityLabelSelector:
// - key: security
// operator: In
// values: S1,S2
// topologyKey: "kubernetes.io/hostname"
// This pod anti-affinity rule says that the pod requires not to be scheduled
// onto a node if that node is already running a pod with label having key
// “security” and value “S1”.
repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podAntiAffinityLabelSelector = 12 [deprecated = true];
// See PodAntiAffinityLabelSelector.
repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podAntiAffinityTermLabelSelector = 13 [deprecated = true];
// Ports Configuration for the egress gateway service.
repeated PortsConfig ports = 14;
// K8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
Resources resources = 15 [deprecated = true];
// Config for secret volume mounts.
repeated SecretVolume secretVolumes = 16;
// Annotations to add to the egress gateway service.
google.protobuf.Struct serviceAnnotations = 17;
// Service type.
//
// See https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
string type = 18;
// Enables cross-cluster access using SNI matching.
ZeroVPNConfig zvpn = 19;
repeated k8s.io.api.core.v1.Toleration tolerations = 20 [deprecated = true];
// K8s rolling update strategy
IntOrString rollingMaxSurge = 21 [deprecated = true];
// The number of pods that can be unavailable during a rolling update (see
// `strategy.rollingUpdate.maxUnavailable` here:
// https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec).
// May be specified as a number of pods or as a percent of the total number
// of pods at the start of the update.
IntOrString rollingMaxUnavailable = 22 [deprecated = true];
repeated google.protobuf.Struct configVolumes = 23;
repeated google.protobuf.Struct additionalContainers = 24;
google.protobuf.BoolValue runAsRoot = 26;
// The injection template to use for the gateway. If not set, no injection will be performed.
string injectionTemplate = 27;
ServiceAccount serviceAccount = 28;
// Defines which IP family to use for single stack or the order of IP families for dual-stack.
// Valid list items are "IPv4", "IPv6".
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
repeated string ipFamilies = 29;
// Controls whether Services are configured to use IPv4, IPv6, or both. Valid options
// are PreferDualStack, RequireDualStack, and SingleStack.
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
string ipFamilyPolicy = 30;
// Next available 31.
}
// Configuration for gateways.
message GatewaysConfig {
// Configuration for an egress gateway.
EgressGatewayConfig istio_egressgateway = 1 [json_name = "istio-egressgateway"];
// Controls whether any gateways are enabled.
google.protobuf.BoolValue enabled = 2;
// Configuration for an ingress gateway.
IngressGatewayConfig istio_ingressgateway = 4 [json_name = "istio-ingressgateway"];
}
// Global Configuration for Istio components.
message GlobalConfig {
// Specifies pod scheduling arch(amd64, ppc64le, s390x, arm64) and weight as follows:
// 0 - Never scheduled
// 1 - Least preferred
// 2 - No preference
// 3 - Most preferred
//
// Deprecated: replaced by the affinity k8s settings which allows architecture nodeAffinity configuration of this behavior.
ArchConfig arch = 1 [deprecated = true];
// List of certSigners to allow "approve" action in the ClusterRole
repeated string certSigners = 68;
// TODO: remove this?
// No longer used.
string configRootNamespace = 50;
// Controls whether the server-side validation is enabled.
google.protobuf.BoolValue configValidation = 3;
// TODO: remove this?
// No longer used.
repeated string defaultConfigVisibilitySettings = 52;
// Default k8s node selector for all the Istio control plane components
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
google.protobuf.Struct defaultNodeSelector = 6 [deprecated = true];
// Specifies the default pod disruption budget configuration.
DefaultPodDisruptionBudgetConfig defaultPodDisruptionBudget = 7 [deprecated = true];
// Default k8s resources settings for all Istio control plane components.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
DefaultResourcesConfig defaultResources = 9 [deprecated = true];
// Default node tolerations to be applied to all deployments so that all pods can be
// scheduled to nodes with matching taints. Each component can overwrite
// these default values by adding its tolerations block in the relevant section below
// and setting the desired values.
// Configure this field in case that all pods of Istio control plane are expected to
// be scheduled to particular nodes with specified taints.
repeated k8s.io.api.core.v1.Toleration defaultTolerations = 55 [deprecated = true];
// Specifies the docker hub for Istio images.
string hub = 12;
// Specifies the image pull policy for the Istio images. one of Always, Never, IfNotPresent.
// Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated.
//
// More info: https://kubernetes.io/docs/concepts/containers/images#updating-images
string imagePullPolicy = 13;
// ImagePullSecrets for the control plane ServiceAccount, list of secrets in the same namespace
// to use for pulling any images in pods that reference this ServiceAccount.
// Must be set for any cluster configured with private docker registry.
repeated string imagePullSecrets = 37;
// Specifies the default namespace for the Istio control plane components.
string istioNamespace = 14;
// Specifies whether istio components should output logs in json format by adding --log_as_json argument to each container.
google.protobuf.BoolValue logAsJson = 36;
// Specifies the global logging level settings for the Istio control plane components.
GlobalLoggingConfig logging = 17;
// The Mesh Identifier. It should be unique within the scope where
// meshes will interact with each other, but it is not required to be
// globally/universally unique. For example, if any of the following are true,
// then two meshes must have different Mesh IDs:
// - Meshes will have their telemetry aggregated in one place
// - Meshes will be federated together
// - Policy will be written referencing one mesh from the other
//
// If an administrator expects that any of these conditions may become true in
// the future, they should ensure their meshes have different Mesh IDs
// assigned.
//
// Within a multicluster mesh, each cluster must be (manually or auto)
// configured to have the same Mesh ID value. If an existing cluster 'joins' a
// multicluster mesh, it will need to be migrated to the new mesh ID. Details
// of migration TBD, and it may be a disruptive operation to change the Mesh
// ID post-install.
//
// If the mesh admin does not specify a value, Istio will use the value of the
// mesh's Trust Domain. The best practice is to select a proper Trust Domain
// value.
string meshID = 53;
// Configure the mesh networks to be used by the Split Horizon EDS.
//
// The following example defines two networks with different endpoints association methods.
// For `network1` all endpoints that their IP belongs to the provided CIDR range will be
// mapped to network1. The gateway for this network example is specified by its public IP
// address and port.
// The second network, `network2`, in this example is defined differently with all endpoints
// retrieved through the specified Multi-Cluster registry being mapped to network2. The
// gateway is also defined differently with the name of the gateway service on the remote
// cluster. The public IP for the gateway will be determined from that remote service (only
// LoadBalancer gateway service type is currently supported, for a NodePort type gateway service,
// it still need to be configured manually).
//
// meshNetworks:
// network1:
// endpoints:
// - fromCidr: "192.168.0.1/24"
// gateways:
// - address: 1.1.1.1
// port: 80
// network2:
// endpoints:
// - fromRegistry: reg1
// gateways:
// - registryServiceName: istio-ingressgateway.istio-system.svc.cluster.local
// port: 443
//
google.protobuf.Struct meshNetworks = 19;
// Specifies the Configuration for Istio mesh across multiple clusters through Istio gateways.
MultiClusterConfig multiCluster = 22;
// Network defines the network this cluster belong to. This name
// corresponds to the networks in the map of mesh networks.
string network = 39;
// Custom DNS config for the pod to resolve names of services in other
// clusters. Use this to add additional search domains, and other settings.
// see https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#dns-config
// This does not apply to gateway pods as they typically need a different
// set of DNS settings than the normal application pods (e.g. in multicluster scenarios).
repeated string podDNSSearchNamespaces = 43;
// Controls whether the creation of the sidecar injector ConfigMap should be skipped.
// Defaults to false. When set to true, the sidecar injector ConfigMap will not be created.
google.protobuf.BoolValue omitSidecarInjectorConfigMap = 38;
// Controls whether the WebhookConfiguration resource(s) should be created. The current behavior
// of Istiod is to manage its own webhook configurations.
// When this option is set to true, Istio Operator, instead of webhooks, manages the
// webhook configurations. When this option is set as false, webhooks manage their
// own webhook configurations.
google.protobuf.BoolValue operatorManageWebhooks = 41;
// Specifies the k8s priorityClassName for the istio control plane components.
//
// See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass
string priorityClassName = 27 [deprecated = true];
// Specifies how proxies are configured within Istio.
ProxyConfig proxy = 28;
// Specifies the Configuration for proxy_init container which sets the pods' networking to intercept the inbound/outbound traffic.
ProxyInitConfig proxy_init = 29 [json_name = "proxy_init"];
// Specifies the Configuration for the SecretDiscoveryService instead of using K8S secrets to mount the certificates.
SDSConfig sds = 30;
// Specifies the tag for the Istio docker images.
google.protobuf.Value tag = 31;
// The variant of the Istio container images to use. Options are "debug" or "distroless". Unset will use the default for the given version.
string variant = 67;
// Specifies the Configuration for each of the supported tracers.
TracerConfig tracer = 33;
// Controls whether to use of Mesh Configuration Protocol to distribute configuration.
google.protobuf.BoolValue useMCP = 35;
// Specifies the Istio control plane’s pilot Pod IP address or remote cluster DNS resolvable hostname.
string remotePilotAddress = 48;
// Specifies the configution of istiod
IstiodConfig istiod = 54;
// Configure the Pilot certificate provider.
// Currently, four providers are supported: "kubernetes", "istiod", "custom" and "none".
string pilotCertProvider = 56;
// Configure the policy for validating JWT.
// This is deprecated and has no effect.
string jwtPolicy = 57 [deprecated = true];
// Specifies the configuration for Security Token Service.
STSConfig sts = 58;
// Configures the revision this control plane is a part of
string revision = 59;
// Controls whether the in-cluster MTLS key and certs are loaded from the secret volume mounts.
google.protobuf.BoolValue mountMtlsCerts = 60;
// The address of the CA for CSR.
string caAddress = 61;
// Controls whether one external istiod is enabled.
google.protobuf.BoolValue externalIstiod = 62;
// Controls whether a remote cluster is the config cluster for an external istiod
google.protobuf.BoolValue configCluster = 64;
// The name of the CA for workloads.
// For example, when caName=GkeWorkloadCertificate, GKE workload certificates
// will be used as the certificates for workloads.
// The default value is "" and when caName="", the CA will be configured by other
// mechanisms (e.g., environmental variable CA_PROVIDER).
string caName = 65;
// TODO: remove this?
// No longer used.
google.protobuf.BoolValue autoscalingv2API = 66;
// Platform in which Istio is deployed. Possible values are: "openshift" and "gcp"
// An empty value means it is a vanilla Kubernetes distribution, therefore no special
// treatment will be considered.
string platform = 69;
// Defines which IP family to use for single stack or the order of IP families for dual-stack.
// Valid list items are "IPv4", "IPv6".
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
repeated string ipFamilies = 70;
// Controls whether Services are configured to use IPv4, IPv6, or both. Valid options
// are PreferDualStack, RequireDualStack, and SingleStack.
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
string ipFamilyPolicy = 71;
// The next available key is 72
}
// Configuration for Security Token Service (STS) server.
//
// See https://tools.ietf.org/html/draft-ietf-oauth-token-exchange-16
message STSConfig {
uint32 servicePort = 1;
}
message IstiodConfig {
// If enabled, istiod will perform config analysis
google.protobuf.BoolValue enableAnalysis = 2;
}
// GlobalLoggingConfig specifies the global logging level settings for the Istio control plane components.
message GlobalLoggingConfig {
// Comma-separated minimum per-scope logging level of messages to output, in the form of <scope>:<level>,<scope>:<level>
// The control plane has different scopes depending on component, but can configure default log level across all components
// If empty, default scope and level will be used as configured in code
string level = 1;
}
// Configuration for an ingress gateway.
message IngressGatewayConfig {
// Controls whether auto scaling with a HorizontalPodAutoscaler is enabled.
google.protobuf.BoolValue autoscaleEnabled = 1;
// maxReplicas setting for HorizontalPodAutoscaler.
uint32 autoscaleMax = 2;
// minReplicas setting for HorizontalPodAutoscaler.
uint32 autoscaleMin = 3;
// K8s memory utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig memory = 4 [deprecated = true];
// K8s cpu utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig cpu = 5 [deprecated = true];
google.protobuf.BoolValue customService = 6;
// Controls whether an ingress gateway is enabled.
google.protobuf.BoolValue enabled = 10;
// Environment variables passed to the proxy container.
google.protobuf.Struct env = 11;
map<string, string> labels = 15;
string loadBalancerIP = 16;
repeated string loadBalancerSourceRanges = 17;
string name = 44;
// K8s node selector.
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
google.protobuf.Struct nodeSelector = 19 [deprecated = true];
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
google.protobuf.Struct podAnnotations = 20 [deprecated = true];
// See EgressGatewayConfig.
repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podAntiAffinityLabelSelector = 21 [deprecated = true];
// See EgressGatewayConfig.
repeated k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podAntiAffinityTermLabelSelector = 22 [deprecated = true];
// Port Configuration for the ingress gateway.
repeated PortsConfig ports = 23;
// Number of replicas for the ingress gateway Deployment.
uint32 replicaCount = 24 [deprecated = true];
// K8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
google.protobuf.Struct resources = 25 [deprecated = true];
// Config for secret volume mounts.
repeated SecretVolume secretVolumes = 27;
// Annotations to add to the egress gateway service.
google.protobuf.Struct serviceAnnotations = 28;
// Service type.
//
// See https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
string type = 29;
// Enables cross-cluster access using SNI matching.
IngressGatewayZvpnConfig zvpn = 30;
// K8s rolling update strategy
IntOrString rollingMaxSurge = 31 [deprecated = true];
// The number of pods that can be unavailable during a rolling update (see
// `strategy.rollingUpdate.maxUnavailable` here:
// https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec).
// May be specified as a number of pods or as a percent of the total number
// of pods at the start of the update.
IntOrString rollingMaxUnavailable = 32 [deprecated = true];
string externalTrafficPolicy = 34;
repeated k8s.io.api.core.v1.Toleration tolerations = 35 [deprecated = true];
repeated google.protobuf.Struct ingressPorts = 36;
repeated google.protobuf.Struct additionalContainers = 37;
repeated google.protobuf.Struct configVolumes = 38;
google.protobuf.BoolValue runAsRoot = 45;
// The injection template to use for the gateway. If not set, no injection will be performed.
string injectionTemplate = 46;
ServiceAccount serviceAccount = 47;
// Defines which IP family to use for single stack or the order of IP families for dual-stack.
// Valid list items are "IPv4", "IPv6".
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
repeated string ipFamilies = 48;
// Controls whether Services are configured to use IPv4, IPv6, or both. Valid options
// are PreferDualStack, RequireDualStack, and SingleStack.
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
string ipFamilyPolicy = 49;
// Next available 50.
}
// IngressGatewayZvpnConfig enables cross-cluster access using SNI matching.
message IngressGatewayZvpnConfig {
// Controls whether ZeroVPN is enabled.
google.protobuf.BoolValue enabled = 1;
string suffix = 2;
}
// MultiClusterConfig specifies the Configuration for Istio mesh across multiple clusters through the istio gateways.
message MultiClusterConfig {
// Enables the connection between two kubernetes clusters via their respective ingressgateway services.
// Use if the pods in each cluster cannot directly talk to one another.
google.protobuf.BoolValue enabled = 1;
// The name of the cluster this installation will run in. This is required for sidecar injection
// to properly label proxies
string clusterName = 2;
// The suffix for global service names.
string globalDomainSuffix = 3;
// Enable envoy filter to translate `globalDomainSuffix` to cluster local suffix for cross cluster communication.
google.protobuf.BoolValue includeEnvoyFilter = 4;
}
// OutboundTrafficPolicyConfig controls the default behavior of the sidecar for handling outbound traffic from the application.
message OutboundTrafficPolicyConfig {
// Specifies the sidecar's default behavior when handling outbound traffic from the application.
enum Mode {
// Outbound traffic to unknown destinations will be allowed, in case there are no services or ServiceEntries for the destination port
ALLOW_ANY = 0;
// Restrict outbound traffic to services defined in the service registry as well as those defined through ServiceEntries
REGISTRY_ONLY = 1;
}
Mode mode = 2;
}
// Configuration for Pilot.
message PilotConfig {
// Controls whether Pilot is enabled.
google.protobuf.BoolValue enabled = 1;
// Controls whether a HorizontalPodAutoscaler is installed for Pilot.
google.protobuf.BoolValue autoscaleEnabled = 2;
// Minimum number of replicas in the HorizontalPodAutoscaler for Pilot.
uint32 autoscaleMin = 3;
// Maximum number of replicas in the HorizontalPodAutoscaler for Pilot.
uint32 autoscaleMax = 4;
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior
google.protobuf.Struct autoscaleBehavior = 40;
// Number of replicas in the Pilot Deployment.
uint32 replicaCount = 5 [deprecated = true];
// Image name used for Pilot.
//
// This can be set either to image name if hub is also set, or can be set to the full hub:name string.
//
// Examples: custom-pilot, docker.io/someuser:custom-pilot
string image = 6;
// Trace sampling fraction.
//
// Used to set the fraction of time that traces are sampled. Higher values are more accurate but add CPU overhead.
//
// Allowed values: 0.0 to 1.0
double traceSampling = 8;
// K8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
Resources resources = 9 [deprecated = true];
// Namespace that the configuration management feature is installed into, if different from Pilot namespace.
string configNamespace = 10;
// Target CPU utilization used in HorizontalPodAutoscaler.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig cpu = 11 [deprecated = true];
// K8s node selector.
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
google.protobuf.Struct nodeSelector = 12 [deprecated = true];
// Maximum duration that a sidecar can be connected to a pilot.
//
// This setting balances out load across pilot instances, but adds some resource overhead.
//
// Examples: 300s, 30m, 1h
google.protobuf.Duration keepaliveMaxServerConnectionAge = 13;
// Labels that are added to Pilot deployment.
//
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
google.protobuf.Struct deploymentLabels = 14;
// Labels that are added to Pilot pods.
//
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
google.protobuf.Struct podLabels = 36;
// Configuration settings passed to Pilot as a ConfigMap.
//
// This controls whether the mesh config map, generated from values.yaml is generated.
// If false, pilot wil use default values or user-supplied values, in that order of preference.
google.protobuf.BoolValue configMap = 18;
// Controls whether Pilot is configured through the Mesh Control Protocol (MCP).
//
// If set to true, Pilot requires an MCP server (like Galley) to be installed.
google.protobuf.BoolValue useMCP = 20;
// Environment variables passed to the Pilot container.
//
// Examples:
// env:
// ENV_VAR_1: value1
// ENV_VAR_2: value2
google.protobuf.Struct env = 21;
// K8s affinity to set on the Pilot Pods.
k8s.io.api.core.v1.Affinity affinity = 22;
// K8s rolling update strategy
IntOrString rollingMaxSurge = 24 [deprecated = true];
// The number of pods that can be unavailable during a rolling update (see
// `strategy.rollingUpdate.maxUnavailable` here:
// https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec).
// May be specified as a number of pods or as a percent of the total number
// of pods at the start of the update.
IntOrString rollingMaxUnavailable = 25 [deprecated = true];
// The node tolerations to be applied to the Pilot deployment so that it can be
// scheduled to particular nodes with matching taints.
// More info: https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#scheduling
repeated k8s.io.api.core.v1.Toleration tolerations = 26 [deprecated = true];
// Specifies whether protocol sniffing is enabled for outbound traffic.
google.protobuf.BoolValue enableProtocolSniffingForOutbound = 28 [deprecated = true];
// Specifies whether protocol sniffing is enabled for inbound traffic.
google.protobuf.BoolValue enableProtocolSniffingForInbound = 29 [deprecated = true];
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
google.protobuf.Struct podAnnotations = 30 [deprecated = true];
// K8s annotations for the Service.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
google.protobuf.Struct serviceAnnotations = 37;
// K8s annotations for the service account
google.protobuf.Struct serviceAccountAnnotations = 56;
// ConfigSource describes a source of configuration data for networking
// rules, and other Istio configuration artifacts. Multiple data sources
// can be configured for a single control plane.
PilotConfigSource configSource = 31;
// Specifies an extra root certificate in PEM format. This certificate will be trusted
// by pilot when resolving JWKS URIs.
string jwksResolverExtraRootCA = 32;
// Hub to pull the container image from. Image will be `Hub/Image:Tag-Variant`.
string hub = 34;
// The container image tag to pull. Image will be `Hub/Image:Tag-Variant`.
google.protobuf.Value tag = 35;
// The container image variant to pull. Options are "debug" or "distroless". Unset will use the default for the given version.
string variant = 39;
// The seccompProfile for the Pilot container.
//
// See: https://kubernetes.io/docs/tutorials/security/seccomp/
k8s.io.api.core.v1.SeccompProfile seccompProfile = 38;
// The k8s topologySpreadConstraints for the Pilot pods.
repeated k8s.io.api.core.v1.TopologySpreadConstraint topologySpreadConstraints = 41;
// Additional container arguments for the Pilot container.
repeated google.protobuf.Struct extraContainerArgs = 42;
// Additional volumeMounts to add to the Pilot container.
repeated k8s.io.api.core.v1.VolumeMount volumeMounts = 49;
// Additional volumes to add to the Pilot Pod.
repeated k8s.io.api.core.v1.Volume volumes = 51;
// Defines which IP family to use for single stack or the order of IP families for dual-stack.
// Valid list items are "IPv4", "IPv6".
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
repeated string ipFamilies = 52;
// Controls whether Services are configured to use IPv4, IPv6, or both. Valid options
// are PreferDualStack, RequireDualStack, and SingleStack.
// More info: https://kubernetes.io/docs/concepts/services-networking/dual-stack/#services
string ipFamilyPolicy = 53;
// Target memory utilization used in HorizontalPodAutoscaler.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
TargetUtilizationConfig memory = 54 [deprecated = true];
// Configures whether to use an existing CNI installation for workloads
CNIUsageConfig cni = 55;
}
// Controls legacy k8s ingress. Only one pilot profile should enable ingress support.
message PilotIngressConfig {
// Sets the type ingress service for Pilot.
//
// If empty, node-port is assumed.
//
// Allowed values: node-port, istio-ingressgateway, ingress
string ingressService = 1;
ingressControllerMode ingressControllerMode = 2;
// If mode is STRICT, this value must be set on "kubernetes.io/ingress.class" annotation to activate.
string ingressClass = 3;
}
// Mode for the ingress controller.
enum ingressControllerMode {
// Unspecified Istio ingress controller.
UNSPECIFIED = 0;
// Selects all Ingress resources, with or without Istio annotation.
DEFAULT = 1;
// Selects only resources with istio annotation.
STRICT = 2;
// No ingress or sync.
OFF = 3;
}