/
values_types.proto
1131 lines (843 loc) · 36.8 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';
import "google/protobuf/duration.proto";
import "github.com/gogo/protobuf/protobuf/google/protobuf/wrappers.proto";
import "gogoproto/gogo.proto";
package v1alpha1;
// Package-wide variables from generator "generated".
option go_package = "v1alpha1";
option (gogoproto.marshaler_all) = false;
option (gogoproto.unmarshaler_all) = false;
option (gogoproto.sizer_all) = false;
// ArchConfig specifies the pod scheduling target architecture(amd64, ppc64le, s390x) 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;
}
// Configuration for CNI.
message CNIConfig {
// Controls whether CNI is enabled.
google.protobuf.BoolValue enabled = 1;
string hub = 2;
TypeInterface tag = 3;
string image = 4;
string pullPolicy = 5;
string cniBinDir = 6;
string cniConfDir = 7;
string cniConfFileName = 8;
repeated string excludeNamespaces = 9;
TypeMapStringInterface podAnnotations = 10 [deprecated=true];
string psp_cluster_role = 11;
string logLevel = 12;
CNIRepairConfig repair = 13;
google.protobuf.BoolValue chained = 14;
CNITaintConfig taint = 15;
}
message CNITaintConfig {
// Controls whether taint behavior is enabled.
google.protobuf.BoolValue enabled = 1;
}
message CNIRepairConfig {
// Controls whether repair behavior is enabled.
google.protobuf.BoolValue enabled = 1;
string hub = 2;
TypeInterface tag = 3;
string image = 4;
// Controls whether various repair behaviors are enabled.
bool labelPods = 5;
string createEvents = 6 [deprecated=true];
bool deletePods = 7;
string brokenPodLabelKey = 8;
string brokenPodLabelValue = 9;
string initContainerName = 10;
}
// Configuration for CPU target utilization for HorizontalPodAutoscaler target.
message CPUTargetUtilizationConfig {
// K8s utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
int32 targetAverageUtilization = 1;
}
// Mirrors Resources for unmarshaling.
message Resources {
map<string, string> limits = 1;
map<string, string> requests = 2;
}
// 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 utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
CPUTargetUtilizationConfig cpu = 5 [deprecated=true];
// Controls whether an egress gateway is enabled.
google.protobuf.BoolValue enabled = 7;
// Environment variables passed to the proxy container.
TypeMapStringInterface env = 8;
map<string, string> labels = 9;
string name = 25;
// K8s node selector.
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
TypeMapStringInterface nodeSelector = 10 [deprecated=true];
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
TypeMapStringInterface 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”.
TypeSliceOfMapStringInterface podAntiAffinityLabelSelector = 12 [deprecated=true];
// See PodAntiAffinityLabelSelector.
TypeSliceOfMapStringInterface 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.
TypeMapStringInterface 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;
TypeSliceOfMapStringInterface tolerations = 20 [deprecated=true];
// K8s rolling update strategy
TypeIntOrStringForPB rollingMaxSurge = 21 [deprecated=true];
// K8s rolling update strategy
TypeIntOrStringForPB rollingMaxUnavailable = 22 [deprecated=true];
TypeSliceOfMapStringInterface configVolumes = 23;
TypeSliceOfMapStringInterface 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;
// Next available 28.
}
// Configuration for gateways.
message GatewaysConfig {
// Configuration for an egress gateway.
EgressGatewayConfig istio_egressgateway = 1;
// Controls whether any gateways are enabled.
google.protobuf.BoolValue enabled = 2;
// Configuration for an ingress gateway.
IngressGatewayConfig istio_ingressgateway = 4;
}
// Global Configuration for Istio components.
message GlobalConfig {
// Specifies pod scheduling arch(amd64, ppc64le, s390x) 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];
string configRootNamespace = 50;
// Controls whether the server-side validation is enabled.
google.protobuf.BoolValue configValidation = 3;
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
TypeMapStringInterface 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];
TypeSliceOfMapStringInterface 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;
// ImagePullPolicy v1.PullPolicy `json:"imagePullPolicy,omitempty"`
repeated string imagePullSecrets = 37;
// Specifies the default namespace for the Istio control plane components.
string istioNamespace = 14;
google.protobuf.BoolValue logAsJson = 36;
// Specifies the global logging level settings for the Istio control plane components.
GlobalLoggingConfig logging = 17;
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
//
TypeMapStringInterface meshNetworks = 19;
// Specifies the Configuration for Istio mesh across multiple clusters through Istio gateways.
MultiClusterConfig multiCluster = 22;
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;
google.protobuf.BoolValue omitSidecarInjectorConfigMap = 38;
// Controls whether to restrict the applications namespace the controller manages;
// If set it to false, the controller watches all namespaces.
google.protobuf.BoolValue oneNamespace = 23;
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 proxyInit = 29;
// 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.
TypeInterface tag = 31;
// 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, two providers are supported: "kubernetes" and "citadel".
string pilotCertProvider = 56;
// Configure the policy for validating JWT.
// Currently, two options are supported: "third-party-jwt" and "first-party-jwt".
string jwtPolicy = 57;
// 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;
// The next available key is 64
}
// 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 utilization setting for HorizontalPodAutoscaler target.
//
// See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
CPUTargetUtilizationConfig 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.
TypeMapStringInterface 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
TypeMapStringInterface nodeSelector = 19 [deprecated=true];
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
TypeMapStringInterface podAnnotations = 20 [deprecated=true];
// See EgressGatewayConfig.
TypeSliceOfMapStringInterface podAntiAffinityLabelSelector = 21 [deprecated=true];
// See EgressGatewayConfig.
TypeSliceOfMapStringInterface 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
TypeMapStringInterface resources = 25 [deprecated=true];
// Config for secret volume mounts.
repeated SecretVolume secretVolumes = 27;
// Annotations to add to the egress gateway service.
TypeMapStringInterface 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
TypeIntOrStringForPB rollingMaxSurge = 31 [deprecated=true];
// K8s rolling update strategy
TypeIntOrStringForPB rollingMaxUnavailable = 32 [deprecated=true];
string externalTrafficPolicy = 34;
TypeSliceOfMapStringInterface tolerations = 35 [deprecated=true];
TypeSliceOfMapStringInterface ingressPorts = 36;
TypeSliceOfMapStringInterface additionalContainers = 37;
TypeSliceOfMapStringInterface 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;
// Next available 47.
}
// 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;
string clusterName = 2;
string globalDomainSuffix = 3;
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;
// 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/
CPUTargetUtilizationConfig cpu = 11 [deprecated=true];
// K8s node selector.
//
// See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
TypeMapStringInterface 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 pods.
//
// See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
TypeMapStringInterface deploymentLabels = 14;
// 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
TypeMapStringInterface env = 21;
// K8s rolling update strategy
TypeIntOrStringForPB rollingMaxSurge = 24 [deprecated=true];
// K8s rolling update strategy
TypeIntOrStringForPB rollingMaxUnavailable = 25 [deprecated=true];
//
TypeSliceOfMapStringInterface tolerations = 26 [deprecated=true];
// if protocol sniffing is enabled for outbound
google.protobuf.BoolValue enableProtocolSniffingForOutbound = 28;
// if protocol sniffing is enabled for inbound
google.protobuf.BoolValue enableProtocolSniffingForInbound = 29;
// K8s annotations for pods.
//
// See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
TypeMapStringInterface podAnnotations = 30 [deprecated=true];
// 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;
string jwksResolverExtraRootCA = 32;
TypeSliceString plugins = 33;
string hub = 34;
TypeInterface tag = 35;
}
// 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;
}
// Controls whether Istio policy is applied to Pilot.
message PilotPolicyConfig {
// Controls whether Istio policy is applied to Pilot.
google.protobuf.BoolValue enabled = 1;
}
// Controls telemetry configuration
message TelemetryConfig {
// Controls whether telemetry is exported for Pilot.
google.protobuf.BoolValue enabled = 1;
// Use telemetry v2.
TelemetryV2Config v2 = 3;
}
// Controls whether pilot will configure telemetry v2.
message TelemetryV2Config {
// Controls whether pilot will configure telemetry v2.
google.protobuf.BoolValue enabled = 1;
TelemetryV2MetadataExchangeConfig metadata_exchange = 4;
TelemetryV2PrometheusConfig prometheus = 2;
TelemetryV2StackDriverConfig stackdriver = 3;
TelemetryV2AccessLogPolicyFilterConfig access_log_policy = 5;
}
message TelemetryV2MetadataExchangeConfig {
// Controls whether enabled WebAssembly runtime for metadata exchange filter.
google.protobuf.BoolValue wasmEnabled = 2;
}
// Conrols telemetry v2 prometheus settings.
message TelemetryV2PrometheusConfig {
// Controls whether stats envoyfilter would be enabled or not.
google.protobuf.BoolValue enabled = 1;
// Controls whether enabled WebAssembly runtime for stats filter.
google.protobuf.BoolValue wasmEnabled = 2;
message ConfigOverride {
// Overrides default gateway telemetry v2 configuration.
TypeMapStringInterface gateway = 1;
// Overrides default inbound sidecar telemetry v2 configuration.
TypeMapStringInterface inboundSidecar = 2;
// Overrides default outbound sidecar telemetry v2 configuration.
TypeMapStringInterface outboundSidecar = 3;
}
// Overrides default telemetry v2 filter configuration.
ConfigOverride config_override = 3;
}
// Conrols telemetry v2 stackdriver settings.
message TelemetryV2StackDriverConfig {
// Types of Access logs to export.
enum AccessLogging {
// No Logs.
NONE = 0;
// All logs including both success and error logs.
FULL = 1;
// All error logs. This is currently only available for outbound/client side
// logs. A request is classified as error when `status>=400 or
// response_flag != "-"`
ERRORS_ONLY = 2;
};
google.protobuf.BoolValue enabled = 1;
google.protobuf.BoolValue logging = 2 [deprecated=true];
google.protobuf.BoolValue monitoring = 3;
google.protobuf.BoolValue topology = 4;
google.protobuf.BoolValue disableOutbound = 6;
TypeMapStringInterface configOverride = 5;
AccessLogging outboundAccessLogging = 7;
AccessLogging inboundAccessLogging = 8;
}
// Conrols telemetry v2 access log policy filter settings.
message TelemetryV2AccessLogPolicyFilterConfig {
google.protobuf.BoolValue enabled = 1;
google.protobuf.Duration logWindowDuration = 2;
}
// PilotConfigSource describes information about a configuration store inside a
// mesh. A single control plane instance can interact with one or more data
// sources.
message PilotConfigSource {
// Describes the source of configuration, if nothing is specified default is MCP.
repeated string subscribedResources = 1;
}
// Configuration for a port.
message PortsConfig {
// Port name.
string name = 1;
// Port number.
int32 port = 2;
// NodePort number.
int32 nodePort = 3;
// Target port number.
int32 targetPort = 4;
// Protocol name.
string protocol = 5;
}
// Configuration for Proxy.
message ProxyConfig {
string autoInject = 4;
// Domain for the cluster, default: "cluster.local".
//
// K8s allows this to be customized, see https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/
string clusterDomain = 5;
// Per Component log level for proxy, applies to gateways and sidecars.
//
// If a component level is not set, then the global "logLevel" will be used. If left empty, "misc:error" is used.
string componentLogLevel = 6;
// Enables core dumps for newly injected sidecars.
//
// If set, newly injected sidecars will have core dumps enabled.
google.protobuf.BoolValue enableCoreDump = 9;
// Specifies the Istio ingress ports not to capture.
string excludeInboundPorts = 12;
// Lists the excluded IP ranges of Istio egress traffic that the sidecar captures.
string excludeIPRanges = 13;
// Image name or path for the proxy, default: "proxyv2".
//
// If registry or tag are not specified, global.hub and global.tag are used.
//
// Examples: my-proxy (uses global.hub/tag), docker.io/myrepo/my-proxy:v1.0.0
string image = 14;
// Lists the IP ranges of Istio egress traffic that the sidecar captures.
//
// Example: "172.30.0.0/16,172.20.0.0/16"
// This would only capture egress traffic on those two IP Ranges, all other outbound traffic would # be allowed by the sidecar."
string includeIPRanges = 16;
// Log level for proxy, applies to gateways and sidecars. If left empty, "warning" is used. Expected values are: trace\|debug\|info\|warning\|error\|critical\|off
string logLevel = 18;
// Enables privileged securityContext for the istio-proxy container.
//
// See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
google.protobuf.BoolValue privileged = 19;
// Sets the initial delay for readiness probes in seconds.
uint32 readinessInitialDelaySeconds = 20;
// Sets the interval between readiness probes in seconds.
uint32 readinessPeriodSeconds = 21;
// Sets the number of successive failed probes before indicating readiness failure.
uint32 readinessFailureThreshold = 22;
// Default port used for the Pilot agent's health checks.
uint32 statusPort = 23;
// K8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
Resources resources = 24 [deprecated=true];
tracer tracer = 25;
string excludeOutboundPorts = 28;
TypeMapStringInterface lifecycle = 36;
// Controls if sidecar is injected at the front of the container list and blocks the start of the other containers until the proxy is ready
//
// Deprecated: replaced by ProxyConfig setting which allows per-pod configuration of this behavior.
google.protobuf.BoolValue holdApplicationUntilProxyStarts = 37 [deprecated=true];
}
// Specifies which tracer to use.
enum tracer {
zipkin = 0;
lightstep = 1;
datadog = 2;
stackdriver = 3;
openCensusAgent = 4;
}
// Configuration for proxy_init container which sets the pods' networking to intercept the inbound/outbound traffic.
message ProxyInitConfig {
// Specifies the image for the proxy_init container.
string image = 1;
// K8s resources settings.
//
// See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container
Resources resources = 5 [deprecated=true];
}
// Configuration for K8s resource requests.
message ResourcesRequestsConfig {
string cpu = 1;
string memory = 2;
}
// Configuration for the SecretDiscoveryService instead of using K8S secrets to mount the certificates.
message SDSConfig {
TypeMapStringInterface token = 5 [deprecated=true];
}
// Configuration for secret volume mounts.
//
// See https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets.
message SecretVolume {
string mountPath = 1;
string name = 2;
string secretName = 3;
}
// ServiceConfig is described in istio.io documentation.
message ServiceConfig {
TypeMapStringInterface annotations = 1;
uint32 externalPort = 2;
string name = 3;
string type = 18;
}
// SidecarInjectorConfig is described in istio.io documentation.
message SidecarInjectorConfig {
// Enables sidecar auto-injection in namespaces by default.
google.protobuf.BoolValue enableNamespacesByDefault = 2;
// Instructs Istio to not inject the sidecar on those pods, based on labels that are present in those pods.
//
// Annotations in the pods have higher precedence than the label selectors.
// Order of evaluation: Pod Annotations → NeverInjectSelector → AlwaysInjectSelector → Default Policy.
// See https://istio.io/docs/setup/kubernetes/additional-setup/sidecar-injection/#more-control-adding-exceptions
TypeSliceOfMapStringInterface neverInjectSelector = 11;
// See NeverInjectSelector.
TypeSliceOfMapStringInterface alwaysInjectSelector = 12;
// If true, webhook or istioctl injector will rewrite PodSpec for liveness health check to redirect request to sidecar. This makes liveness check work even when mTLS is enabled.
google.protobuf.BoolValue rewriteAppHTTPProbe = 16;
// injectedAnnotations are additional annotations that will be added to the pod spec after injection
// This is primarily to support PSP annotations.
TypeMapStringInterface injectedAnnotations = 19;
// Enable objectSelector to filter out pods with no need for sidecar before calling istio-sidecar-injector.
TypeMapStringInterface objectSelector = 21;
// Configure the injection url for sidecar injector webhook
string injectionURL = 22;
// Templates defines a set of custom injection templates that can be used. For example, defining:
//
// templates:
// hello: |
// metadata:
// labels:
// hello: world
//
// Then starting a pod with the `inject.istio.io/templates: hello` annotation, will result in the pod
// being injected with the hello=world labels.
// This is intended for advanced configuration only; most users should use the built in template
TypeMapStringInterface templates = 23;
// Default templates specifies a set of default templates that are used in sidecar injection.
// By default, a template `sidecar` is always provided, which contains the template of default sidecar.
// To inject other additional templates, define it using the `templates` option, and add it to
// the default templates list.
// For example:
// templates:
// hello: |
// metadata:
// labels:
// hello: world