From 5e6565a0b2bcae21f1a10ffd6759a17a8a4f5c7b Mon Sep 17 00:00:00 2001 From: Filip Brychta Date: Mon, 4 Nov 2024 11:53:40 +0100 Subject: [PATCH 1/4] Fixing issue with missing istiod-remote chart when adding new versions (#464) We are automatically adding new stable versions but not all of them contain istiod-remote chart. This change is adding the chart only for Istio 1.23 Signed-off-by: Filip Brychta --- hack/update-istio.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hack/update-istio.sh b/hack/update-istio.sh index b85508e7e..43d7efb43 100755 --- a/hack/update-istio.sh +++ b/hack/update-istio.sh @@ -26,6 +26,12 @@ VERSIONS_YAML_FILE=${VERSIONS_YAML_FILE:-"versions.yaml"} # The new entry will be placed immediately before the old one function add_stable_version() { echo "Adding new stable version: ${1}" + # we want to add the istiod-remote chart only for 1.23 + istiod_remote_line="" + if [[ ${1} == 1.23.* ]] + then + istiod_remote_line="\"https://istio-release.storage.googleapis.com/charts/istiod-remote-${1}.tgz\"," + fi template=$(cat <<-END { "name": "v${1}", @@ -35,7 +41,7 @@ function add_stable_version() { "charts": [ "https://istio-release.storage.googleapis.com/charts/base-${1}.tgz", "https://istio-release.storage.googleapis.com/charts/istiod-${1}.tgz", - "https://istio-release.storage.googleapis.com/charts/istiod-remote-${1}.tgz", + ${istiod_remote_line} "https://istio-release.storage.googleapis.com/charts/gateway-${1}.tgz", "https://istio-release.storage.googleapis.com/charts/cni-${1}.tgz", "https://istio-release.storage.googleapis.com/charts/ztunnel-${1}.tgz" @@ -43,6 +49,7 @@ function add_stable_version() { } END ) + # Insert the new key above the old one (https://stackoverflow.com/questions/74368503/is-it-possible-to-insert-an-element-into-a-middle-of-array-in-yaml-using-yq) # shellcheck disable=SC2016 yq -i '.versions |= ( From dddde57fbb2c0d4217c3a70fed0d479cf8458e48 Mon Sep 17 00:00:00 2001 From: Maxim Babushkin Date: Mon, 4 Nov 2024 15:34:40 +0200 Subject: [PATCH 2/4] Update version reference in docs guide (#465) Signed-off-by: Maxim Babushkin --- docs/README.md | 106 ++++++++++++++++++++++++++++++------------------- 1 file changed, 65 insertions(+), 41 deletions(-) diff --git a/docs/README.md b/docs/README.md index 828976cf5..367df9fe1 100644 --- a/docs/README.md +++ b/docs/README.md @@ -64,7 +64,7 @@ kind: Istio metadata: name: default spec: - version: v1.22.3 + version: v1.23.2 namespace: istio-system updateStrategy: type: InPlace @@ -98,7 +98,7 @@ kind: IstioCNI metadata: name: default spec: - version: v1.22.3 + version: v1.23.2 namespace: istio-cni values: cni: @@ -120,7 +120,7 @@ kind: RemoteIstio metadata: name: default spec: - version: v1.22.3 + version: v1.23.2 namespace: istio-system updateStrategy: type: InPlace @@ -231,7 +231,7 @@ spec: values: pilot: traceSampling: 0.1 - version: v1.23.0 + version: v1.23.2 ``` Note that the only field that was added is the `spec.version` field. There are a few situations however where the APIs are different and require different approaches to achieve the same outcome. @@ -288,7 +288,7 @@ Steps: namespace: istio-system updateStrategy: type: InPlace - version: v1.21.0 + version: v1.22.5 EOF ``` @@ -296,9 +296,10 @@ Steps: ```console $ kubectl get istio -n istio-system - NAME READY STATUS IN USE VERSION AGE - default True Healthy True v1.21.0 2m + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 0 default Healthy v1.22.5 23s ``` + Note: `IN USE` field shows as 0, as `Istio` is yet installed. 4. Create namespace `bookinfo` and deploy bookinfo application. @@ -309,27 +310,36 @@ Steps: ``` Note: if the `Istio` resource name is other than `default`, you need to set the `istio.io/rev` label to the name of the `Istio` resource instead of adding the `istio-injection=enabled` label. -5. Perform the update of the control plane by changing the version in the Istio resource. +5. Review the `Istio` resource after application deployment. + + ```console + $ kubectl get istio -n istio-system + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 1 default Healthy v1.22.5 115s + ``` + Note: `IN USE` field shows as 1, after application being deployed. + +6. Perform the update of the control plane by changing the version in the Istio resource. ```bash - kubectl patch istio default -n istio-system --type='merge' -p '{"spec":{"version":"v1.21.2"}}' + kubectl patch istio default -n istio-system --type='merge' -p '{"spec":{"version":"v1.23.2"}}' ``` -6. Confirm the `Istio` resource version was updated. +7. Confirm the `Istio` resource version was updated. ```console $ kubectl get istio -n istio-system - NAME REVISIONS READY IN USE ACTIVE REVISION VERSION AGE - default 1 1 1 Healthy v1.21.2 12m + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 1 default Healthy v1.23.2 4m50s ``` -7. Delete `bookinfo` pods to trigger sidecar injection with the new version. +8. Delete `bookinfo` pods to trigger sidecar injection with the new version. ```bash kubectl rollout restart deployment -n bookinfo ``` -8. Confirm that the new version is used in the sidecar. +9. Confirm that the new version is used in the sidecar. ```bash istioctl proxy-status @@ -366,7 +376,7 @@ Steps: updateStrategy: type: RevisionBased inactiveRevisionDeletionGracePeriodSeconds: 30 - version: v1.21.0 + version: v1.22.5 EOF ``` @@ -374,16 +384,17 @@ Steps: ```console $ kubectl get istio -n istio-system - NAME READY STATUS IN USE VERSION AGE - default True Healthy True v1.21.0 2m + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 0 default-v1-22-5 Healthy v1.22.5 52s ``` + Note: `IN USE` field shows as 0, as `Istio` is yet installed. 4. Get the `IstioRevision` name. ```console $ kubectl get istiorevision -n istio-system - NAME READY STATUS IN USE VERSION AGE - default-v1-21-0 True Healthy False v1.21.0 114s + NAME TYPE READY STATUS IN USE VERSION AGE + default-v1-22-5 Local True Healthy False v1.22.5 3m4s ``` Note: `IstioRevision` name is in the format `-`. @@ -391,7 +402,7 @@ Steps: ```bash kubectl create namespace bookinfo - kubectl label namespace bookinfo istio.io/rev=default-v1-21-0 + kubectl label namespace bookinfo istio.io/rev=default-v1-22-5 ``` 6. Deploy bookinfo application. @@ -400,78 +411,91 @@ Steps: kubectl apply -n bookinfo -f https://raw.githubusercontent.com/istio/istio/release-1.22/samples/bookinfo/platform/kube/bookinfo.yaml ``` -7. Confirm that the proxy version matches the control plane version. +7. Review the `Istio` resource after application deployment. + + ```console + $ kubectl get istio -n istio-system + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 1 default-v1-22-5 Healthy v1.22.5 5m13s + ``` + Note: `IN USE` field shows as 1, after application being deployed. + +8. Confirm that the proxy version matches the control plane version. ```bash istioctl proxy-status ``` The column `VERSION` should match the control plane version. -8. Update the control plane to a new version. +9. Update the control plane to a new version. ```bash - kubectl patch istio default -n istio-system --type='merge' -p '{"spec":{"version":"v1.21.2"}}' + kubectl patch istio default -n istio-system --type='merge' -p '{"spec":{"version":"v1.23.2"}}' ``` -9. Verify the `Istio` and `IstioRevision` resources. There will be a new revision created with the new version. +10. Verify the `Istio` and `IstioRevision` resources. There will be a new revision created with the new version. ```console $ kubectl get istio -n istio-system - NAME REVISIONS READY IN USE ACTIVE REVISION VERSION AGE - default 2 2 1 Healthy v1.21.2 23m + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 2 2 1 default-v1-23-2 Healthy v1.23.2 9m23s $ kubectl get istiorevision -n istio-system - NAME READY STATUS IN USE VERSION AGE - default-v1-21-0 True Healthy True v1.21.0 27m - default-v1-21-2 True Healthy False v1.21.2 4m45s + NAME TYPE READY STATUS IN USE VERSION AGE + default-v1-22-5 Local True Healthy True v1.22.5 10m + default-v1-23-2 Local True Healthy False v1.23.2 66s ``` -10. Confirm there are two control plane pods running, one for each revision. +11. Confirm there are two control plane pods running, one for each revision. ```console $ kubectl get pods -n istio-system NAME READY STATUS RESTARTS AGE - istiod-default-v1-21-0-69d6df7f9c-grm24 1/1 Running 0 28m - istiod-default-v1-21-2-7c4f4674c5-4g7n7 1/1 Running 0 6m9s + istiod-default-v1-22-5-c98fd9675-r7bfw 1/1 Running 0 10m + istiod-default-v1-23-2-7495cdc7bf-v8t4g 1/1 Running 0 113s ``` -11. Confirm the proxy sidecar version remains the same: +12. Confirm the proxy sidecar version remains the same: ```bash istioctl proxy-status ``` The column `VERSION` should still match the old control plane version. -12. Change the label of the `bookinfo` namespace to use the new revision. +13. Change the label of the `bookinfo` namespace to use the new revision. ```bash - kubectl label namespace bookinfo istio.io/rev=default-v1-21-2 --overwrite + kubectl label namespace bookinfo istio.io/rev=default-v1-23-2 --overwrite ``` The existing workload sidecars will continue to run and will remain connected to the old control plane instance. They will not be replaced with a new version until the pods are deleted and recreated. -13. Delete all the pods in the `bookinfo` namespace. +14. Delete all the pods in the `bookinfo` namespace. ```bash kubectl rollout restart deployment -n bookinfo ``` -14. Confirm the new version is used in the sidecars. +15. Confirm the new version is used in the sidecars. ```bash istioctl proxy-status ``` The column `VERSION` should match the updated control plane version. -15. Confirm the old control plane and revision deletion. +16. Confirm the old control plane and revision deletion. ```console $ kubectl get pods -n istio-system NAME READY STATUS RESTARTS AGE - istiod-default-v1-21-2-7c4f4674c5-4g7n7 1/1 Running 0 94m + istiod-default-v1-23-2-7495cdc7bf-v8t4g 1/1 Running 0 4m40s + + $ kubectl get istio -n istio-system + NAME REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE + default 1 1 1 default-v1-23-2 Healthy v1.23.2 5m $ kubectl get istiorevision -n istio-system - NAME READY STATUS IN USE VERSION AGE - default-v1-21-2 True Healthy True v1.21.2 94m + NAME TYPE READY STATUS IN USE VERSION AGE + default-v1-23-2 Local True Healthy True v1.23.2 5m31s ``` The old `IstioRevision` resource and the old control plane will be deleted when the grace period specified in the `Istio` resource field `spec.updateStrategy.inactiveRevisionDeletionGracePeriodSeconds` expires. From 66b4166d30c752001395d8b83ac75cf0e5f73b97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Luk=C5=A1a?= Date: Tue, 5 Nov 2024 14:12:42 +0100 Subject: [PATCH 3/4] Remove RemoteIstio resource (#461) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove RemoteIstio resource In latest versions of Istio, the istiod-remote chart has been removed. Instead, users deploy the regular istiod chart, but set the profile to `remote`. Signed-off-by: Marko Lukša * Clean up resources created by istioctl create-remote-secret Signed-off-by: Marko Lukša --------- Signed-off-by: Marko Lukša --- PROJECT | 8 - api/v1alpha1/istio_types.go | 7 +- api/v1alpha1/istiocni_types.go | 4 +- api/v1alpha1/istiorevision_types.go | 15 - api/v1alpha1/remoteistio_types.go | 217 - api/v1alpha1/zz_generated.deepcopy.go | 123 - .../sailoperator.clusterserviceversion.yaml | 78 +- .../manifests/sailoperator.io_istiocnis.yaml | 3 +- .../sailoperator.io_istiorevisions.yaml | 9 - bundle/manifests/sailoperator.io_istios.yaml | 3 +- .../sailoperator.io_remoteistios.yaml | 9528 ----------------- chart/crds/sailoperator.io_istiocnis.yaml | 3 +- .../crds/sailoperator.io_istiorevisions.yaml | 9 - chart/crds/sailoperator.io_istios.yaml | 3 +- chart/crds/sailoperator.io_remoteistios.yaml | 9522 ---------------- chart/samples/remoteistio-sample.yaml | 15 - cmd/main.go | 8 - controllers/istio/istio_controller.go | 3 +- .../istiorevision/istiorevision_controller.go | 37 +- .../istiorevision_controller_test.go | 52 +- .../remoteistio/remoteistio_controller.go | 315 - .../remoteistio_controller_test.go | 927 -- controllers/webhook/webhook_controller.go | 36 +- .../webhook/webhook_controller_test.go | 16 +- docs/README.md | 47 +- docs/api-reference/sailoperator.io.md | 172 +- hack/download-charts.sh | 3 - hack/update-profiles-list.sh | 2 +- hack/update-version-list.sh | 2 +- pkg/constants/constants.go | 4 + pkg/revision/reconcile.go | 4 +- pkg/revision/reconcile_test.go | 3 +- pkg/revision/remote.go | 25 + pkg/version/semverutils.go | 27 + pkg/version/semverutils_test.go | 34 + resources/latest/profiles/remote.yaml | 7 + resources/v1.21.6/profiles/remote.yaml | 5 + resources/v1.22.5/profiles/remote.yaml | 5 + resources/v1.23.2/profiles/remote.yaml | 5 + .../multicluster_primaryremote_test.go | 54 +- tests/integration/api/istio_test.go | 2 - tests/integration/api/istiorevision_test.go | 7 - tests/integration/api/suite_test.go | 2 - 43 files changed, 225 insertions(+), 21126 deletions(-) delete mode 100644 api/v1alpha1/remoteistio_types.go delete mode 100644 bundle/manifests/sailoperator.io_remoteistios.yaml delete mode 100644 chart/crds/sailoperator.io_remoteistios.yaml delete mode 100644 chart/samples/remoteistio-sample.yaml delete mode 100644 controllers/remoteistio/remoteistio_controller.go delete mode 100644 controllers/remoteistio/remoteistio_controller_test.go create mode 100644 pkg/revision/remote.go create mode 100644 pkg/version/semverutils.go create mode 100644 pkg/version/semverutils_test.go create mode 100644 resources/latest/profiles/remote.yaml create mode 100644 resources/v1.21.6/profiles/remote.yaml create mode 100644 resources/v1.22.5/profiles/remote.yaml create mode 100644 resources/v1.23.2/profiles/remote.yaml diff --git a/PROJECT b/PROJECT index 8dd5f649d..54844738f 100644 --- a/PROJECT +++ b/PROJECT @@ -19,14 +19,6 @@ resources: kind: Istio path: github.com/istio-ecosystem/sail-operator/api/v1alpha1 version: v1alpha1 -- api: - crdVersion: v1 - namespaced: false - controller: true - domain: sailoperator.io - kind: RemoteIstio - path: github.com/istio-ecosystem/sail-operator/api/v1alpha1 - version: v1alpha1 - api: crdVersion: v1 namespaced: false diff --git a/api/v1alpha1/istio_types.go b/api/v1alpha1/istio_types.go index b5a4f766a..a4c267f73 100644 --- a/api/v1alpha1/istio_types.go +++ b/api/v1alpha1/istio_types.go @@ -51,10 +51,10 @@ type IstioSpec struct { // +sail:profile // The built-in installation configuration profile to use. // The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - // Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + // Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. // +++PROFILES-DROPDOWN-HIDDEN-UNTIL-WE-FULLY-IMPLEMENT-THEM+++operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Profile",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:ambient", "urn:alm:descriptor:com.tectonic.ui:select:default", "urn:alm:descriptor:com.tectonic.ui:select:demo", "urn:alm:descriptor:com.tectonic.ui:select:empty", "urn:alm:descriptor:com.tectonic.ui:select:external", "urn:alm:descriptor:com.tectonic.ui:select:minimal", "urn:alm:descriptor:com.tectonic.ui:select:preview", "urn:alm:descriptor:com.tectonic.ui:select:remote"} // +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:hidden"} - // +kubebuilder:validation:Enum=ambient;default;demo;empty;external;openshift-ambient;openshift;preview;stable + // +kubebuilder:validation:Enum=ambient;default;demo;empty;external;openshift-ambient;openshift;preview;remote;stable Profile string `json:"profile,omitempty"` // Namespace to which the Istio components should be installed. Note that this field is immutable. @@ -227,6 +227,9 @@ const ( // IstioReasonIstiodNotReady indicates that the control plane is fully reconciled, but istiod is not ready. IstioReasonIstiodNotReady IstioConditionReason = "IstiodNotReady" + // IstioReasonRemoteIstiodNotReady indicates that the control plane is fully reconciled, but the remote istiod is not ready. + IstioReasonRemoteIstiodNotReady IstioConditionReason = "RemoteIstiodNotReady" + // IstioReasonReadinessCheckFailed indicates that readiness could not be ascertained. IstioReasonReadinessCheckFailed IstioConditionReason = "ReadinessCheckFailed" ) diff --git a/api/v1alpha1/istiocni_types.go b/api/v1alpha1/istiocni_types.go index 535af7237..3aefa2829 100644 --- a/api/v1alpha1/istiocni_types.go +++ b/api/v1alpha1/istiocni_types.go @@ -37,10 +37,10 @@ type IstioCNISpec struct { // +sail:profile // The built-in installation configuration profile to use. // The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - // Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + // Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. // +++PROFILES-DROPDOWN-HIDDEN-UNTIL-WE-FULLY-IMPLEMENT-THEM+++operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Profile",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:ambient", "urn:alm:descriptor:com.tectonic.ui:select:default", "urn:alm:descriptor:com.tectonic.ui:select:demo", "urn:alm:descriptor:com.tectonic.ui:select:empty", "urn:alm:descriptor:com.tectonic.ui:select:external", "urn:alm:descriptor:com.tectonic.ui:select:minimal", "urn:alm:descriptor:com.tectonic.ui:select:preview", "urn:alm:descriptor:com.tectonic.ui:select:remote"} // +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:hidden"} - // +kubebuilder:validation:Enum=ambient;default;demo;empty;external;openshift-ambient;openshift;preview;stable + // +kubebuilder:validation:Enum=ambient;default;demo;empty;external;openshift-ambient;openshift;preview;remote;stable Profile string `json:"profile,omitempty"` // Namespace to which the Istio CNI component should be installed. diff --git a/api/v1alpha1/istiorevision_types.go b/api/v1alpha1/istiorevision_types.go index 4c3347e47..fb9c765cf 100644 --- a/api/v1alpha1/istiorevision_types.go +++ b/api/v1alpha1/istiorevision_types.go @@ -28,11 +28,6 @@ const ( // IstioRevisionSpec defines the desired state of IstioRevision // +kubebuilder:validation:XValidation:rule="self.values.global.istioNamespace == self.__namespace__",message="spec.values.global.istioNamespace must match spec.namespace" type IstioRevisionSpec struct { - // Type indicates whether this revision represents a local or a remote control plane installation. - // +kubebuilder:default=Local - // +kubebuilder:validation:XValidation:rule="self == oldSelf",message="Value is immutable" - Type IstioRevisionType `json:"type"` - // +sail:version // Defines the version of Istio to install. // Must be one of: v1.23.2, v1.22.5, v1.21.6, latest. @@ -178,16 +173,6 @@ const ( IstioRevisionReasonHealthy IstioRevisionConditionReason = "Healthy" ) -type IstioRevisionType string - -const ( - // IstioRevisionTypeLocal indicates that the revision represents a local control plane installation. - IstioRevisionTypeLocal IstioRevisionType = "Local" - - // IstioRevisionTypeRemote indicates that the revision represents a remote control plane installation. - IstioRevisionTypeRemote IstioRevisionType = "Remote" -) - // +kubebuilder:object:root=true // +kubebuilder:resource:scope=Cluster,shortName=istiorev,categories=istio-io // +kubebuilder:subresource:status diff --git a/api/v1alpha1/remoteistio_types.go b/api/v1alpha1/remoteistio_types.go deleted file mode 100644 index 463906896..000000000 --- a/api/v1alpha1/remoteistio_types.go +++ /dev/null @@ -1,217 +0,0 @@ -// 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. - -package v1alpha1 - -import ( - "time" - - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" -) - -const RemoteIstioKind = "RemoteIstio" - -// RemoteIstioSpec defines the desired state of RemoteIstio -// +kubebuilder:validation:XValidation:rule="!has(self.values) || !has(self.values.global) || !has(self.values.global.istioNamespace) || self.values.global.istioNamespace == self.__namespace__",message="spec.values.global.istioNamespace must match spec.namespace" -type RemoteIstioSpec struct { - // +sail:version - // Defines the version of Istio to install. - // Must be one of: v1.23.2, v1.22.5, v1.21.6, latest. - // +operator-sdk:csv:customresourcedefinitions:type=spec,order=1,displayName="Istio Version",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:v1.23.2", "urn:alm:descriptor:com.tectonic.ui:select:v1.22.5", "urn:alm:descriptor:com.tectonic.ui:select:v1.21.6", "urn:alm:descriptor:com.tectonic.ui:select:latest"} - // +kubebuilder:validation:Enum=v1.23.2;v1.22.5;v1.21.6;latest - // +kubebuilder:default=v1.23.2 - Version string `json:"version"` - - // Defines the update strategy to use when the version in the RemoteIstio CR is updated. - // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Update Strategy" - // +kubebuilder:default={type: "InPlace"} - UpdateStrategy *IstioUpdateStrategy `json:"updateStrategy,omitempty"` - - // +sail:profile - // The built-in installation configuration profile to use. - // The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - // Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. - // +++PROFILES-DROPDOWN-HIDDEN-UNTIL-WE-FULLY-IMPLEMENT-THEM+++operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Profile",xDescriptors={"urn:alm:descriptor:com.tectonic.ui:fieldGroup:General", "urn:alm:descriptor:com.tectonic.ui:select:ambient", "urn:alm:descriptor:com.tectonic.ui:select:default", "urn:alm:descriptor:com.tectonic.ui:select:demo", "urn:alm:descriptor:com.tectonic.ui:select:empty", "urn:alm:descriptor:com.tectonic.ui:select:external", "urn:alm:descriptor:com.tectonic.ui:select:minimal", "urn:alm:descriptor:com.tectonic.ui:select:preview", "urn:alm:descriptor:com.tectonic.ui:select:remote"} - // +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:com.tectonic.ui:hidden"} - // +kubebuilder:validation:Enum=ambient;default;demo;empty;external;openshift-ambient;openshift;preview;stable - Profile string `json:"profile,omitempty"` - - // Namespace to which the Istio components should be installed. - // +operator-sdk:csv:customresourcedefinitions:type=spec,xDescriptors={"urn:alm:descriptor:io.kubernetes:Namespace"} - // +kubebuilder:default=istio-system - Namespace string `json:"namespace"` - - // Defines the values to be passed to the Helm charts when installing Istio. - // +operator-sdk:csv:customresourcedefinitions:type=spec,displayName="Helm Values" - Values *Values `json:"values,omitempty"` -} - -// RemoteIstioStatus defines the observed state of RemoteIstio -type RemoteIstioStatus struct { - // ObservedGeneration is the most recent generation observed for this - // RemoteIstio object. It corresponds to the object's generation, which is - // updated on mutation by the API Server. The information in the status - // pertains to this particular generation of the object. - ObservedGeneration int64 `json:"observedGeneration,omitempty"` - - // Represents the latest available observations of the object's current state. - Conditions []RemoteIstioCondition `json:"conditions,omitempty"` - - // Reports the current state of the object. - State RemoteIstioConditionReason `json:"state,omitempty"` - - // The name of the active revision. - ActiveRevisionName string `json:"activeRevisionName,omitempty"` - - // Reports information about the underlying IstioRevisions. - Revisions RevisionSummary `json:"revisions,omitempty"` -} - -// GetCondition returns the condition of the specified type -func (s *RemoteIstioStatus) GetCondition(conditionType RemoteIstioConditionType) RemoteIstioCondition { - if s != nil { - for i := range s.Conditions { - if s.Conditions[i].Type == conditionType { - return s.Conditions[i] - } - } - } - return RemoteIstioCondition{Type: conditionType, Status: metav1.ConditionUnknown} -} - -// SetCondition sets a specific condition in the list of conditions -func (s *RemoteIstioStatus) SetCondition(condition RemoteIstioCondition) { - var now time.Time - if testTime == nil { - now = time.Now() - } else { - now = *testTime - } - - // The lastTransitionTime only gets serialized out to the second. This can - // break update skipping, as the time in the resource returned from the client - // may not match the time in our cached status during a reconcile. We truncate - // here to save any problems down the line. - lastTransitionTime := metav1.NewTime(now.Truncate(time.Second)) - - for i, prevCondition := range s.Conditions { - if prevCondition.Type == condition.Type { - if prevCondition.Status != condition.Status { - condition.LastTransitionTime = lastTransitionTime - } else { - condition.LastTransitionTime = prevCondition.LastTransitionTime - } - s.Conditions[i] = condition - return - } - } - - // If the condition does not exist, initialize the lastTransitionTime - condition.LastTransitionTime = lastTransitionTime - s.Conditions = append(s.Conditions, condition) -} - -// RemoteIstioCondition represents a specific observation of the RemoteIstioCondition object's state. -type RemoteIstioCondition struct { - // The type of this condition. - Type RemoteIstioConditionType `json:"type,omitempty"` - - // The status of this condition. Can be True, False or Unknown. - Status metav1.ConditionStatus `json:"status,omitempty"` - - // Unique, single-word, CamelCase reason for the condition's last transition. - Reason RemoteIstioConditionReason `json:"reason,omitempty"` - - // Human-readable message indicating details about the last transition. - Message string `json:"message,omitempty"` - - // Last time the condition transitioned from one status to another. - LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` -} - -// RemoteIstioConditionType represents the type of the condition. Condition stages are: -// Installed, Reconciled, Ready -type RemoteIstioConditionType string - -// RemoteIstioConditionReason represents a short message indicating how the condition came -// to be in its present state. -type RemoteIstioConditionReason string - -const ( - // RemoteIstioConditionReconciled signifies whether the controller has - // successfully reconciled the resources defined through the CR. - RemoteIstioConditionReconciled RemoteIstioConditionType = "Reconciled" - - // RemoteIstioReasonReconcileError indicates that the reconciliation of the resource has failed, but will be retried. - RemoteIstioReasonReconcileError RemoteIstioConditionReason = "ReconcileError" -) - -const ( - // RemoteIstioConditionReady signifies whether any Deployment, StatefulSet, - // etc. resources are Ready. - RemoteIstioConditionReady RemoteIstioConditionType = "Ready" - - // RemoteIstioReasonRevisionNotFound indicates that the active IstioRevision is not found. - RemoteIstioReasonRevisionNotFound RemoteIstioConditionReason = "ActiveRevisionNotFound" - - // RemoteIstioReasonFailedToGetActiveRevision indicates that a failure occurred when getting the active IstioRevision - RemoteIstioReasonFailedToGetActiveRevision RemoteIstioConditionReason = "FailedToGetActiveRevision" - - // RemoteIstioReasonIstiodNotReady indicates that the control plane is fully reconciled, but istiod is not ready. - RemoteIstioReasonIstiodNotReady RemoteIstioConditionReason = "IstiodNotReady" - - // RemoteIstioReasonReadinessCheckFailed indicates that readiness could not be ascertained. - RemoteIstioReasonReadinessCheckFailed RemoteIstioConditionReason = "ReadinessCheckFailed" -) - -const ( - // RemoteIstioReasonHealthy indicates that the control plane is fully reconciled and that all components are ready. - RemoteIstioReasonHealthy RemoteIstioConditionReason = "Healthy" -) - -// +kubebuilder:object:root=true -// +kubebuilder:resource:scope=Cluster,categories=istio-io -// +kubebuilder:subresource:status -// +kubebuilder:printcolumn:name="Revisions",type="string",JSONPath=".status.revisions.total",description="Total number of IstioRevision objects currently associated with this object." -// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.revisions.ready",description="Number of revisions that are ready." -// +kubebuilder:printcolumn:name="In use",type="string",JSONPath=".status.revisions.inUse",description="Number of revisions that are currently being used by workloads." -// +kubebuilder:printcolumn:name="Active Revision",type="string",JSONPath=".status.activeRevisionName",description="The name of the currently active revision." -// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.state",description="The current state of the active revision." -// +kubebuilder:printcolumn:name="Version",type="string",JSONPath=".spec.version",description="The version of the control plane installation." -// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="The age of the object" - -// RemoteIstio represents a remote Istio Service Mesh deployment consisting of one or more -// remote control plane instances (represented by one or more IstioRevision objects). -type RemoteIstio struct { - metav1.TypeMeta `json:",inline"` - metav1.ObjectMeta `json:"metadata,omitempty"` - - // +kubebuilder:default={version: "v1.23.2", namespace: "istio-system", updateStrategy: {type:"InPlace"}} - Spec RemoteIstioSpec `json:"spec,omitempty"` - - Status RemoteIstioStatus `json:"status,omitempty"` -} - -// +kubebuilder:object:root=true - -// RemoteIstioList contains a list of RemoteIstio -type RemoteIstioList struct { - metav1.TypeMeta `json:",inline"` - metav1.ListMeta `json:"metadata,omitempty"` - Items []RemoteIstio `json:"items"` -} - -func init() { - SchemeBuilder.Register(&RemoteIstio{}, &RemoteIstioList{}) -} diff --git a/api/v1alpha1/zz_generated.deepcopy.go b/api/v1alpha1/zz_generated.deepcopy.go index 6587fcd95..a4261bfe4 100644 --- a/api/v1alpha1/zz_generated.deepcopy.go +++ b/api/v1alpha1/zz_generated.deepcopy.go @@ -4061,129 +4061,6 @@ func (in *ProxyInitConfig) DeepCopy() *ProxyInitConfig { return out } -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RemoteIstio) DeepCopyInto(out *RemoteIstio) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteIstio. -func (in *RemoteIstio) DeepCopy() *RemoteIstio { - if in == nil { - return nil - } - out := new(RemoteIstio) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RemoteIstio) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RemoteIstioCondition) DeepCopyInto(out *RemoteIstioCondition) { - *out = *in - in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime) -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteIstioCondition. -func (in *RemoteIstioCondition) DeepCopy() *RemoteIstioCondition { - if in == nil { - return nil - } - out := new(RemoteIstioCondition) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RemoteIstioList) DeepCopyInto(out *RemoteIstioList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]RemoteIstio, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteIstioList. -func (in *RemoteIstioList) DeepCopy() *RemoteIstioList { - if in == nil { - return nil - } - out := new(RemoteIstioList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *RemoteIstioList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RemoteIstioSpec) DeepCopyInto(out *RemoteIstioSpec) { - *out = *in - if in.UpdateStrategy != nil { - in, out := &in.UpdateStrategy, &out.UpdateStrategy - *out = new(IstioUpdateStrategy) - (*in).DeepCopyInto(*out) - } - if in.Values != nil { - in, out := &in.Values, &out.Values - *out = new(Values) - (*in).DeepCopyInto(*out) - } -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteIstioSpec. -func (in *RemoteIstioSpec) DeepCopy() *RemoteIstioSpec { - if in == nil { - return nil - } - out := new(RemoteIstioSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *RemoteIstioStatus) DeepCopyInto(out *RemoteIstioStatus) { - *out = *in - if in.Conditions != nil { - in, out := &in.Conditions, &out.Conditions - *out = make([]RemoteIstioCondition, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - out.Revisions = in.Revisions -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteIstioStatus. -func (in *RemoteIstioStatus) DeepCopy() *RemoteIstioStatus { - if in == nil { - return nil - } - out := new(RemoteIstioStatus) - in.DeepCopyInto(out) - return out -} - // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *RemoteService) DeepCopyInto(out *RemoteService) { *out = *in diff --git a/bundle/manifests/sailoperator.clusterserviceversion.yaml b/bundle/manifests/sailoperator.clusterserviceversion.yaml index a59ecf718..445147a99 100644 --- a/bundle/manifests/sailoperator.clusterserviceversion.yaml +++ b/bundle/manifests/sailoperator.clusterserviceversion.yaml @@ -34,7 +34,7 @@ metadata: capabilities: Seamless Upgrades categories: OpenShift Optional, Integration & Delivery, Networking, Security containerImage: quay.io/maistra-dev/sail-operator:0.2-latest - createdAt: "2024-10-23T05:05:30Z" + createdAt: "2024-10-31T13:13:52Z" description: Experimental operator for installing Istio service mesh features.operators.openshift.io/cnf: "false" features.operators.openshift.io/cni: "true" @@ -177,7 +177,7 @@ spec: - description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. displayName: Profile path: profile x-descriptors: @@ -281,7 +281,7 @@ spec: - description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. displayName: Profile path: profile x-descriptors: @@ -295,78 +295,6 @@ spec: displayName: Helm Values path: values version: v1alpha1 - - description: |- - RemoteIstio represents a remote Istio Service Mesh deployment consisting of one or more - remote control plane instances (represented by one or more IstioRevision objects). - displayName: Remote Istio - kind: RemoteIstio - name: remoteistios.sailoperator.io - specDescriptors: - - description: "Type of strategy to use. Can be \"InPlace\" or \"RevisionBased\". - When the \"InPlace\" strategy\nis used, the existing Istio control plane - is updated in-place. The workloads therefore\ndon't need to be moved from - one control plane instance to another. When the \"RevisionBased\"\nstrategy - is used, a new Istio control plane instance is created for every change - to the\nIstio.spec.version field. The old control plane remains in place - until all workloads have\nbeen moved to the new control plane instance.\n\n\nThe - \"InPlace\" strategy is the default.\tTODO: change default to \"RevisionBased\"" - displayName: Type - path: updateStrategy.type - x-descriptors: - - urn:alm:descriptor:com.tectonic.ui:select:InPlace - - urn:alm:descriptor:com.tectonic.ui:select:RevisionBased - - description: |- - Defines the version of Istio to install. - Must be one of: v1.23.2, v1.22.5, v1.21.6, latest. - displayName: Istio Version - path: version - x-descriptors: - - urn:alm:descriptor:com.tectonic.ui:fieldGroup:General - - urn:alm:descriptor:com.tectonic.ui:select:v1.23.2 - - urn:alm:descriptor:com.tectonic.ui:select:v1.22.5 - - urn:alm:descriptor:com.tectonic.ui:select:v1.21.6 - - urn:alm:descriptor:com.tectonic.ui:select:latest - - description: |- - Defines how many seconds the operator should wait before removing a non-active revision after all - the workloads have stopped using it. You may want to set this value on the order of minutes. - The minimum is 0 and the default value is 30. - displayName: Inactive Revision Deletion Grace Period (seconds) - path: updateStrategy.inactiveRevisionDeletionGracePeriodSeconds - x-descriptors: - - urn:alm:descriptor:com.tectonic.ui:number - - description: |- - Defines whether the workloads should be moved from one control plane instance to another - automatically. If updateWorkloads is true, the operator moves the workloads from the old - control plane instance to the new one after the new control plane is ready. - If updateWorkloads is false, the user must move the workloads manually by updating the - istio.io/rev labels on the namespace and/or the pods. - Defaults to false. - displayName: Update Workloads Automatically - path: updateStrategy.updateWorkloads - x-descriptors: - - urn:alm:descriptor:com.tectonic.ui:booleanSwitch - - description: Namespace to which the Istio components should be installed. - displayName: Namespace - path: namespace - x-descriptors: - - urn:alm:descriptor:io.kubernetes:Namespace - - description: |- - The built-in installation configuration profile to use. - The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. - displayName: Profile - path: profile - x-descriptors: - - urn:alm:descriptor:com.tectonic.ui:hidden - - description: Defines the update strategy to use when the version in the RemoteIstio - CR is updated. - displayName: Update Strategy - path: updateStrategy - - description: Defines the values to be passed to the Helm charts when installing - Istio. - displayName: Helm Values - path: values - version: v1alpha1 description: |- This is an experimental operator for installing Istio service mesh. diff --git a/bundle/manifests/sailoperator.io_istiocnis.yaml b/bundle/manifests/sailoperator.io_istiocnis.yaml index c6c600566..ed0915fcd 100644 --- a/bundle/manifests/sailoperator.io_istiocnis.yaml +++ b/bundle/manifests/sailoperator.io_istiocnis.yaml @@ -70,7 +70,7 @@ spec: description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. enum: - ambient - default @@ -80,6 +80,7 @@ spec: - openshift-ambient - openshift - preview + - remote - stable type: string values: diff --git a/bundle/manifests/sailoperator.io_istiorevisions.yaml b/bundle/manifests/sailoperator.io_istiorevisions.yaml index 65dda4561..29d602daf 100644 --- a/bundle/manifests/sailoperator.io_istiorevisions.yaml +++ b/bundle/manifests/sailoperator.io_istiorevisions.yaml @@ -78,14 +78,6 @@ spec: x-kubernetes-validations: - message: Value is immutable rule: self == oldSelf - type: - default: Local - description: Type indicates whether this revision represents a local - or a remote control plane installation. - type: string - x-kubernetes-validations: - - message: Value is immutable - rule: self == oldSelf values: description: Defines the values to be passed to the Helm charts when installing Istio. @@ -9389,7 +9381,6 @@ spec: type: string required: - namespace - - type - version type: object x-kubernetes-validations: diff --git a/bundle/manifests/sailoperator.io_istios.yaml b/bundle/manifests/sailoperator.io_istios.yaml index f5e82d277..61a82141b 100644 --- a/bundle/manifests/sailoperator.io_istios.yaml +++ b/bundle/manifests/sailoperator.io_istios.yaml @@ -95,7 +95,7 @@ spec: description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. enum: - ambient - default @@ -105,6 +105,7 @@ spec: - openshift-ambient - openshift - preview + - remote - stable type: string updateStrategy: diff --git a/bundle/manifests/sailoperator.io_remoteistios.yaml b/bundle/manifests/sailoperator.io_remoteistios.yaml deleted file mode 100644 index a0a4ab8c3..000000000 --- a/bundle/manifests/sailoperator.io_remoteistios.yaml +++ /dev/null @@ -1,9528 +0,0 @@ -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.16.4 - creationTimestamp: null - name: remoteistios.sailoperator.io -spec: - group: sailoperator.io - names: - categories: - - istio-io - kind: RemoteIstio - listKind: RemoteIstioList - plural: remoteistios - singular: remoteistio - scope: Cluster - versions: - - additionalPrinterColumns: - - description: Total number of IstioRevision objects currently associated with - this object. - jsonPath: .status.revisions.total - name: Revisions - type: string - - description: Number of revisions that are ready. - jsonPath: .status.revisions.ready - name: Ready - type: string - - description: Number of revisions that are currently being used by workloads. - jsonPath: .status.revisions.inUse - name: In use - type: string - - description: The name of the currently active revision. - jsonPath: .status.activeRevisionName - name: Active Revision - type: string - - description: The current state of the active revision. - jsonPath: .status.state - name: Status - type: string - - description: The version of the control plane installation. - jsonPath: .spec.version - name: Version - type: string - - description: The age of the object - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1alpha1 - schema: - openAPIV3Schema: - description: |- - RemoteIstio represents a remote Istio Service Mesh deployment consisting of one or more - remote control plane instances (represented by one or more IstioRevision objects). - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - default: - namespace: istio-system - updateStrategy: - type: InPlace - version: v1.23.2 - description: RemoteIstioSpec defines the desired state of RemoteIstio - properties: - namespace: - default: istio-system - description: Namespace to which the Istio components should be installed. - type: string - profile: - description: |- - The built-in installation configuration profile to use. - The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. - enum: - - ambient - - default - - demo - - empty - - external - - openshift-ambient - - openshift - - preview - - stable - type: string - updateStrategy: - default: - type: InPlace - description: Defines the update strategy to use when the version in - the RemoteIstio CR is updated. - properties: - inactiveRevisionDeletionGracePeriodSeconds: - description: |- - Defines how many seconds the operator should wait before removing a non-active revision after all - the workloads have stopped using it. You may want to set this value on the order of minutes. - The minimum is 0 and the default value is 30. - format: int64 - minimum: 0 - type: integer - type: - default: InPlace - description: "Type of strategy to use. Can be \"InPlace\" or \"RevisionBased\". - When the \"InPlace\" strategy\nis used, the existing Istio control - plane is updated in-place. The workloads therefore\ndon't need - to be moved from one control plane instance to another. When - the \"RevisionBased\"\nstrategy is used, a new Istio control - plane instance is created for every change to the\nIstio.spec.version - field. The old control plane remains in place until all workloads - have\nbeen moved to the new control plane instance.\n\nThe \"InPlace\" - strategy is the default.\tTODO: change default to \"RevisionBased\"" - enum: - - InPlace - - RevisionBased - type: string - updateWorkloads: - description: |- - Defines whether the workloads should be moved from one control plane instance to another - automatically. If updateWorkloads is true, the operator moves the workloads from the old - control plane instance to the new one after the new control plane is ready. - If updateWorkloads is false, the user must move the workloads manually by updating the - istio.io/rev labels on the namespace and/or the pods. - Defaults to false. - type: boolean - type: object - values: - description: Defines the values to be passed to the Helm charts when - installing Istio. - properties: - base: - description: Configuration for the base component. - properties: - excludedCRDs: - description: CRDs to exclude. Requires `enableCRDTemplates` - items: - type: string - type: array - validationCABundle: - description: validation webhook CA bundle - type: string - validationURL: - description: URL to use for validating webhook. - type: string - type: object - compatibilityVersion: - description: |- - Specifies the compatibility version to use. When this is set, the control plane will - be configured with the same defaults as the specified version. - type: string - defaultRevision: - description: The name of the default revision in the cluster. - type: string - experimental: - description: Specifies experimental helm fields that could be - removed or changed in the future - x-kubernetes-preserve-unknown-fields: true - global: - description: Global configuration for Istio components. - properties: - arch: - description: "Specifies pod scheduling arch(amd64, ppc64le, - s390x, arm64) and weight as follows:\n\n\t0 - Never scheduled\n\t1 - - Least preferred\n\t2 - No preference\n\t3 - Most preferred\n\nDeprecated: - replaced by the affinity k8s settings which allows architecture - nodeAffinity configuration of this behavior.\n\nDeprecated: - Marked as deprecated in pkg/apis/values_types.proto." - properties: - amd64: - description: Sets pod scheduling weight for amd64 arch - format: int32 - type: integer - arm64: - description: Sets pod scheduling weight for arm64 arch. - format: int32 - type: integer - ppc64le: - description: Sets pod scheduling weight for ppc64le arch. - format: int32 - type: integer - s390x: - description: Sets pod scheduling weight for s390x arch. - format: int32 - type: integer - type: object - caAddress: - description: The address of the CA for CSR. - type: string - caName: - description: |- - 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). - type: string - certSigners: - description: List of certSigners to allow "approve" action - in the ClusterRole - items: - type: string - type: array - configCluster: - description: Controls whether a remote cluster is the config - cluster for an external istiod - type: boolean - configValidation: - description: Controls whether the server-side validation is - enabled. - type: boolean - defaultNodeSelector: - additionalProperties: - type: string - description: |- - Default k8s node selector for all the Istio control plane components - - See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - defaultPodDisruptionBudget: - description: Specifies the default pod disruption budget configuration. - properties: - enabled: - description: Controls whether a PodDisruptionBudget with - a default minAvailable value of 1 is created for each - deployment. - type: boolean - type: object - defaultResources: - description: |- - 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 - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - defaultTolerations: - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - externalIstiod: - description: Controls whether one external istiod is enabled. - type: boolean - hub: - description: Specifies the docker hub for Istio images. - type: string - imagePullPolicy: - description: |- - 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 - enum: - - Always - - Never - - IfNotPresent - type: string - imagePullSecrets: - description: |- - 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. - items: - type: string - type: array - ipFamilies: - description: |- - 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 - items: - type: string - type: array - ipFamilyPolicy: - description: |- - 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 - type: string - istioNamespace: - description: Specifies the default namespace for the Istio - control plane components. - type: string - istiod: - description: Specifies the configution of istiod - properties: - enableAnalysis: - description: If enabled, istiod will perform config analysis - type: boolean - type: object - jwtPolicy: - description: |- - Configure the policy for validating JWT. - This is deprecated and has no effect. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: string - logAsJson: - description: Specifies whether istio components should output - logs in json format by adding --log_as_json argument to - each container. - type: boolean - logging: - description: Specifies the global logging level settings for - the Istio control plane components. - properties: - level: - description: |- - Comma-separated minimum per-scope logging level of messages to output, in the form of :,: - 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 - type: string - type: object - meshID: - description: |- - 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. - type: string - meshNetworks: - additionalProperties: - description: |- - Network provides information about the endpoints in a routable L3 - network. A single routable L3 network can have one or more service - registries. Note that the network has no relation to the locality of the - endpoint. The endpoint locality will be obtained from the service - registry. - properties: - endpoints: - description: |- - The list of endpoints in the network (obtained through the - constituent service registries or from CIDR ranges). All endpoints in - the network are directly accessible to one another. - items: - description: "NetworkEndpoints describes how the network - associated with an endpoint\nshould be inferred. - An endpoint will be assigned to a network based - on\nthe following rules:\n\n1. Implicitly: If the - registry explicitly provides information about\nthe - network to which the endpoint belongs to. In some - cases, its\npossible to indicate the network associated - with the endpoint by\nadding the `ISTIO_META_NETWORK` - environment variable to the sidecar.\n\n2. Explicitly:\n\n\ta. - By matching the registry name with one of the \"fromRegistry\"\n\tin - the mesh config. A \"fromRegistry\" can only be - assigned to a\n\tsingle network.\n\n\tb. By matching - the IP against one of the CIDR ranges in a mesh\n\tconfig - network. The CIDR ranges must not overlap and be - assigned to\n\ta single network.\n\n(2) will override - (1) if both are present." - properties: - fromCidr: - description: |- - A CIDR range for the set of endpoints in this network. The CIDR - ranges for endpoints from different networks must not overlap. - type: string - fromRegistry: - description: |- - Add all endpoints from the specified registry into this network. - The names of the registries should correspond to the kubeconfig file name - inside the secret that was used to configure the registry (Kubernetes - multicluster) or supplied by MCP server. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [fromCidr fromRegistry] - should be set - rule: (has(self.fromCidr)?1:0) + (has(self.fromRegistry)?1:0) - <= 1 - type: array - gateways: - description: Set of gateways associated with the network. - items: - description: |- - The gateway associated with this network. Traffic from remote networks - will arrive at the specified gateway:port. All incoming traffic must - use mTLS. - properties: - address: - description: IP address or externally resolvable - DNS address associated with the gateway. - type: string - locality: - description: The locality associated with an explicitly - specified gateway (i.e. ip) - type: string - port: - format: int32 - type: integer - registryServiceName: - description: |- - A fully qualified domain name of the gateway service. Pilot will - lookup the service from the service registries in the network and - obtain the endpoint IPs of the gateway from the service - registry. Note that while the service name is a fully qualified - domain name, it need not be resolvable outside the orchestration - platform for the registry. e.g., this could be - istio-ingressgateway.istio-system.svc.cluster.local. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [registryServiceName address] - should be set - rule: (has(self.registryServiceName)?1:0) + (has(self.address)?1:0) - <= 1 - type: array - type: object - description: "Configure the mesh networks to be used by the - Split Horizon EDS.\n\nThe following example defines two - networks with different endpoints association methods.\nFor - `network1` all endpoints that their IP belongs to the provided - CIDR range will be\nmapped to network1. The gateway for - this network example is specified by its public IP\naddress - and port.\nThe second network, `network2`, in this example - is defined differently with all endpoints\nretrieved through - the specified Multi-Cluster registry being mapped to network2. - The\ngateway is also defined differently with the name of - the gateway service on the remote\ncluster. The public IP - for the gateway will be determined from that remote service - (only\nLoadBalancer gateway service type is currently supported, - for a NodePort type gateway service,\nit still need to be - configured manually).\n\nmeshNetworks:\n\n\tnetwork1:\n\t - \ endpoints:\n\t - fromCidr: \"192.168.0.1/24\"\n\t gateways:\n\t - \ - address: 1.1.1.1\n\t port: 80\n\tnetwork2:\n\t endpoints:\n\t - \ - fromRegistry: reg1\n\t gateways:\n\t - registryServiceName: - istio-ingressgateway.istio-system.svc.cluster.local\n\t - \ port: 443" - type: object - mountMtlsCerts: - description: Controls whether the in-cluster MTLS key and - certs are loaded from the secret volume mounts. - type: boolean - multiCluster: - description: Specifies the Configuration for Istio mesh across - multiple clusters through Istio gateways. - properties: - clusterName: - description: |- - The name of the cluster this installation will run in. This is required for sidecar injection - to properly label proxies - type: string - enabled: - description: |- - 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. - type: boolean - globalDomainSuffix: - description: The suffix for global service names. - type: string - includeEnvoyFilter: - description: Enable envoy filter to translate `globalDomainSuffix` - to cluster local suffix for cross cluster communication. - type: boolean - type: object - network: - description: |- - Network defines the network this cluster belong to. This name - corresponds to the networks in the map of mesh networks. - type: string - omitSidecarInjectorConfigMap: - description: |- - 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. - type: boolean - operatorManageWebhooks: - description: |- - 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. - type: boolean - pilotCertProvider: - description: |- - Configure the Pilot certificate provider. - Currently, four providers are supported: "kubernetes", "istiod", "custom" and "none". - type: string - platform: - description: |- - 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. - type: string - podDNSSearchNamespaces: - description: |- - 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). - items: - type: string - type: array - priorityClassName: - description: |- - Specifies the k8s priorityClassName for the istio control plane components. - - See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: string - proxy: - description: Specifies how proxies are configured within Istio. - properties: - autoInject: - description: Controls the 'policy' in the sidecar injector. - type: string - clusterDomain: - description: |- - Domain for the cluster, default: "cluster.local". - - K8s allows this to be customized, see https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/ - type: string - componentLogLevel: - description: |- - 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. - type: string - enableCoreDump: - description: |- - Enables core dumps for newly injected sidecars. - - If set, newly injected sidecars will have core dumps enabled. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: boolean - excludeIPRanges: - description: Lists the excluded IP ranges of Istio egress - traffic that the sidecar captures. - type: string - excludeInboundPorts: - description: Specifies the Istio ingress ports not to - capture. - type: string - excludeOutboundPorts: - description: A comma separated list of outbound ports - to be excluded from redirection to Envoy. - type: string - holdApplicationUntilProxyStarts: - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: boolean - image: - description: |- - 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 - type: string - includeIPRanges: - description: |- - 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." - type: string - includeInboundPorts: - description: |- - A comma separated list of inbound ports for which traffic is to be redirected to Envoy. - The wildcard character '*' can be used to configure redirection for all ports. - type: string - includeOutboundPorts: - description: A comma separated list of outbound ports - for which traffic is to be redirected to Envoy, regardless - of the destination IP. - type: string - lifecycle: - description: |- - The k8s lifecycle hooks definition (pod.spec.containers.lifecycle) for the proxy container. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - postStart: - description: |- - PostStart is called immediately after a container is created. If the handler fails, - the container is terminated and restarted according to its restart policy. - Other management of the container blocks until the hook completes. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - httpGet: - description: HTTPGet specifies the http request - to perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the - request. HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom - header to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. - properties: - seconds: - description: Seconds is the number of seconds - to sleep. - format: int64 - type: integer - required: - - seconds - type: object - tcpSocket: - description: |- - Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. - properties: - host: - description: 'Optional: Host name to connect - to, defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - type: object - preStop: - description: |- - PreStop is called immediately before a container is terminated due to an - API request or management event such as liveness/startup probe failure, - preemption, resource contention, etc. The handler is not called if the - container crashes or exits. The Pod's termination grace period countdown begins before the - PreStop hook is executed. Regardless of the outcome of the handler, the - container will eventually terminate within the Pod's termination grace - period (unless delayed by finalizers). Other management of the container blocks until the hook completes - or until the termination grace period is reached. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - httpGet: - description: HTTPGet specifies the http request - to perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the - request. HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom - header to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. - properties: - seconds: - description: Seconds is the number of seconds - to sleep. - format: int64 - type: integer - required: - - seconds - type: object - tcpSocket: - description: |- - Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. - properties: - host: - description: 'Optional: Host name to connect - to, defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - type: object - type: object - logLevel: - description: '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' - type: string - outlierLogPath: - description: |- - Path to the file to which the proxy will write outlier detection logs. - - Example: "/dev/stdout" - This would write the logs to standard output. - type: string - privileged: - description: |- - Enables privileged securityContext for the istio-proxy container. - - See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - type: boolean - readinessFailureThreshold: - description: Sets the number of successive failed probes - before indicating readiness failure. - format: int32 - type: integer - readinessInitialDelaySeconds: - description: Sets the initial delay for readiness probes - in seconds. - format: int32 - type: integer - readinessPeriodSeconds: - description: Sets the interval between readiness probes - in seconds. - format: int32 - type: integer - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - startupProbe: - description: Configures the startup probe for the istio-proxy - container. - properties: - enabled: - description: |- - Enables or disables a startup probe. - For optimal startup times, changing this should be tied to the readiness probe values. - - If the probe is enabled, it is recommended to have delay=0s,period=15s,failureThreshold=4. - This ensures the pod is marked ready immediately after the startup probe passes (which has a 1s poll interval), - and doesn't spam the readiness endpoint too much - - If the probe is disabled, it is recommended to have delay=1s,period=2s,failureThreshold=30. - This ensures the startup is reasonable fast (polling every 2s). 1s delay is used since the startup is not often ready instantly. - type: boolean - failureThreshold: - description: Minimum consecutive failures for the - probe to be considered failed after having succeeded. - format: int32 - type: integer - type: object - statusPort: - description: Default port used for the Pilot agent's health - checks. - format: int32 - type: integer - tracer: - description: |- - Specify which tracer to use. One of: zipkin, lightstep, datadog, stackdriver. - If using stackdriver tracer outside GCP, set env GOOGLE_APPLICATION_CREDENTIALS to the GCP credential file. - enum: - - zipkin - - lightstep - - datadog - - stackdriver - - openCensusAgent - - none - type: string - type: object - proxy_init: - description: Specifies the Configuration for proxy_init container - which sets the pods' networking to intercept the inbound/outbound - traffic. - properties: - image: - description: Specifies the image for the proxy_init container. - type: string - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - type: object - remotePilotAddress: - description: Specifies the Istio control plane’s pilot Pod - IP address or remote cluster DNS resolvable hostname. - type: string - revision: - description: Configures the revision this control plane is - a part of - type: string - sds: - description: Specifies the Configuration for the SecretDiscoveryService - instead of using K8S secrets to mount the certificates. - properties: - token: - description: 'Deprecated: Marked as deprecated in pkg/apis/values_types.proto.' - properties: - aud: - type: string - type: object - type: object - sts: - description: Specifies the configuration for Security Token - Service. - properties: - servicePort: - format: int32 - type: integer - type: object - tag: - description: Specifies the tag for the Istio docker images. - type: string - tracer: - description: Specifies the Configuration for each of the supported - tracers. - properties: - datadog: - description: Configuration for the datadog tracing service. - properties: - address: - description: Address in host:port format for reporting - trace data to the Datadog agent. - type: string - type: object - lightstep: - description: Configuration for the lightstep tracing service. - properties: - accessToken: - description: Sets the lightstep access token. - type: string - address: - description: Sets the lightstep satellite pool address - in host:port format for reporting trace data. - type: string - type: object - stackdriver: - description: Configuration for the stackdriver tracing - service. - properties: - debug: - description: enables trace output to stdout. - type: boolean - maxNumberOfAnnotations: - description: The global default max number of annotation - events per span. - format: int32 - type: integer - maxNumberOfAttributes: - description: The global default max number of attributes - per span. - format: int32 - type: integer - maxNumberOfMessageEvents: - description: The global default max number of message - events per span. - format: int32 - type: integer - type: object - zipkin: - description: Configuration for the zipkin tracing service. - properties: - address: - description: |- - Address of zipkin instance in host:port format for reporting trace data. - - Example: .:941 - type: string - type: object - type: object - variant: - description: The variant of the Istio container images to - use. Options are "debug" or "distroless". Unset will use - the default for the given version. - type: string - waypoint: - description: Specifies how waypoints are configured within - Istio. - properties: - affinity: - description: |- - K8s affinity settings for waypoint pods. - - See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - properties: - nodeAffinity: - description: Describes node affinity scheduling rules - for the pod. - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node matches the corresponding matchExpressions; the - node(s) with the highest sum are the most preferred. - items: - description: |- - An empty preferred scheduling term matches all objects with implicit weight 0 - (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - properties: - preference: - description: A node selector term, associated - with the corresponding weight. - properties: - matchExpressions: - description: A list of node selector - requirements by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector - requirements by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching - the corresponding nodeSelectorTerm, in - the range 1-100. - format: int32 - type: integer - required: - - preference - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to an update), the system - may or may not try to eventually evict the pod from its node. - properties: - nodeSelectorTerms: - description: Required. A list of node selector - terms. The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector - requirements by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector - requirements by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - type: object - podAffinity: - description: Describes pod affinity scheduling rules - (e.g. co-locate this pod in the same node, zone, - etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched - WeightedPodAffinityTerm fields are added per-node - to find the most preferred node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - podAntiAffinity: - description: Describes pod anti-affinity scheduling - rules (e.g. avoid putting this pod in the same node, - zone, etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the anti-affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling anti-affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched - WeightedPodAffinityTerm fields are added per-node - to find the most preferred node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the anti-affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the anti-affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: object - nodeSelector: - description: |- - K8s node labels settings. - - See https://kubernetes.io/docs/user-guide/node-selection/ - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. - The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the selector - applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the selector - applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - resources: - description: |- - K8s resource settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - toleration: - description: |- - K8s tolerations settings. - - See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - topologySpreadConstraints: - description: |- - K8s topology spread constraints settings. - - See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ - items: - description: TopologySpreadConstraint specifies how - to spread matching pods among the given topology. - properties: - labelSelector: - description: |- - LabelSelector is used to find matching pods. - Pods that match this label selector are counted to determine the number of pods - in their corresponding topology domain. - properties: - matchExpressions: - description: matchExpressions is a list of label - selector requirements. The requirements are - ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that - the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select the pods over which - spreading will be calculated. The keys are used to lookup values from the - incoming pod labels, those key-value labels are ANDed with labelSelector - to select the group of existing pods over which spreading will be calculated - for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. - MatchLabelKeys cannot be set when LabelSelector isn't set. - Keys that don't exist in the incoming pod labels will - be ignored. A null or empty list means only match against labelSelector. - - This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - maxSkew: - description: |- - MaxSkew describes the degree to which pods may be unevenly distributed. - When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference - between the number of matching pods in the target topology and the global minimum. - The global minimum is the minimum number of matching pods in an eligible domain - or zero if the number of eligible domains is less than MinDomains. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 2/2/1: - In this case, the global minimum is 1. - | zone1 | zone2 | zone3 | - | P P | P P | P | - - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; - scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) - violate MaxSkew(1). - - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence - to topologies that satisfy it. - It's a required field. Default value is 1 and 0 is not allowed. - format: int32 - type: integer - minDomains: - description: |- - MinDomains indicates a minimum number of eligible domains. - When the number of eligible domains with matching topology keys is less than minDomains, - Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. - And when the number of eligible domains with matching topology keys equals or greater than minDomains, - this value has no effect on scheduling. - As a result, when the number of eligible domains is less than minDomains, - scheduler won't schedule more than maxSkew Pods to those domains. - If value is nil, the constraint behaves as if MinDomains is equal to 1. - Valid values are integers greater than 0. - When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - - For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same - labelSelector spread as 2/2/2: - | zone1 | zone2 | zone3 | - | P P | P P | P P | - The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. - In this situation, new pod with the same labelSelector cannot be scheduled, - because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, - it will violate MaxSkew. - format: int32 - type: integer - nodeAffinityPolicy: - description: |- - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector - when calculating pod topology spread skew. Options are: - - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - - If this value is nil, the behavior is equivalent to the Honor policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - nodeTaintsPolicy: - description: |- - NodeTaintsPolicy indicates how we will treat node taints when calculating - pod topology spread skew. Options are: - - Honor: nodes without taints, along with tainted nodes for which the incoming pod - has a toleration, are included. - - Ignore: node taints are ignored. All nodes are included. - - If this value is nil, the behavior is equivalent to the Ignore policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - topologyKey: - description: |- - TopologyKey is the key of node labels. Nodes that have a label with this key - and identical values are considered to be in the same topology. - We consider each as a "bucket", and try to put balanced number - of pods into each bucket. - We define a domain as a particular instance of a topology. - Also, we define an eligible domain as a domain whose nodes meet the requirements of - nodeAffinityPolicy and nodeTaintsPolicy. - e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. - And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. - It's a required field. - type: string - whenUnsatisfiable: - description: |- - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - the spread constraint. - - DoNotSchedule (default) tells the scheduler not to schedule it. - - ScheduleAnyway tells the scheduler to schedule the pod in any location, - but giving higher precedence to topologies that would help reduce the - skew. - A constraint is considered "Unsatisfiable" for an incoming pod - if and only if every possible node assignment for that pod would violate - "MaxSkew" on some topology. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 3/1/1: - | zone1 | zone2 | zone3 | - | P P P | P | P | - If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - won't make it *more* imbalanced. - It's a required field. - type: string - required: - - maxSkew - - topologyKey - - whenUnsatisfiable - type: object - type: array - type: object - type: object - istiodRemote: - description: |- - Configuration for istiod-remote. - DEPRECATED - istiod-remote chart is removed and replaced with - `istio-discovery --set values.istiodRemote.enabled=true` - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - enabled: - description: Indicates if this cluster/install should consume - a "remote" istiod instance, - type: boolean - injectionCABundle: - description: injector ca bundle - type: string - injectionPath: - description: Path to use for the sidecar injector webhook - service. - type: string - injectionURL: - description: URL to use for sidecar injector webhook. - type: string - type: object - meshConfig: - description: |- - Defines runtime configuration of components, including Istiod and istio-agent behavior. - See https://istio.io/docs/reference/config/istio.mesh.v1alpha1/ for all available options. - properties: - accessLogEncoding: - description: |- - Encoding for the proxy access log (`TEXT` or `JSON`). - Default value is `TEXT`. - enum: - - TEXT - - JSON - type: string - accessLogFile: - description: |- - File address for the proxy access log (e.g. /dev/stdout). - Empty value disables access logging. - type: string - accessLogFormat: - description: |- - Format for the proxy access log - Empty value results in proxy's default access log format - type: string - ca: - description: |- - If specified, Istiod will authorize and forward the CSRs from the workloads to the specified external CA - using the Istio CA gRPC API. - properties: - address: - description: |- - REQUIRED. Address of the CA server implementing the Istio CA gRPC API. - Can be IP address or a fully qualified DNS name with port - Eg: custom-ca.default.svc.cluster.local:8932, 192.168.23.2:9000 - type: string - istiodSide: - description: |- - Use istiodSide to specify CA Server integrate to Istiod side or Agent side - Default: true - type: boolean - requestTimeout: - description: |- - timeout for forward CSR requests from Istiod to External CA - Default: 10s - type: string - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. - Regarding tlsSettings: - - DISABLE MODE is legitimate for the case Istiod is making the request via an Envoy sidecar. - DISABLE MODE can also be used for testing - - TLS MUTUAL MODE be on by default. If the CA certificates - (cert bundle to verify the CA server's certificate) is omitted, Istiod will - use the system root certs to verify the CA server's certificate. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - required: - - address - type: object - caCertificates: - description: |- - The extra root certificates for workload-to-workload communication. - The plugin certificates (the 'cacerts' secret) or self-signed certificates (the 'istio-ca-secret' secret) - are automatically added by Istiod. - The CA certificate that signs the workload certificates is automatically added by Istio Agent. - items: - properties: - certSigners: - description: |- - when Istiod is acting as RA(registration authority) - If set, they are used for these signers. Otherwise, this trustAnchor is used for all signers. - items: - type: string - type: array - pem: - description: The PEM data of the certificate. - type: string - spiffeBundleUrl: - description: |- - The SPIFFE bundle endpoint URL that complies to: - https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE_Trust_Domain_and_Bundle.md#the-spiffe-trust-domain-and-bundle - The endpoint should support authentication based on Web PKI: - https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE_Trust_Domain_and_Bundle.md#521-web-pki - The certificate is retrieved from the endpoint. - type: string - trustDomains: - description: |- - Optional. Specify the list of trust domains to which this trustAnchor data belongs. - If set, they are used for these trust domains. Otherwise, this trustAnchor is used for default trust domain - and its aliases. - Note that we can have multiple trustAnchor data for a same trustDomain. - In that case, trustAnchors with a same trust domain will be merged and used together to verify peer certificates. - If neither certSigners nor trustDomains is set, this trustAnchor is used for all trust domains and all signers. - If only trustDomains is set, this trustAnchor is used for these trustDomains and all signers. - If only certSigners is set, this trustAnchor is used for these certSigners and all trust domains. - If both certSigners and trustDomains is set, this trustAnchor is only used for these signers and trust domains. - items: - type: string - type: array - type: object - x-kubernetes-validations: - - message: At most one of [pem spiffeBundleUrl] should be - set - rule: (has(self.pem)?1:0) + (has(self.spiffeBundleUrl)?1:0) - <= 1 - type: array - certificates: - description: |- - Configure the provision of certificates. - - Note: Deprecated, please refer to Cert-Manager or other cert provisioning solutions to sign DNS certificates. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - items: - description: "Certificate configures the provision of a - certificate and its key.\nExample 1: key and cert stored - in a secret\n```\n{ secretName: galley-cert\n\n\t secretNamespace: - istio-system\n\t dnsNames:\n\t - galley.istio-system.svc\n\t - \ - galley.mydomain.com\n\t}\n\n```\nExample 2: key - and cert stored in a directory\n```\n{ dnsNames:\n - - pilot.istio-system\n - pilot.istio-system.svc\n - pilot.mydomain.com\n - \ }\n\n```" - properties: - dnsNames: - description: |- - The DNS names for the certificate. A certificate may contain - multiple DNS names. - items: - type: string - type: array - secretName: - description: |- - Name of the secret the certificate and its key will be stored into. - If it is empty, it will not be stored into a secret. - Instead, the certificate and its key will be stored into a hard-coded directory. - type: string - type: object - type: array - configSources: - description: |- - 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. - items: - description: |- - ConfigSource describes information about a configuration store inside a - mesh. A single control plane instance can interact with one or more data - sources. - properties: - address: - description: |- - Address of the server implementing the Istio Mesh Configuration - protocol (MCP). Can be IP address or a fully qualified DNS name. - Use xds:// to specify a grpc-based xds backend, k8s:// to specify a k8s controller or - fs:/// to specify a file-based backend with absolute path to the directory. - type: string - subscribedResources: - description: Describes the source of configuration, - if nothing is specified default is MCP - items: - description: Resource describes the source of configuration - enum: - - SERVICE_REGISTRY - type: string - type: array - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. If the MCP server - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - type: array - connectTimeout: - description: |- - Connection timeout used by Envoy. (MUST BE >=1ms) - Default timeout is 10s. - type: string - defaultConfig: - description: |- - Default proxy config used by gateway and sidecars. - In case of Kubernetes, the proxy config is applied once during the injection process, - and remain constant for the duration of the pod. The rest of the mesh config can be changed - at runtime and config gets distributed dynamically. - On Kubernetes, this can be overridden on individual pods with the `proxy.istio.io/config` annotation. - properties: - availabilityZone: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - binaryPath: - description: Path to the proxy binary - type: string - caCertificatesPem: - description: |- - The PEM data of the extra root certificates for workload-to-workload communication. - This includes the certificates defined in MeshConfig and any other certificates that Istiod uses as CA. - The plugin certificates (the 'cacerts' secret), self-signed certificates (the 'istio-ca-secret' secret) - are added automatically by Istiod. - items: - type: string - type: array - concurrency: - description: |- - The number of worker threads to run. - If unset, which is recommended, this will be automatically determined based on CPU requests/limits. - If set to 0, all cores on the machine will be used, ignoring CPU requests or limits. This can lead to major performance - issues if CPU limits are also set. - format: int32 - type: integer - configPath: - description: |- - Path to the generated configuration file directory. - Proxy agent generates the actual configuration and stores it in this directory. - type: string - controlPlaneAuthPolicy: - description: |- - AuthenticationPolicy defines how the proxy is authenticated when it connects to the control plane. - Default is set to `MUTUAL_TLS`. - enum: - - NONE - - MUTUAL_TLS - - INHERIT - type: string - customConfigFile: - description: |- - File path of custom proxy configuration, currently used by proxies - in front of Mixer and Pilot. - type: string - discoveryAddress: - description: |- - Address of the discovery service exposing xDS with mTLS connection. - The inject configuration may override this value. - type: string - discoveryRefreshDelay: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - drainDuration: - description: |- - restart. MUST be >=1s (e.g., _1s/1m/1h_) - Default drain duration is `45s`. - type: string - envoyAccessLogService: - description: |- - Address of the service to which access logs from Envoys should be - sent. (e.g. `accesslog-service:15000`). See [Access Log - Service](https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/accesslog/v2/als.proto) - for details about Envoy's gRPC Access Log Service API. - properties: - address: - description: |- - Address of a remove service used for various purposes (access log - receiver, metrics receiver, etc.). Can be IP address or a fully - qualified DNS name. - type: string - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the - socket to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsSettings: - description: |- - Use the `tlsSettings` to specify the tls mode to use. If the remote service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - envoyMetricsService: - description: |- - Address of the Envoy Metrics Service implementation (e.g. `metrics-service:15000`). - See [Metric Service](https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/metrics/v2/metrics_service.proto) - for details about Envoy's Metrics Service API. - properties: - address: - description: |- - Address of a remove service used for various purposes (access log - receiver, metrics receiver, etc.). Can be IP address or a fully - qualified DNS name. - type: string - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the - socket to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsSettings: - description: |- - Use the `tlsSettings` to specify the tls mode to use. If the remote service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - envoyMetricsServiceAddress: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - extraStatTags: - description: |- - An additional list of tags to extract from the in-proxy Istio telemetry. These extra tags can be - added by configuring the telemetry extension. Each additional tag needs to be present in this list. - Extra tags emitted by the telemetry extensions must be listed here so that they can be processed - and exposed as Prometheus metrics. - Deprecated: `istio.stats` is a native filter now, this field is no longer needed. - items: - type: string - type: array - gatewayTopology: - description: |- - Topology encapsulates the configuration which describes where the proxy is - located i.e. behind a (or N) trusted proxy (proxies) or directly exposed - to the internet. This configuration only effects gateways and is applied - to all the gateways in the cluster unless overridden via annotations of the - gateway workloads. - properties: - forwardClientCertDetails: - description: |- - Configures how the gateway proxy handles x-forwarded-client-cert (XFCC) - header in the incoming request. - enum: - - UNDEFINED - - SANITIZE - - FORWARD_ONLY - - APPEND_FORWARD - - SANITIZE_SET - - ALWAYS_FORWARD_ONLY - type: string - numTrustedProxies: - description: |- - Number of trusted proxies deployed in front of the Istio gateway proxy. - When this option is set to value N greater than zero, the trusted client - address is assumed to be the Nth address from the right end of the - X-Forwarded-For (XFF) header from the incoming request. If the - X-Forwarded-For (XFF) header is missing or has fewer than N addresses, the - gateway proxy falls back to using the immediate downstream connection's - source address as the trusted client address. - Note that the gateway proxy will append the downstream connection's source - address to the X-Forwarded-For (XFF) address and set the - X-Envoy-External-Address header to the trusted client address before - forwarding it to the upstream services in the cluster. - The default value of numTrustedProxies is 0. - See [Envoy XFF](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#config-http-conn-man-headers-x-forwarded-for) - header handling for more details. - format: int32 - type: integer - proxyProtocol: - description: |- - Enables [PROXY protocol](http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt) for - downstream connections on a gateway. - type: object - type: object - holdApplicationUntilProxyStarts: - description: |- - Boolean flag for enabling/disabling the holdApplicationUntilProxyStarts behavior. - This feature adds hooks to delay application startup until the pod proxy - is ready to accept traffic, mitigating some startup race conditions. - Default value is 'false'. - type: boolean - image: - description: Specifies the details of the proxy image. - properties: - imageType: - description: |- - The image type of the image. - Istio publishes default, debug, and distroless images. - Other values are allowed if those image types (example: centos) are published to the specified hub. - supported values: default, debug, distroless. - type: string - type: object - interceptionMode: - description: The mode used to redirect inbound traffic - to Envoy. - enum: - - REDIRECT - - TPROXY - - NONE - type: string - meshId: - description: |- - The unique identifier for the [service mesh](https://istio.io/docs/reference/glossary/#service-mesh) - All control planes running in the same service mesh should specify the same mesh ID. - Mesh ID is used to label telemetry reports for cases where telemetry from multiple meshes is mixed together. - type: string - privateKeyProvider: - description: Specifies the details of the Private Key - Provider configuration for gateway and sidecar proxies. - properties: - cryptomb: - description: Use CryptoMb private key provider - properties: - fallback: - description: |- - If the private key provider isn’t available (eg. the required hardware capability doesn’t existed) - Envoy will fallback to the BoringSSL default implementation when the fallback is true. - The default value is false. - type: boolean - pollDelay: - description: |- - How long to wait until the per-thread processing queue should be processed. If the processing queue - gets full (eight sign or decrypt requests are received) it is processed immediately. - However, if the queue is not filled before the delay has expired, the requests already in the queue - are processed, even if the queue is not full. - In effect, this value controls the balance between latency and throughput. - The duration needs to be set to a value greater than or equal to 1 millisecond. - type: string - type: object - qat: - description: Use QAT private key provider - properties: - fallback: - description: |- - If the private key provider isn’t available (eg. the required hardware capability doesn’t existed) - Envoy will fallback to the BoringSSL default implementation when the fallback is true. - The default value is false. - type: boolean - pollDelay: - description: |- - How long to wait before polling the hardware accelerator after a request has been submitted there. - Having a small value leads to quicker answers from the hardware but causes more polling loop spins, - leading to potentially larger CPU usage. - The duration needs to be set to a value greater than or equal to 1 millisecond. - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [cryptomb qat] should be set - rule: (has(self.cryptomb)?1:0) + (has(self.qat)?1:0) - <= 1 - proxyAdminPort: - description: |- - Port on which Envoy should listen for administrative commands. - Default port is `15000`. - format: int32 - type: integer - proxyBootstrapTemplatePath: - description: Path to the proxy bootstrap template file - type: string - proxyHeaders: - description: "Define the set of headers to add/modify - for HTTP request/responses.\n\nTo enable an optional - header, simply set the field. If no specific configuration - is required, an empty object (`{}`) will enable it.\nNote: - currently all headers are enabled by default.\n\nBelow - shows an example of customizing the `server` header - and disabling the `X-Envoy-Attempt-Count` header:\n\n```yaml\nproxyHeaders:\n\n\tserver:\n\t - \ value: \"my-custom-server\"\n\trequestId: {} // Explicitly - enable Request IDs. As this is the default, this has - no effect.\n\tattemptCount:\n\t disabled: true\n\n```\n\nSome - headers are enabled by default, and require explicitly - disabling. See below for an example of disabling all - default-enabled headers:\n\n```yaml\nproxyHeaders:\n\n\tforwardedClientCert: - SANITIZE\n\tserver:\n\t disabled: true\n\trequestId:\n\t - \ disabled: true\n\tattemptCount:\n\t disabled: true\n\tenvoyDebugHeaders:\n\t - \ disabled: true\n\tmetadataExchangeHeaders:\n\t mode: - IN_MESH\n\n```" - properties: - attemptCount: - description: |- - Controls the `X-Envoy-Attempt-Count` header. - If enabled, this header will be added on outbound request headers (including gateways) that have retries configured. - If disabled, this header will not be set. If it is already present, it will be preserved. - This header is enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - envoyDebugHeaders: - description: |- - Controls various `X-Envoy-*` headers, such as `X-Envoy-Overloaded` and `X-Envoy-Upstream-Service-Time`. If enabled, - these headers will be included. - If disabled, these headers will not be set. If they are already present, they will be preserved. - See the [Envoy documentation](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/http/router/v3/router.proto#envoy-v3-api-field-extensions-filters-http-router-v3-router-suppress-envoy-headers) for more details. - These headers are enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - forwardedClientCert: - description: |- - Controls the `X-Forwarded-Client-Cert` header for inbound sidecar requests. To set this on gateways, use the `Topology` setting. - To disable the header, configure either `SANITIZE` (to always remove the header, if present) or `FORWARD_ONLY` (to leave the header as-is). - By default, `APPEND_FORWARD` will be used. - enum: - - UNDEFINED - - SANITIZE - - FORWARD_ONLY - - APPEND_FORWARD - - SANITIZE_SET - - ALWAYS_FORWARD_ONLY - type: string - metadataExchangeHeaders: - description: |- - Controls Istio metadata exchange headers `X-Envoy-Peer-Metadata` and `X-Envoy-Peer-Metadata-Id`. - By default, the behavior is unspecified. - If IN_MESH, these headers will not be appended to outbound requests from sidecars to services not in-mesh. - properties: - mode: - enum: - - UNDEFINED - - IN_MESH - type: string - type: object - requestId: - description: |- - Controls the `X-Request-Id` header. If enabled, a request ID is generated for each request if one is not already set. - This applies to all types of traffic (inbound, outbound, and gateways). - If disabled, no request ID will be generate for the request. If it is already present, it will be preserved. - Warning: request IDs are a critical component to mesh tracing and logging, so disabling this is not recommended. - This header is enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - server: - description: |- - Controls the `server` header. If enabled, the `Server: istio-envoy` header is set in response headers for inbound traffic (including gateways). - If disabled, the `Server` header is not modified. If it is already present, it will be preserved. - properties: - disabled: - type: boolean - value: - description: If set, and the server header is - enabled, this value will be set as the server - header. By default, `istio-envoy` will be used. - type: string - type: object - setCurrentClientCertDetails: - description: |- - This field is valid only when forward_client_cert_details is APPEND_FORWARD or SANITIZE_SET - and the client connection is mTLS. It specifies the fields in - the client certificate to be forwarded. Note that `Hash` is always set, and - `By` is always set when the client certificate presents the URI type Subject Alternative Name value. - properties: - cert: - description: |- - Whether to forward the entire client cert in URL encoded PEM format. This will appear in the - XFCC header comma separated from other values with the value Cert="PEM". - Defaults to false. - type: boolean - chain: - description: |- - Whether to forward the entire client cert chain (including the leaf cert) in URL encoded PEM - format. This will appear in the XFCC header comma separated from other values with the value - Chain="PEM". - Defaults to false. - type: boolean - dns: - description: |- - Whether to forward the DNS type Subject Alternative Names of the client cert. - Defaults to true. - type: boolean - subject: - description: Whether to forward the subject of - the client cert. Defaults to true. - type: boolean - uri: - description: |- - Whether to forward the URI type Subject Alternative Name of the client cert. Defaults to - true. - type: boolean - type: object - type: object - proxyMetadata: - additionalProperties: - type: string - description: |- - Additional environment variables for the proxy. - Names starting with `ISTIO_META_` will be included in the generated bootstrap and sent to the XDS server. - type: object - proxyStatsMatcher: - description: "Proxy stats matcher defines configuration - for reporting custom Envoy stats.\nTo reduce memory - and CPU overhead from Envoy stats system, Istio proxies - by\ndefault create and expose only a subset of Envoy - stats. This option is to\ncontrol creation of additional - Envoy stats with prefix, suffix, and regex\nexpressions - match on the name of the stats. This replaces the stats\ninclusion - annotations\n(`sidecar.istio.io/statsInclusionPrefixes`,\n`sidecar.istio.io/statsInclusionRegexps`, - and\n`sidecar.istio.io/statsInclusionSuffixes`). For - example, to enable stats\nfor circuit breakers, request - retries, upstream connections, and request timeouts,\nyou - can specify stats matcher as follows:\n```yaml\nproxyStatsMatcher:\n\n\tinclusionRegexps:\n\t - \ - .*outlier_detection.*\n\t - .*upstream_rq_retry.*\n\t - \ - .*upstream_cx_.*\n\tinclusionSuffixes:\n\t - upstream_rq_timeout\n\n```\nNote - including more Envoy stats might increase number of - time series\ncollected by prometheus significantly. - Care needs to be taken on Prometheus\nresource provision - and configuration to reduce cardinality." - properties: - inclusionPrefixes: - description: Proxy stats name prefix matcher for inclusion. - items: - type: string - type: array - inclusionRegexps: - description: Proxy stats name regexps matcher for - inclusion. - items: - type: string - type: array - inclusionSuffixes: - description: Proxy stats name suffix matcher for inclusion. - items: - type: string - type: array - type: object - readinessProbe: - description: |- - VM Health Checking readiness probe. This health check config exactly mirrors the - kubernetes readiness probe configuration both in schema and logic. - Only one health check method of 3 can be set at a time. - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - failureThreshold: - description: |- - Minimum consecutive failures for the probe to be considered failed after having succeeded. - Defaults to 3. Minimum value is 1. - format: int32 - type: integer - grpc: - description: GRPC specifies an action involving a - GRPC port. - properties: - port: - description: Port number of the gRPC service. - Number must be in the range 1 to 65535. - format: int32 - type: integer - service: - default: "" - description: |- - Service is the name of the service to place in the gRPC HealthCheckRequest - (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). - - If this is not specified, the default behavior is defined by gRPC. - type: string - required: - - port - type: object - httpGet: - description: HTTPGet specifies the http request to - perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the request. - HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom header - to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - initialDelaySeconds: - description: |- - Number of seconds after the container has started before liveness probes are initiated. - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - format: int32 - type: integer - periodSeconds: - description: |- - How often (in seconds) to perform the probe. - Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: |- - Minimum consecutive successes for the probe to be considered successful after having failed. - Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - format: int32 - type: integer - tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. - properties: - host: - description: 'Optional: Host name to connect to, - defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - terminationGracePeriodSeconds: - description: |- - Optional duration in seconds the pod needs to terminate gracefully upon probe failure. - The grace period is the duration in seconds after the processes running in the pod are sent - a termination signal and the time when the processes are forcibly halted with a kill signal. - Set this value longer than the expected cleanup time for your process. - If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this - value overrides the value provided by the pod spec. - Value must be non-negative integer. The value zero indicates stop immediately via - the kill signal (no opportunity to shut down). - This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. - Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - format: int64 - type: integer - timeoutSeconds: - description: |- - Number of seconds after which the probe times out. - Defaults to 1 second. Minimum value is 1. - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - format: int32 - type: integer - type: object - runtimeValues: - additionalProperties: - type: string - description: |- - Envoy [runtime configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/runtime) to set during bootstrapping. - This enables setting experimental, unsafe, unsupported, and deprecated features that should be used with extreme caution. - type: object - sds: - description: |- - Secret Discovery Service(SDS) configuration to be used by the proxy. - - Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto. - properties: - enabled: - description: True if SDS is enabled. - type: boolean - k8sSaJwtPath: - description: Path of k8s service account JWT path. - type: string - type: object - serviceCluster: - description: |- - Service cluster defines the name for the `service_cluster` that is - shared by all Envoy instances. This setting corresponds to - `--service-cluster` flag in Envoy. In a typical Envoy deployment, the - `service-cluster` flag is used to identify the caller, for - source-based routing scenarios. - - Since Istio does not assign a local `service/service` version to each - Envoy instance, the name is same for all of them. However, the - source/caller's identity (e.g., IP address) is encoded in the - `--service-node` flag when launching Envoy. When the RDS service - receives API calls from Envoy, it uses the value of the `service-node` - flag to compute routes that are relative to the service instances - located at that IP address. - type: string - statNameLength: - description: |- - Maximum length of name field in Envoy's metrics. The length of the name field - is determined by the length of a name field in a service and the set of labels that - comprise a particular version of the service. The default value is set to 189 characters. - Envoy's internal metrics take up 67 characters, for a total of 256 character name per metric. - Increase the value of this field if you find that the metrics from Envoys are truncated. - format: int32 - type: integer - statsdUdpAddress: - description: IP Address and Port of a statsd UDP listener - (e.g. `10.75.241.127:9125`). - type: string - statusPort: - description: |- - Port on which the agent should listen for administrative commands such as readiness probe. - Default is set to port `15020`. - format: int32 - type: integer - terminationDrainDuration: - description: |- - The amount of time allowed for connections to complete on proxy shutdown. - On receiving `SIGTERM` or `SIGINT`, `istio-agent` tells the active Envoy to start gracefully draining, - discouraging any new connections and allowing existing connections to complete. It then - sleeps for the `terminationDrainDuration` and then kills any remaining active Envoy processes. - If not set, a default of `5s` will be applied. - type: string - tracing: - description: Tracing configuration to be used by the proxy. - properties: - customTags: - additionalProperties: - description: |- - Configure custom tags that will be added to any active span. - Tags can be generated via literals, environment variables or an incoming request header. - properties: - environment: - description: |- - The custom tag's value should be populated from an environmental - variable - properties: - defaultValue: - description: |- - When the environment variable is not found, - the tag's value will be populated with this default value if specified, - otherwise the tag will not be populated. - type: string - name: - description: Name of the environment variable - used to populate the tag's value - type: string - type: object - header: - description: |- - The custom tag's value is populated by an http header from - an incoming request. - properties: - defaultValue: - description: |- - Default value to be used for the tag when the named HTTP header does not exist. - The tag will be skipped if no default value is provided. - type: string - name: - description: HTTP header name used to obtain - the value from to populate the tag value. - type: string - type: object - literal: - description: The custom tag's value is the specified - literal. - properties: - value: - description: Static literal value used to - populate the tag value. - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [literal environment header] - should be set - rule: (has(self.literal)?1:0) + (has(self.environment)?1:0) - + (has(self.header)?1:0) <= 1 - description: "and gateways).\nThe key represents the - name of the tag.\nEx:\n```yaml\ncustom_tags:\n\n\tnew_tag_name:\n\t - \ header:\n\t name: custom-http-header-name\n\t - \ default_value: defaulted-value-from-custom-header\n\n```" - type: object - datadog: - description: Use a Datadog tracer. - properties: - address: - description: Address of the Datadog Agent. - type: string - type: object - lightstep: - description: |- - Use a Lightstep tracer. - NOTE: For Istio 1.15+, this configuration option will result - in using OpenTelemetry-based Lightstep integration. - properties: - accessToken: - description: The Lightstep access token. - type: string - address: - description: Address of the Lightstep Satellite - pool. - type: string - type: object - maxPathTagLength: - description: |- - Configures the maximum length of the request path to extract and include in the - HttpUrl tag. Used to truncate length request paths to meet the needs of tracing - backend. If not set, then a length of 256 will be used. - format: int32 - type: integer - openCensusAgent: - description: Use an OpenCensus tracer exporting to - an OpenCensus agent. - properties: - address: - description: |- - gRPC address for the OpenCensus agent (e.g. dns://authority/host:port or - unix:path). See [gRPC naming - docs](https://github.com/grpc/grpc/blob/master/doc/naming.md) for - details. - type: string - context: - description: |- - Specifies the set of context propagation headers used for distributed - tracing. Default is `["W3C_TRACE_CONTEXT"]`. If multiple values are specified, - the proxy will attempt to read each header for each request and will - write all headers. - items: - description: |- - TraceContext selects the context propagation headers used for - distributed tracing. - enum: - - UNSPECIFIED - - W3C_TRACE_CONTEXT - - GRPC_BIN - - CLOUD_TRACE_CONTEXT - - B3 - type: string - type: array - type: object - sampling: - description: |- - The percentage of requests (0.0 - 100.0) that will be randomly selected for trace generation, - if not requested by the client or not forced. Default is 1.0. - type: number - stackdriver: - description: Use a Stackdriver tracer. - properties: - debug: - description: debug enables trace output to stdout. - type: boolean - maxNumberOfAnnotations: - description: |- - The global default max number of annotation events per span. - default is 200. - format: int64 - type: integer - maxNumberOfAttributes: - description: |- - The global default max number of attributes per span. - default is 200. - format: int64 - type: integer - maxNumberOfMessageEvents: - description: |- - The global default max number of message events per span. - default is 200. - format: int64 - type: integer - type: object - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. If the remote tracing service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - zipkin: - description: Use a Zipkin tracer. - properties: - address: - description: Address of the Zipkin service (e.g. - _zipkin:9411_). - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [zipkin lightstep datadog stackdriver - openCensusAgent] should be set - rule: (has(self.zipkin)?1:0) + (has(self.lightstep)?1:0) - + (has(self.datadog)?1:0) + (has(self.stackdriver)?1:0) - + (has(self.openCensusAgent)?1:0) <= 1 - tracingServiceName: - description: |- - Used by Envoy proxies to assign the values for the service names in trace - spans. - enum: - - APP_LABEL_AND_NAMESPACE - - CANONICAL_NAME_ONLY - - CANONICAL_NAME_AND_NAMESPACE - type: string - zipkinAddress: - description: |- - Address of the Zipkin service (e.g. _zipkin:9411_). - DEPRECATED: Use [tracing][istio.mesh.v1alpha1.ProxyConfig.tracing] instead. - - Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [serviceCluster tracingServiceName] - should be set - rule: (has(self.serviceCluster)?1:0) + (has(self.tracingServiceName)?1:0) - <= 1 - defaultDestinationRuleExportTo: - description: |- - The default value for the `DestinationRule.exportTo` field. Has the same - syntax as `defaultServiceExportTo`. - - If not set the system will use "*" as the default value which implies that - destination rules are exported to all namespaces - items: - type: string - type: array - defaultHttpRetryPolicy: - description: "Configure the default HTTP retry policy.\nThe - default number of retry attempts is set at 2 for these errors:\n\n\t\"connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes\".\n\nSetting - the number of attempts to 0 disables retry policy globally.\nThis - setting can be overridden on a per-host basis using the - Virtual Service\nAPI.\nAll settings in the retry policy - except `perTryTimeout` can currently be\nconfigured globally - via this field." - properties: - attempts: - description: |- - Number of retries to be allowed for a given request. The interval - between retries will be determined automatically (25ms+). When request - `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) - or `per_try_timeout` is configured, the actual number of retries attempted also depends on - the specified request `timeout` and `per_try_timeout` values. MUST BE >= 0. If `0`, retries will be disabled. - The maximum possible number of requests made will be 1 + `attempts`. - format: int32 - type: integer - perTryTimeout: - description: |- - Timeout per attempt for a given request, including the initial call and any retries. Format: 1h/1m/1s/1ms. MUST BE >=1ms. - Default is same value as request - `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), - which means no timeout. - type: string - retryOn: - description: |- - Specifies the conditions under which retry takes place. - One or more policies can be specified using a ‘,’ delimited list. - See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on) - and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details. - - In addition to the policies specified above, a list of HTTP status codes can be passed, such as `retryOn: "503,reset"`. - Note these status codes refer to the actual responses received from the destination. - For example, if a connection is reset, Istio will translate this to 503 for it's response. - However, the destination did not return a 503 error, so this would not match `"503"` (it would, however, match `"reset"`). - - If not specified, this defaults to `connect-failure,refused-stream,unavailable,cancelled,503`. - type: string - retryRemoteLocalities: - description: |- - Flag to specify whether the retries should retry to other localities. - See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details. - type: boolean - type: object - defaultProviders: - description: Specifies extension providers to use by default - in Istio configuration resources. - properties: - accessLogging: - description: Name of the default provider(s) for access - logging. - items: - type: string - type: array - metrics: - description: Name of the default provider(s) for metrics. - items: - type: string - type: array - tracing: - description: Name of the default provider(s) for tracing. - items: - type: string - type: array - type: object - defaultServiceExportTo: - description: |- - The default value for the ServiceEntry.exportTo field and services - imported through container registry integrations, e.g. this applies to - Kubernetes Service resources. The value is a list of namespace names and - reserved namespace aliases. The allowed namespace aliases are: - ``` - * - All Namespaces - . - Current Namespace - ~ - No Namespace - ``` - If not set the system will use "*" as the default value which implies that - services are exported to all namespaces. - - `All namespaces` is a reasonable default for implementations that don't - need to restrict access or visibility of services across namespace - boundaries. If that requirement is present it is generally good practice to - make the default `Current namespace` so that services are only visible - within their own namespaces by default. Operators can then expand the - visibility of services to other namespaces as needed. Use of `No Namespace` - is expected to be rare but can have utility for deployments where - dependency management needs to be precise even within the scope of a single - namespace. - - For further discussion see the reference documentation for `ServiceEntry`, - `Sidecar`, and `Gateway`. - items: - type: string - type: array - defaultVirtualServiceExportTo: - description: |- - The default value for the VirtualService.exportTo field. Has the same - syntax as `defaultServiceExportTo`. - - If not set the system will use "*" as the default value which implies that - virtual services are exported to all namespaces - items: - type: string - type: array - disableEnvoyListenerLog: - description: |- - This flag disables Envoy Listener logs. - See [Listener Access Log](https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-access-log) - Istio Enables Envoy's listener access logs on "NoRoute" response flag. - Default value is `false`. - type: boolean - discoverySelectors: - description: |- - A list of Kubernetes selectors that specify the set of namespaces that Istio considers when - computing configuration updates for sidecars. This can be used to reduce Istio's computational load - by limiting the number of entities (including services, pods, and endpoints) that are watched and processed. - If omitted, Istio will use the default behavior of processing all namespaces in the cluster. - Elements in the list are disjunctive (OR semantics), i.e. a namespace will be included if it matches any selector. - The following example selects any namespace that matches either below: - 1. The namespace has both of these labels: `env: prod` and `region: us-east1` - 2. The namespace has label `app` equal to `cassandra` or `spark`. - ```yaml - discoverySelectors: - - matchLabels: - env: prod - region: us-east1 - - matchExpressions: - - key: app - operator: In - values: - - cassandra - - spark - - ``` - Refer to the [Kubernetes selector docs](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors) - for additional detail on selector semantics. - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - dnsRefreshRate: - description: |- - Configures DNS refresh rate for Envoy clusters of type `STRICT_DNS` - Default refresh rate is `60s`. - type: string - enableAutoMtls: - description: |- - This flag is used to enable mutual `TLS` automatically for service to service communication - within the mesh, default true. - If set to true, and a given service does not have a corresponding `DestinationRule` configured, - or its `DestinationRule` does not have ClientTLSSettings specified, Istio configures client side - TLS configuration appropriately. More specifically, - If the upstream authentication policy is in `STRICT` mode, use Istio provisioned certificate - for mutual `TLS` to connect to upstream. - If upstream service is in plain text mode, use plain text. - If the upstream authentication policy is in PERMISSIVE mode, Istio configures clients to use - mutual `TLS` when server sides are capable of accepting mutual `TLS` traffic. - If service `DestinationRule` exists and has `ClientTLSSettings` specified, that is always used instead. - type: boolean - enableEnvoyAccessLogService: - description: |- - This flag enables Envoy's gRPC Access Log Service. - See [Access Log Service](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/grpc/v3/als.proto) - for details about Envoy's gRPC Access Log Service API. - Default value is `false`. - type: boolean - enablePrometheusMerge: - description: |- - If enabled, Istio agent will merge metrics exposed by the application with metrics from Envoy - and Istio agent. The sidecar injection will replace `prometheus.io` annotations present on the pod - and redirect them towards Istio agent, which will then merge metrics of from the application with Istio metrics. - This relies on the annotations `prometheus.io/scrape`, `prometheus.io/port`, and - `prometheus.io/path` annotations. - If you are running a separately managed Envoy with an Istio sidecar, this may cause issues, as the metrics will collide. - In this case, it is recommended to disable aggregation on that deployment with the - `prometheus.istio.io/merge-metrics: "false"` annotation. - If not specified, this will be enabled by default. - type: boolean - enableTracing: - description: |- - Flag to control generation of trace spans and request IDs. - Requires a trace span collector defined in the proxy configuration. - type: boolean - extensionProviders: - description: |- - Defines a list of extension providers that extend Istio's functionality. For example, the AuthorizationPolicy - can be used with an extension provider to delegate the authorization decision to a custom authorization system. - items: - properties: - datadog: - description: Configures a Datadog tracing provider. - properties: - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the Datadog agent. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "datadog.default.svc.cluster.local" or "bar/datadog.example.com". - type: string - required: - - port - - service - type: object - envoyExtAuthzGrpc: - description: Configures an external authorizer that - implements the Envoy ext_authz filter authorization - check service using the gRPC API. - properties: - failOpen: - description: |- - If true, the HTTP request or TCP connection will be allowed even if the communication with the authorization service has failed, - or if the authorization service has returned a HTTP 5xx error. - Default is false. For HTTP request, it will be rejected with 403 (HTTP Forbidden). For TCP connection, it will be closed immediately. - type: boolean - includeRequestBodyInCheck: - description: If set, the client request body will - be included in the authorization request sent - to the authorization service. - properties: - allowPartialMessage: - description: |- - When this field is true, ext-authz filter will buffer the message until maxRequestBytes is reached. - The authorization request will be dispatched and no 413 HTTP error will be returned by the filter. - A "x-envoy-auth-partial-body: false|true" metadata header will be added to the authorization request message - indicating if the body data is partial. - type: boolean - maxRequestBytes: - description: |- - Sets the maximum size of a message body that the ext-authz filter will hold in memory. - If maxRequestBytes is reached, and allowPartialMessage is false, Envoy will return a 413 (Payload Too Large). - Otherwise the request will be sent to the provider with a partial message. - Note that this setting will have precedence over the failOpen field, the 413 will be returned even when the - failOpen is set to true. - format: int32 - type: integer - packAsBytes: - description: |- - If true, the body sent to the external authorization service in the gRPC authorization request is set with raw bytes - in the [raw_body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L153). - Otherwise, it will be filled with UTF-8 string in the [body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L147). - This field only works with the envoyExtAuthzGrpc provider and has no effect for the envoyExtAuthzHttp provider. - type: boolean - type: object - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ext_authz gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "my-ext-authz.foo.svc.cluster.local" or "bar/my-ext-authz.example.com". - type: string - statusOnError: - description: |- - Sets the HTTP status that is returned to the client when there is a network error to the authorization service. - The default status is "403" (HTTP Forbidden). - type: string - timeout: - description: |- - The maximum duration that the proxy will wait for a response from the provider, this is the timeout for a specific request (default timeout: 600s). - When this timeout condition is met, the proxy marks the communication to the authorization service as failure. - In this situation, the response sent back to the client will depend on the configured `failOpen` field. - type: string - required: - - port - - service - type: object - envoyExtAuthzHttp: - description: Configures an external authorizer that - implements the Envoy ext_authz filter authorization - check service using the HTTP API. - properties: - failOpen: - description: |- - If true, the user request will be allowed even if the communication with the authorization service has failed, - or if the authorization service has returned a HTTP 5xx error. - Default is false and the request will be rejected with "Forbidden" response. - type: boolean - headersToDownstreamOnAllow: - description: |- - List of headers from the authorization service that should be forwarded to downstream when the authorization - check result is allowed (HTTP code 200). - If not specified, the original response will not be modified and forwarded to downstream as-is. - Note, any existing headers will be overridden. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - headersToDownstreamOnDeny: - description: |- - List of headers from the authorization service that should be forwarded to downstream when the authorization - check result is not allowed (HTTP code other than 200). - If not specified, all the authorization response headers, except *Authority (Host)* will be in the response to - the downstream. - When a header is included in this list, *Path*, *Status*, *Content-Length*, *WWWAuthenticate* and *Location* are - automatically added. - Note, the body from the authorization service is always included in the response to downstream. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - headersToUpstreamOnAllow: - description: |- - List of headers from the authorization service that should be added or overridden in the original request and - forwarded to the upstream when the authorization check result is allowed (HTTP code 200). - If not specified, the original request will not be modified and forwarded to backend as-is. - Note, any existing headers will be overridden. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - includeAdditionalHeadersInCheck: - additionalProperties: - type: string - description: |- - Set of additional fixed headers that should be included in the authorization request sent to the authorization service. - Key is the header name and value is the header value. - Note that client request of the same key or headers specified in includeRequestHeadersInCheck will be overridden. - type: object - includeHeadersInCheck: - description: |- - DEPRECATED. Use includeRequestHeadersInCheck instead. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - items: - type: string - type: array - includeRequestBodyInCheck: - description: If set, the client request body will - be included in the authorization request sent - to the authorization service. - properties: - allowPartialMessage: - description: |- - When this field is true, ext-authz filter will buffer the message until maxRequestBytes is reached. - The authorization request will be dispatched and no 413 HTTP error will be returned by the filter. - A "x-envoy-auth-partial-body: false|true" metadata header will be added to the authorization request message - indicating if the body data is partial. - type: boolean - maxRequestBytes: - description: |- - Sets the maximum size of a message body that the ext-authz filter will hold in memory. - If maxRequestBytes is reached, and allowPartialMessage is false, Envoy will return a 413 (Payload Too Large). - Otherwise the request will be sent to the provider with a partial message. - Note that this setting will have precedence over the failOpen field, the 413 will be returned even when the - failOpen is set to true. - format: int32 - type: integer - packAsBytes: - description: |- - If true, the body sent to the external authorization service in the gRPC authorization request is set with raw bytes - in the [raw_body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L153). - Otherwise, it will be filled with UTF-8 string in the [body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L147). - This field only works with the envoyExtAuthzGrpc provider and has no effect for the envoyExtAuthzHttp provider. - type: boolean - type: object - includeRequestHeadersInCheck: - description: |- - List of client request headers that should be included in the authorization request sent to the authorization service. - Note that in addition to the headers specified here following headers are included by default: - 1. *Host*, *Method*, *Path* and *Content-Length* are automatically sent. - 2. *Content-Length* will be set to 0 and the request will not have a message body. However, the authorization - request can include the buffered client request body (controlled by includeRequestBodyInCheck setting), - consequently the value of Content-Length of the authorization request reflects the size of its payload size. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - pathPrefix: - description: |- - Sets a prefix to the value of authorization request header *Path*. - For example, setting this to "/check" for an original user request at path "/admin" will cause the - authorization check request to be sent to the authorization service at the path "/check/admin" instead of "/admin". - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ext_authz HTTP authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "my-ext-authz.foo.svc.cluster.local" or "bar/my-ext-authz.example.com". - type: string - statusOnError: - description: |- - Sets the HTTP status that is returned to the client when there is a network error to the authorization service. - The default status is "403" (HTTP Forbidden). - type: string - timeout: - description: |- - The maximum duration that the proxy will wait for a response from the provider (default timeout: 600s). - When this timeout condition is met, the proxy marks the communication to the authorization service as failure. - In this situation, the response sent back to the client will depend on the configured `failOpen` field. - type: string - required: - - port - - service - type: object - envoyFileAccessLog: - description: Configures an Envoy File Access Log provider. - properties: - logFormat: - description: Optional. Allows overriding of the - default access log format. - properties: - labels: - additionalProperties: - type: string - description: "JSON structured format for the - envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators)\ncan - be used as values for fields within the Struct. - Values are rendered\nas strings, numbers, - or boolean values, as appropriate\n(see: [format - dictionaries](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-dictionaries)). - Nested JSON is\nsupported for some command - operators (e.g. `FILTER_STATE` or `DYNAMIC_METADATA`).\nUse - `labels: {}` for default envoy JSON log format.\n\nExample:\n```\nlabels:\n\n\tstatus: - \"%RESPONSE_CODE%\"\n\tmessage: \"%LOCAL_REPLY_BODY%\"\n\n```" - type: object - text: - description: |- - Textual format for the envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators) may be - used in the format. The [format string documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-strings) - provides more information. - - NOTE: Istio will insert a newline ('\n') on all formats (if missing). - - Example: `text: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%"` - type: string - type: object - x-kubernetes-validations: - - message: At most one of [text labels] should be - set - rule: (has(self.text)?1:0) + (has(self.labels)?1:0) - <= 1 - path: - description: |- - Path to a local file to write the access log entries. - This may be used to write to streams, via `/dev/stderr` and `/dev/stdout` - If unspecified, defaults to `/dev/stdout`. - type: string - type: object - envoyHttpAls: - description: Configures an Envoy Access Logging Service - provider for HTTP traffic. - properties: - additionalRequestHeadersToLog: - description: Optional. Additional request headers - to log. - items: - type: string - type: array - additionalResponseHeadersToLog: - description: Optional. Additional response headers - to log. - items: - type: string - type: array - additionalResponseTrailersToLog: - description: Optional. Additional response trailers - to log. - items: - type: string - type: array - filterStateObjectsToLog: - description: Optional. Additional filter state objects - to log. - items: - type: string - type: array - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "http_envoy_accesslog" - - "listener_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - envoyOtelAls: - description: Configures an Envoy Open Telemetry Access - Logging Service provider. - properties: - logFormat: - description: |- - Optional. Format for the proxy access log - Empty value results in proxy's default access log format, following Envoy access logging formatting. - properties: - labels: - additionalProperties: - type: string - description: "Optional. Additional attributes - that describe the specific event occurrence.\nStructured - format for the envoy access logs. Envoy [command - operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators)\ncan - be used as values for fields within the Struct. - Values are rendered\nas strings, numbers, - or boolean values, as appropriate\n(see: [format - dictionaries](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-dictionaries)). - Nested JSON is\nsupported for some command - operators (e.g. FILTER_STATE or DYNAMIC_METADATA).\nAlias - to `attributes` field in [Open Telemetry](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/open_telemetry/v3/logs_service.proto)\n\nExample:\n```\nlabels:\n\n\tstatus: - \"%RESPONSE_CODE%\"\n\tmessage: \"%LOCAL_REPLY_BODY%\"\n\n```" - type: object - text: - description: |- - Textual format for the envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators) may be - used in the format. The [format string documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-strings) - provides more information. - Alias to `body` field in [Open Telemetry](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/open_telemetry/v3/logs_service.proto) - Example: `text: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%"` - type: string - type: object - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "otel_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - envoyTcpAls: - description: Configures an Envoy Access Logging Service - provider for TCP traffic. - properties: - filterStateObjectsToLog: - description: Optional. Additional filter state objects - to log. - items: - type: string - type: array - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "tcp_envoy_accesslog" - - "listener_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - lightstep: - description: |- - Configures a Lightstep tracing provider. - Deprecated: For Istio 1.15+, please use an OpenTelemetryTracingProvider instead, more details can be found at https://github.com/istio/istio/issues/40027 - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - properties: - accessToken: - description: The Lightstep access token. - type: string - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the Lightstep collector. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "lightstep.default.svc.cluster.local" or "bar/lightstep.example.com". - type: string - required: - - port - - service - type: object - name: - description: REQUIRED. A unique name identifying the - extension provider. - type: string - opencensus: - description: |- - Configures an OpenCensusAgent tracing provider. - Deprecated: OpenCensus is deprecated, more details can be found at https://opentelemetry.io/blog/2023/sunsetting-opencensus/ - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - properties: - context: - description: |- - Specifies the set of context propagation headers used for distributed - tracing. Default is `["W3C_TRACE_CONTEXT"]`. If multiple values are specified, - the proxy will attempt to read each header for each request and will - write all headers. - items: - description: |- - TraceContext selects the context propagation headers used for - distributed tracing. - enum: - - UNSPECIFIED - - W3C_TRACE_CONTEXT - - GRPC_BIN - - CLOUD_TRACE_CONTEXT - - B3 - type: string - type: array - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the OpenCensusAgent. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "ocagent.default.svc.cluster.local" or "bar/ocagent.example.com". - type: string - required: - - port - - service - type: object - opentelemetry: - description: Configures an OpenTelemetry tracing provider. - properties: - dynatraceSampler: - description: |- - The Dynatrace adaptive traffic management (ATM) sampler. - - Example configuration: - - ```yaml - - name: otel-tracing - opentelemetry: - port: 443 - service: "{your-environment-id}.live.dynatrace.com" - http: - path: "/api/v2/otlp/v1/traces" - timeout: 10s - headers: - - name: "Authorization" - value: "Api-Token dt0c01." - resourceDetectors: - dynatrace: {} - dynatraceSampler: - tenant: "{your-environment-id}" - clusterId: 1234 - properties: - clusterId: - description: |- - REQUIRED. The identifier of the cluster in the Dynatrace platform. - The cluster here is Dynatrace-specific concept and not related to the cluster concept in Istio/Envoy. - - The value can be obtained from the Istio deployment page in Dynatrace. - format: int32 - type: integer - httpService: - description: |- - Optional. Dynatrace HTTP API to obtain sampling configuration. - - When not provided, the Dynatrace Sampler will re-use the configuration from the OpenTelemetryTracingProvider HTTP Exporter - (`service`, `port` and `http`), including the access token. - properties: - http: - description: REQUIRED. Specifies sampling - configuration URI. - properties: - headers: - description: |- - Optional. Allows specifying custom HTTP headers that will be added - to each HTTP request sent. - items: - properties: - name: - description: REQUIRED. The HTTP - header name. - type: string - value: - description: REQUIRED. The HTTP - header value. - type: string - required: - - name - - value - type: object - type: array - path: - description: REQUIRED. Specifies the - path on the service. - type: string - timeout: - description: |- - Optional. Specifies the timeout for the HTTP request. - If not specified, the default is 3s. - type: string - required: - - path - type: object - port: - description: REQUIRED. Specifies the port - of the service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the Dynatrace environment to obtain the sampling configuration. - The format is ``, where `` is the fully qualified Dynatrace environment - host name defined in the ServiceEntry. - - Example: "{your-environment-id}.live.dynatrace.com". - type: string - required: - - http - - port - - service - type: object - rootSpansPerMinute: - description: |- - Optional. Number of sampled spans per minute to be used - when the adaptive value cannot be obtained from the Dynatrace API. - - A default value of `1000` is used when: - - - `rootSpansPerMinute` is unset - - `rootSpansPerMinute` is set to 0 - format: int32 - type: integer - tenant: - description: |- - REQUIRED. The Dynatrace customer's tenant identifier. - - The value can be obtained from the Istio deployment page in Dynatrace. - type: string - required: - - clusterId - - tenant - type: object - grpc: - description: "Optional. Specifies the configuration - for exporting OTLP traces via GRPC.\nWhen empty, - traces will check whether HTTP is set.\nIf not, - traces will use default GRPC configurations.\n\nThe - following example shows how to configure the OpenTelemetry - ExtensionProvider to export via GRPC:\n\n1. Add/change - the OpenTelemetry extension provider in `MeshConfig`\n```yaml\n - \ - name: opentelemetry\n opentelemetry:\n - \ port: 8090\n service: tracing.example.com\n - \ grpc:\n timeout: 10s\n initialMetadata:\n - \ - name: \"Authentication\"\n value: \"token-xxxxx\"\n\n```\n\n2. - Deploy a `ServiceEntry` for the observability - back-end\n```yaml\napiVersion: networking.istio.io/v1alpha3\nkind: - ServiceEntry\nmetadata:\n\n\tname: tracing-grpc\n\nspec:\n\n\thosts:\n\t- - tracing.example.com\n\tports:\n\t- number: 8090\n\t - \ name: grpc-port\n\t protocol: GRPC\n\tresolution: - DNS\n\tlocation: MESH_EXTERNAL\n\n```" - properties: - initialMetadata: - description: |- - Optional. Additional metadata to include in streams initiated to the GrpcService. This can be used for - scenarios in which additional ad hoc authorization headers (e.g. “x-foo-bar: baz-key“) are to - be injected. - items: - properties: - name: - description: REQUIRED. The HTTP header - name. - type: string - value: - description: REQUIRED. The HTTP header - value. - type: string - required: - - name - - value - type: object - type: array - timeout: - description: Optional. Specifies the timeout - for the GRPC request. - type: string - type: object - http: - description: "Optional. Specifies the configuration - for exporting OTLP traces via HTTP.\nWhen empty, - traces will be exported via gRPC.\n\nThe following - example shows how to configure the OpenTelemetry - ExtensionProvider to export via HTTP:\n\n1. Add/change - the OpenTelemetry extension provider in `MeshConfig`\n```yaml\n - \ - name: otel-tracing\n opentelemetry:\n port: - 443\n service: my.olly-backend.com\n http:\n - \ path: \"/api/otlp/traces\"\n timeout: 10s\n - \ headers:\n - name: \"my-custom-header\"\n - \ value: \"some value\"\n\n```\n\n2. Deploy - a `ServiceEntry` for the observability back-end\n```yaml\napiVersion: - networking.istio.io/v1alpha3\nkind: ServiceEntry\nmetadata:\n\n\tname: - my-olly-backend\n\nspec:\n\n\thosts:\n\t- my.olly-backend.com\n\tports:\n\t- - number: 443\n\t name: https-port\n\t protocol: - HTTPS\n\tresolution: DNS\n\tlocation: MESH_EXTERNAL\n\n---\napiVersion: - networking.istio.io/v1alpha3\nkind: DestinationRule\nmetadata:\n\n\tname: - my-olly-backend\n\nspec:\n\n\thost: my.olly-backend.com\n\ttrafficPolicy:\n\t - \ portLevelSettings:\n\t - port:\n\t number: - 443\n\t tls:\n\t mode: SIMPLE\n\n```" - properties: - headers: - description: |- - Optional. Allows specifying custom HTTP headers that will be added - to each HTTP request sent. - items: - properties: - name: - description: REQUIRED. The HTTP header - name. - type: string - value: - description: REQUIRED. The HTTP header - value. - type: string - required: - - name - - value - type: object - type: array - path: - description: REQUIRED. Specifies the path on - the service. - type: string - timeout: - description: |- - Optional. Specifies the timeout for the HTTP request. - If not specified, the default is 3s. - type: string - required: - - path - type: object - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - resourceDetectors: - description: |- - Optional. Specifies [Resource Detectors](https://opentelemetry.io/docs/specs/otel/resource/sdk/) - to be used by the OpenTelemetry Tracer. When multiple resources are provided, they are merged - according to the OpenTelemetry [Resource specification](https://opentelemetry.io/docs/specs/otel/resource/sdk/#merge). - - The following example shows how to configure the Environment Resource Detector, that will - read the attributes from the environment variable `OTEL_RESOURCE_ATTRIBUTES`: - - ```yaml - - name: otel-tracing - opentelemetry: - port: 443 - service: my.olly-backend.com - resourceDetectors: - environment: {} - - ``` - properties: - dynatrace: - description: |- - Dynatrace Resource Detector. - The resource detector reads from the Dynatrace enrichment files - and adds host/process related attributes to the OpenTelemetry resource. - - See: [Enrich ingested data with Dynatrace-specific dimensions](https://docs.dynatrace.com/docs/shortlink/enrichment-files) - type: object - environment: - description: |- - OpenTelemetry Environment Resource Detector. - The resource detector reads attributes from the environment variable `OTEL_RESOURCE_ATTRIBUTES` - and adds them to the OpenTelemetry resource. - - See: [Resource specification](https://opentelemetry.io/docs/specs/otel/resource/sdk/#specifying-resource-information-via-an-environment-variable) - type: object - type: object - service: - description: |- - REQUIRED. Specifies the OpenTelemetry endpoint that will receive OTLP traces. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "otlp.default.svc.cluster.local" or "bar/otlp.example.com". - type: string - required: - - port - - service - type: object - x-kubernetes-validations: - - message: At most one of [dynatraceSampler] should - be set - rule: (has(self.dynatraceSampler)?1:0) <= 1 - prometheus: - description: Configures a Prometheus metrics provider. - type: object - skywalking: - description: Configures a Apache SkyWalking provider. - properties: - accessToken: - description: Optional. The SkyWalking OAP access - token. - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the SkyWalking receiver. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "skywalking.default.svc.cluster.local" or "bar/skywalking.example.com". - type: string - required: - - port - - service - type: object - stackdriver: - description: Configures a Stackdriver provider. - properties: - debug: - description: |- - debug enables trace output to stdout. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - type: boolean - logging: - description: Optional. Controls Stackdriver logging - behavior. - properties: - labels: - additionalProperties: - type: string - description: "Collection of tag names and tag - expressions to include in the log\nentry. - Conflicts are resolved by the tag name by - overriding previously\nsupplied values.\n\nExample:\n\n\tlabels:\n\t - \ path: request.url_path\n\t foo: request.headers['x-foo']" - type: object - type: object - maxNumberOfAnnotations: - description: |- - The global default max number of annotation events per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxNumberOfAttributes: - description: |- - The global default max number of attributes per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxNumberOfMessageEvents: - description: |- - The global default max number of message events per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - type: object - zipkin: - description: Configures a tracing provider that uses - the Zipkin API. - properties: - enable64bitTraceId: - description: |- - Optional. A 128 bit trace id will be used in Istio. - If true, will result in a 64 bit trace id being used. - type: boolean - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - path: - description: |- - Optional. Specifies the endpoint of Zipkin API. - The default value is "/api/v2/spans". - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that the Zipkin API. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "zipkin.default.svc.cluster.local" or "bar/zipkin.example.com". - type: string - required: - - port - - service - type: object - required: - - name - type: object - x-kubernetes-validations: - - message: At most one of [envoyExtAuthzHttp envoyExtAuthzGrpc - zipkin lightstep datadog stackdriver opencensus skywalking - opentelemetry prometheus envoyFileAccessLog envoyHttpAls - envoyTcpAls envoyOtelAls] should be set - rule: (has(self.envoyExtAuthzHttp)?1:0) + (has(self.envoyExtAuthzGrpc)?1:0) - + (has(self.zipkin)?1:0) + (has(self.lightstep)?1:0) - + (has(self.datadog)?1:0) + (has(self.stackdriver)?1:0) - + (has(self.opencensus)?1:0) + (has(self.skywalking)?1:0) - + (has(self.opentelemetry)?1:0) + (has(self.prometheus)?1:0) - + (has(self.envoyFileAccessLog)?1:0) + (has(self.envoyHttpAls)?1:0) - + (has(self.envoyTcpAls)?1:0) + (has(self.envoyOtelAls)?1:0) - <= 1 - maxItems: 1000 - type: array - h2UpgradePolicy: - description: |- - Specify if http1.1 connections should be upgraded to http2 by default. - if sidecar is installed on all pods in the mesh, then this should be set to `UPGRADE`. - If one or more services or namespaces do not have sidecar(s), then this should be set to `DO_NOT_UPGRADE`. - It can be enabled by destination using the `destinationRule.trafficPolicy.connectionPool.http.h2UpgradePolicy` override. - enum: - - DO_NOT_UPGRADE - - UPGRADE - type: string - inboundClusterStatName: - description: |- - Name to be used while emitting statistics for inbound clusters. The same pattern is used while computing stat prefix for - network filters like TCP and Redis. - By default, Istio emits statistics with the pattern `inbound|||`. - For example `inbound|7443|grpc-reviews|reviews.prod.svc.cluster.local`. This can be used to override that pattern. - - A Pattern can be composed of various pre-defined variables. The following variables are supported. - - - `%SERVICE%` - Will be substituted with short hostname of the service. - - `%SERVICE_NAME%` - Will be substituted with name of the service. - - `%SERVICE_FQDN%` - Will be substituted with FQDN of the service. - - `%SERVICE_PORT%` - Will be substituted with port of the service. - - `%TARGET_PORT%` - Will be substituted with the target port of the service. - - `%SERVICE_PORT_NAME%` - Will be substituted with port name of the service. - - Following are some examples of supported patterns for reviews: - - - `%SERVICE_FQDN%_%SERVICE_PORT%` will use reviews.prod.svc.cluster.local_7443 as the stats name. - - `%SERVICE%` will use reviews.prod as the stats name. - type: string - inboundTrafficPolicy: - description: |- - Set the default behavior of the sidecar for handling inbound - traffic to the application. If your application listens on - localhost, you will need to set this to `LOCALHOST`. - properties: - mode: - enum: - - PASSTHROUGH - - LOCALHOST - type: string - type: object - ingressClass: - description: |- - Class of ingress resources to be processed by Istio ingress - controller. This corresponds to the value of - `kubernetes.io/ingress.class` annotation. - type: string - ingressControllerMode: - description: |- - Defines whether to use Istio ingress controller for annotated or all ingress resources. - Default mode is `STRICT`. - enum: - - UNSPECIFIED - - "OFF" - - DEFAULT - - STRICT - type: string - ingressSelector: - description: |- - Defines which gateway deployment to use as the Ingress controller. This field corresponds to - the Gateway.selector field, and will be set as `istio: INGRESS_SELECTOR`. - By default, `ingressgateway` is used, which will select the default IngressGateway as it has the - `istio: ingressgateway` labels. - It is recommended that this is the same value as ingressService. - type: string - ingressService: - description: |- - Name of the Kubernetes service used for the istio ingress controller. - If no ingress controller is specified, the default value `istio-ingressgateway` is used. - type: string - localityLbSetting: - description: |- - Locality based load balancing distribution or failover settings. - If unspecified, locality based load balancing will be enabled by default. - However, this requires outlierDetection to actually take effect for a particular - service, see https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/failover/ - properties: - distribute: - description: |- - Optional: only one of distribute, failover or failoverPriority can be set. - Explicitly specify loadbalancing weight across different zones and geographical locations. - Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) - If empty, the locality weight is set according to the endpoints number within it. - items: - description: |- - Describes how traffic originating in the 'from' zone or sub-zone is - distributed over a set of 'to' zones. Syntax for specifying a zone is - {region}/{zone}/{sub-zone} and terminal wildcards are allowed on any - segment of the specification. Examples: - - `*` - matches all localities - - `us-west/*` - all zones and sub-zones within the us-west region - - `us-west/zone-1/*` - all sub-zones within us-west/zone-1 - properties: - from: - description: Originating locality, '/' separated, - e.g. 'region/zone/sub_zone'. - type: string - to: - additionalProperties: - format: int32 - type: integer - description: |- - Map of upstream localities to traffic distribution weights. The sum of - all weights should be 100. Any locality not present will - receive no traffic. - type: object - type: object - type: array - enabled: - description: |- - enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. - e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is. - type: boolean - failover: - description: |- - Optional: only one of distribute, failover or failoverPriority can be set. - Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. - Should be used together with OutlierDetection to detect unhealthy endpoints. - Note: if no OutlierDetection specified, this will not take effect. - items: - description: |- - Specify the traffic failover policy across regions. Since zone and sub-zone - failover is supported by default this only needs to be specified for - regions when the operator needs to constrain traffic failover so that - the default behavior of failing over to any endpoint globally does not - apply. This is useful when failing over traffic across regions would not - improve service health or may need to be restricted for other reasons - like regulatory controls. - properties: - from: - description: Originating region. - type: string - to: - description: |- - Destination region the traffic will fail over to when endpoints in - the 'from' region becomes unhealthy. - type: string - type: object - type: array - failoverPriority: - description: |- - failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing. - This is to support traffic failover across different groups of endpoints. - Two kinds of labels can be specified: - - - Specify only label keys `[key1, key2, key3]`, istio would compare the label values of client with endpoints. - Suppose there are total N label keys `[key1, key2, key3, ...keyN]` specified: - - 1. Endpoints matching all N labels with the client proxy have priority P(0) i.e. the highest priority. - 2. Endpoints matching the first N-1 labels with the client proxy have priority P(1) i.e. second highest priority. - 3. By extension of this logic, endpoints matching only the first label with the client proxy has priority P(N-1) i.e. second lowest priority. - 4. All the other endpoints have priority P(N) i.e. lowest priority. - - - Specify labels with key and value `[key1=value1, key2=value2, key3=value3]`, istio would compare the labels with endpoints. - Suppose there are total N labels `[key1=value1, key2=value2, key3=value3, ...keyN=valueN]` specified: - - 1. Endpoints matching all N labels have priority P(0) i.e. the highest priority. - 2. Endpoints matching the first N-1 labels have priority P(1) i.e. second highest priority. - 3. By extension of this logic, endpoints matching only the first label has priority P(N-1) i.e. second lowest priority. - 4. All the other endpoints have priority P(N) i.e. lowest priority. - - Note: For a label to be considered for match, the previous labels must match, i.e. nth label would be considered matched only if first n-1 labels match. - - It can be any label specified on both client and server workloads. - The following labels which have special semantic meaning are also supported: - - - `topology.istio.io/network` is used to match the network metadata of an endpoint, which can be specified by pod/namespace label `topology.istio.io/network`, sidecar env `ISTIO_META_NETWORK` or MeshNetworks. - - `topology.istio.io/cluster` is used to match the clusterID of an endpoint, which can be specified by pod label `topology.istio.io/cluster` or pod env `ISTIO_META_CLUSTER_ID`. - - `topology.kubernetes.io/region` is used to match the region metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/region` or the deprecated label `failure-domain.beta.kubernetes.io/region`. - - `topology.kubernetes.io/zone` is used to match the zone metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/zone` or the deprecated label `failure-domain.beta.kubernetes.io/zone`. - - `topology.istio.io/subzone` is used to match the subzone metadata of an endpoint, which maps to Istio node label `topology.istio.io/subzone`. - - `kubernetes.io/hostname` is used to match the current node of an endpoint, which maps to Kubernetes node label `kubernetes.io/hostname`. - - The below topology config indicates the following priority levels: - - ```yaml - failoverPriority: - - "topology.istio.io/network" - - "topology.kubernetes.io/region" - - "topology.kubernetes.io/zone" - - "topology.istio.io/subzone" - ``` - - 1. endpoints match same [network, region, zone, subzone] label with the client proxy have the highest priority. - 2. endpoints have same [network, region, zone] label but different [subzone] label with the client proxy have the second highest priority. - 3. endpoints have same [network, region] label but different [zone] label with the client proxy have the third highest priority. - 4. endpoints have same [network] but different [region] labels with the client proxy have the fourth highest priority. - 5. all the other endpoints have the same lowest priority. - - Suppose a service associated endpoints reside in multi clusters, the below example represents: - 1. endpoints in `clusterA` and has `version=v1` label have P(0) priority. - 2. endpoints not in `clusterA` but has `version=v1` label have P(1) priority. - 2. all the other endpoints have P(2) priority. - - ```yaml - failoverPriority: - - "version=v1" - - "topology.istio.io/cluster=clusterA" - ``` - - Optional: only one of distribute, failover or failoverPriority can be set. - And it should be used together with `OutlierDetection` to detect unhealthy endpoints, otherwise has no effect. - items: - type: string - type: array - type: object - meshMTLS: - description: "The below configuration parameters can be used - to specify TLSConfig for mesh traffic.\nFor example, a user - could enable min TLS version for ISTIO_MUTUAL traffic and - specify a curve for non ISTIO_MUTUAL traffic like below:\n```yaml\nmeshConfig:\n\n\tmeshMTLS:\n\t - \ minProtocolVersion: TLSV1_3\n\ttlsDefaults:\n\t Note: - applicable only for non ISTIO_MUTUAL scenarios\n\t ecdhCurves:\n\t - \ - P-256\n\t - P-512\n\n```\nConfiguration of mTLS - for traffic between workloads with ISTIO_MUTUAL TLS traffic.\n\nNote: - Mesh mTLS does not respect ECDH curves." - properties: - cipherSuites: - description: |- - Optional: If specified, the TLS connection will only support the specified cipher list when negotiating TLS 1.0-1.2. - If not specified, the following cipher suites will be used: - ``` - ECDHE-ECDSA-AES256-GCM-SHA384 - ECDHE-RSA-AES256-GCM-SHA384 - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES128-GCM-SHA256 - AES256-GCM-SHA384 - AES128-GCM-SHA256 - ``` - items: - type: string - type: array - ecdhCurves: - description: |- - Optional: If specified, the TLS connection will only support the specified ECDH curves for the DH key exchange. - If not specified, the default curves enforced by Envoy will be used. For details about the default curves, refer to - [Ecdh Curves](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto). - items: - type: string - type: array - minProtocolVersion: - description: |- - Optional: the minimum TLS protocol version. The default minimum - TLS version will be TLS 1.2. As servers may not be Envoy and be - set to TLS 1.2 (e.g., workloads using mTLS without sidecars), the - minimum TLS version for clients may also be TLS 1.2. - In the current Istio implementation, the maximum TLS protocol version - is TLS 1.3. - enum: - - TLS_AUTO - - TLSV1_2 - - TLSV1_3 - type: string - type: object - outboundClusterStatName: - description: |- - Name to be used while emitting statistics for outbound clusters. The same pattern is used while computing stat prefix for - network filters like TCP and Redis. - By default, Istio emits statistics with the pattern `outbound|||`. - For example `outbound|8080|v2|reviews.prod.svc.cluster.local`. This can be used to override that pattern. - - A Pattern can be composed of various pre-defined variables. The following variables are supported. - - - `%SERVICE%` - Will be substituted with short hostname of the service. - - `%SERVICE_NAME%` - Will be substituted with name of the service. - - `%SERVICE_FQDN%` - Will be substituted with FQDN of the service. - - `%SERVICE_PORT%` - Will be substituted with port of the service. - - `%SERVICE_PORT_NAME%` - Will be substituted with port name of the service. - - `%SUBSET_NAME%` - Will be substituted with subset. - - Following are some examples of supported patterns for reviews: - - - `%SERVICE_FQDN%_%SERVICE_PORT%` will use `reviews.prod.svc.cluster.local_7443` as the stats name. - - `%SERVICE%` will use reviews.prod as the stats name. - type: string - outboundTrafficPolicy: - description: |- - Set the default behavior of the sidecar for handling outbound - traffic from the application. - - Can be overridden at a Sidecar level by setting the `OutboundTrafficPolicy` in the - [Sidecar API](https://istio.io/docs/reference/config/networking/sidecar/#OutboundTrafficPolicy). - - Default mode is `ALLOW_ANY`, which means outbound traffic to unknown destinations will be allowed. - properties: - mode: - enum: - - REGISTRY_ONLY - - ALLOW_ANY - type: string - type: object - pathNormalization: - description: |- - ProxyPathNormalization configures how URL paths in incoming and outgoing HTTP requests are - normalized by the sidecars and gateways. - The normalized paths will be used in all aspects through the requests' lifetime on the - sidecars and gateways, which includes routing decisions in outbound direction (client proxy), - authorization policy match and enforcement in inbound direction (server proxy), and the URL - path proxied to the upstream service. - If not set, the NormalizationType.DEFAULT configuration will be used. - properties: - normalization: - enum: - - DEFAULT - - NONE - - BASE - - MERGE_SLASHES - - DECODE_AND_MERGE_SLASHES - type: string - type: object - protocolDetectionTimeout: - description: |- - Automatic protocol detection uses a set of heuristics to - determine whether the connection is using TLS or not (on the - server side), as well as the application protocol being used - (e.g., http vs tcp). These heuristics rely on the client sending - the first bits of data. For server first protocols like MySQL, - MongoDB, etc. Envoy will timeout on the protocol detection after - the specified period, defaulting to non mTLS plain TCP - traffic. Set this field to tweak the period that Envoy will wait - for the client to send the first bits of data. (MUST BE >=1ms or - 0s to disable). Default detection timeout is 0s (no timeout). - - Setting a timeout is not recommended nor safe. Even high timeouts (>5s) will be hit - occasionally, and when they occur the result is typically broken traffic that may not - recover on its own. Exceptionally high values might solve this, but injecting 60s delays - onto new connections is generally not tenable anyways. - type: string - proxyHttpPort: - description: Port on which Envoy should listen for HTTP PROXY - requests if set. - format: int32 - type: integer - proxyInboundListenPort: - description: |- - Port on which Envoy should listen for all inbound traffic to the pod/vm will be captured to. - Default port is 15006. - format: int32 - type: integer - proxyListenPort: - description: |- - Port on which Envoy should listen for all outbound traffic to other services. - Default port is 15001. - format: int32 - type: integer - rootNamespace: - description: |- - The namespace to treat as the administrative root namespace for - Istio configuration. When processing a leaf namespace Istio will search for - declarations in that namespace first and if none are found it will - search in the root namespace. Any matching declaration found in the root - namespace is processed as if it were declared in the leaf namespace. - - The precise semantics of this processing are documented on each resource - type. - type: string - serviceSettings: - description: Settings to be applied to select services. - items: - description: |- - Settings to be applied to select services. - - For example, the following configures all services in namespace "foo" as well as the - "bar" service in namespace "baz" to be considered cluster-local: - - ```yaml - serviceSettings: - - settings: - clusterLocal: true - hosts: - - "*.foo.svc.cluster.local" - - "bar.baz.svc.cluster.local" - - ``` - properties: - hosts: - description: |- - The services to which the Settings should be applied. Services are selected using the hostname - matching rules used by DestinationRule. - - For example: foo.bar.svc.cluster.local, *.baz.svc.cluster.local - items: - type: string - type: array - settings: - description: The settings to apply to the selected services. - properties: - clusterLocal: - description: |- - If true, specifies that the client and service endpoints must reside in the same cluster. - By default, in multi-cluster deployments, the Istio control plane assumes all service - endpoints to be reachable from any client in any of the clusters which are part of the - mesh. This configuration option limits the set of service endpoints visible to a client - to be cluster scoped. - - There are some common scenarios when this can be useful: - - - A service (or group of services) is inherently local to the cluster and has local storage - for that cluster. For example, the kube-system namespace (e.g. the Kube API Server). - - A mesh administrator wants to slowly migrate services to Istio. They might start by first - having services cluster-local and then slowly transition them to mesh-wide. They could do - this service-by-service (e.g. mysvc.myns.svc.cluster.local) or as a group - (e.g. *.myns.svc.cluster.local). - - By default Istio will consider kubernetes.default.svc (i.e. the API Server) as well as all - services in the kube-system namespace to be cluster-local, unless explicitly overridden here. - type: boolean - type: object - type: object - type: array - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the socket - to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsDefaults: - description: |- - Configuration of TLS for all traffic except for ISTIO_MUTUAL mode. - Currently, this supports configuration of ecdhCurves and cipherSuites only. - For ISTIO_MUTUAL TLS settings, use meshMTLS configuration. - properties: - cipherSuites: - description: |- - Optional: If specified, the TLS connection will only support the specified cipher list when negotiating TLS 1.0-1.2. - If not specified, the following cipher suites will be used: - ``` - ECDHE-ECDSA-AES256-GCM-SHA384 - ECDHE-RSA-AES256-GCM-SHA384 - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES128-GCM-SHA256 - AES256-GCM-SHA384 - AES128-GCM-SHA256 - ``` - items: - type: string - type: array - ecdhCurves: - description: |- - Optional: If specified, the TLS connection will only support the specified ECDH curves for the DH key exchange. - If not specified, the default curves enforced by Envoy will be used. For details about the default curves, refer to - [Ecdh Curves](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto). - items: - type: string - type: array - minProtocolVersion: - description: |- - Optional: the minimum TLS protocol version. The default minimum - TLS version will be TLS 1.2. As servers may not be Envoy and be - set to TLS 1.2 (e.g., workloads using mTLS without sidecars), the - minimum TLS version for clients may also be TLS 1.2. - In the current Istio implementation, the maximum TLS protocol version - is TLS 1.3. - enum: - - TLS_AUTO - - TLSV1_2 - - TLSV1_3 - type: string - type: object - trustDomain: - description: |- - The trust domain corresponds to the trust root of a system. - Refer to [SPIFFE-ID](https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain) - type: string - trustDomainAliases: - description: |- - The trust domain aliases represent the aliases of `trustDomain`. - For example, if we have - ```yaml - trustDomain: td1 - trustDomainAliases: ["td2", "td3"] - ``` - Any service with the identity `td1/ns/foo/sa/a-service-account`, `td2/ns/foo/sa/a-service-account`, - or `td3/ns/foo/sa/a-service-account` will be treated the same in the Istio mesh. - items: - type: string - type: array - verifyCertificateAtClient: - description: |- - `VerifyCertificateAtClient` sets the mesh global default for peer certificate validation - at the client-side proxy when `SIMPLE` TLS or `MUTUAL` TLS (non `ISTIO_MUTUAL`) origination - modes are used. This setting can be overridden at the host level via DestinationRule API. - By default, `VerifyCertificateAtClient` is `true`. - - `CaCertificates`: If set, proxy verifies CA signature based on given CaCertificates. If unset, - and VerifyCertificateAtClient is true, proxy uses default System CA bundle. If unset and - `VerifyCertificateAtClient` is false, proxy will not verify the CA. - - `SubjectAltNames`: If set, proxy verifies subject alt names are present in the SAN. If unset, - and `VerifyCertificateAtClient` is true, proxy uses host in destination rule to verify the SANs. - If unset, and `VerifyCertificateAtClient` is false, proxy does not verify SANs. - - For SAN, client-side proxy will exact match host in `DestinationRule` as well as one level - wildcard if the specified host in DestinationRule doesn't contain a wildcard. - For example, if the host in `DestinationRule` is `x.y.com`, client-side proxy will - match either `x.y.com` or `*.y.com` for the SAN in the presented server certificate. - For wildcard host name in DestinationRule, client-side proxy will do a suffix match. For example, - if host is `*.x.y.com`, client-side proxy will verify the presented server certificate SAN matches - “.x.y.com` suffix. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - type: boolean - type: object - pilot: - description: Configuration for the Pilot component. - properties: - affinity: - description: K8s affinity to set on the Pilot Pods. - properties: - nodeAffinity: - description: Describes node affinity scheduling rules - for the pod. - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node matches the corresponding matchExpressions; the - node(s) with the highest sum are the most preferred. - items: - description: |- - An empty preferred scheduling term matches all objects with implicit weight 0 - (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - properties: - preference: - description: A node selector term, associated - with the corresponding weight. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching - the corresponding nodeSelectorTerm, in the - range 1-100. - format: int32 - type: integer - required: - - preference - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to an update), the system - may or may not try to eventually evict the pod from its node. - properties: - nodeSelectorTerms: - description: Required. A list of node selector - terms. The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - type: object - podAffinity: - description: Describes pod affinity scheduling rules (e.g. - co-locate this pod in the same node, zone, etc. as some - other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched WeightedPodAffinityTerm - fields are added per-node to find the most preferred - node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - podAntiAffinity: - description: Describes pod anti-affinity scheduling rules - (e.g. avoid putting this pod in the same node, zone, - etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the anti-affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling anti-affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched WeightedPodAffinityTerm - fields are added per-node to find the most preferred - node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the anti-affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the anti-affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: object - autoscaleBehavior: - description: See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior - properties: - scaleDown: - description: |- - scaleDown is scaling policy for scaling Down. - If not set, the default value is to allow to scale down to minReplicas pods, with a - 300 second stabilization window (i.e., the highest recommendation for - the last 300sec is used). - properties: - policies: - description: |- - policies is a list of potential scaling polices which can be used during scaling. - At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - items: - description: HPAScalingPolicy is a single policy - which must hold true for a specified past interval. - properties: - periodSeconds: - description: |- - periodSeconds specifies the window of time for which the policy should hold true. - PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - format: int32 - type: integer - type: - description: type is used to specify the scaling - policy. - type: string - value: - description: |- - value contains the amount of change which is permitted by the policy. - It must be greater than zero - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - type: array - x-kubernetes-list-type: atomic - selectPolicy: - description: |- - selectPolicy is used to specify which policy should be used. - If not set, the default value Max is used. - type: string - stabilizationWindowSeconds: - description: |- - stabilizationWindowSeconds is the number of seconds for which past recommendations should be - considered while scaling up or scaling down. - StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - If not set, use the default values: - - For scale up: 0 (i.e. no stabilization is done). - - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - format: int32 - type: integer - type: object - scaleUp: - description: |- - scaleUp is scaling policy for scaling Up. - If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - properties: - policies: - description: |- - policies is a list of potential scaling polices which can be used during scaling. - At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - items: - description: HPAScalingPolicy is a single policy - which must hold true for a specified past interval. - properties: - periodSeconds: - description: |- - periodSeconds specifies the window of time for which the policy should hold true. - PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - format: int32 - type: integer - type: - description: type is used to specify the scaling - policy. - type: string - value: - description: |- - value contains the amount of change which is permitted by the policy. - It must be greater than zero - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - type: array - x-kubernetes-list-type: atomic - selectPolicy: - description: |- - selectPolicy is used to specify which policy should be used. - If not set, the default value Max is used. - type: string - stabilizationWindowSeconds: - description: |- - stabilizationWindowSeconds is the number of seconds for which past recommendations should be - considered while scaling up or scaling down. - StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - If not set, use the default values: - - For scale up: 0 (i.e. no stabilization is done). - - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - format: int32 - type: integer - type: object - type: object - autoscaleEnabled: - description: Controls whether a HorizontalPodAutoscaler is - installed for Pilot. - type: boolean - autoscaleMax: - description: Maximum number of replicas in the HorizontalPodAutoscaler - for Pilot. - format: int32 - type: integer - autoscaleMin: - description: Minimum number of replicas in the HorizontalPodAutoscaler - for Pilot. - format: int32 - type: integer - cni: - description: Configures whether to use an existing CNI installation - for workloads - properties: - enabled: - description: Controls whether CNI should be used. - type: boolean - provider: - description: |- - 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 - type: string - type: object - configMap: - description: |- - 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. - type: boolean - cpu: - description: |- - Target CPU utilization used in HorizontalPodAutoscaler. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - targetAverageUtilization: - description: |- - K8s utilization setting for HorizontalPodAutoscaler target. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - format: int32 - type: integer - type: object - deploymentLabels: - additionalProperties: - type: string - description: |- - Labels that are added to Pilot deployment. - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - enabled: - description: Controls whether Pilot is enabled. - type: boolean - env: - additionalProperties: - type: string - description: "Environment variables passed to the Pilot container.\n\nExamples:\nenv:\n\n\tENV_VAR_1: - value1\n\tENV_VAR_2: value2" - type: object - extraContainerArgs: - description: Additional container arguments for the Pilot - container. - items: - type: string - type: array - hub: - description: Hub to pull the container image from. Image will - be `Hub/Image:Tag-Variant`. - type: string - image: - description: |- - 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 - type: string - ipFamilies: - description: |- - 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 - items: - type: string - type: array - ipFamilyPolicy: - description: |- - 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 - type: string - istiodRemote: - description: Configuration for the istio-discovery chart when - istiod is running in a remote cluster (e.g. "remote control - plane"). - properties: - enabled: - description: Indicates if this cluster/install should - consume a "remote" istiod instance, - type: boolean - injectionCABundle: - description: injector ca bundle - type: string - injectionPath: - description: Path to use for the sidecar injector webhook - service. - type: string - injectionURL: - description: URL to use for sidecar injector webhook. - type: string - type: object - jwksResolverExtraRootCA: - description: |- - Specifies an extra root certificate in PEM format. This certificate will be trusted - by pilot when resolving JWKS URIs. - type: string - keepaliveMaxServerConnectionAge: - description: |- - 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 - type: string - memory: - description: |- - Target memory utilization used in HorizontalPodAutoscaler. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - targetAverageUtilization: - description: |- - K8s utilization setting for HorizontalPodAutoscaler target. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - format: int32 - type: integer - type: object - nodeSelector: - additionalProperties: - type: string - description: |- - K8s node selector. - - See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - podAnnotations: - additionalProperties: - type: string - description: |- - K8s annotations for pods. - - See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - podLabels: - additionalProperties: - type: string - description: |- - Labels that are added to Pilot pods. - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - replicaCount: - description: |- - Number of replicas in the Pilot Deployment. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - format: int32 - type: integer - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - rollingMaxSurge: - anyOf: - - type: integer - - type: string - description: |- - K8s rolling update strategy - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - x-kubernetes-int-or-string: true - rollingMaxUnavailable: - anyOf: - - type: integer - - type: string - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - x-kubernetes-int-or-string: true - seccompProfile: - description: |- - The seccompProfile for the Pilot container. - - See: https://kubernetes.io/docs/tutorials/security/seccomp/ - properties: - localhostProfile: - description: |- - localhostProfile indicates a profile defined in a file on the node should be used. - The profile must be preconfigured on the node to work. - Must be a descending path, relative to the kubelet's configured seccomp profile location. - Must be set if type is "Localhost". Must NOT be set for any other type. - type: string - type: - description: |- - type indicates which kind of seccomp profile will be applied. - Valid options are: - - Localhost - a profile defined in a file on the node should be used. - RuntimeDefault - the container runtime default profile should be used. - Unconfined - no profile should be applied. - type: string - required: - - type - type: object - serviceAccountAnnotations: - additionalProperties: - type: string - description: K8s annotations for the service account - type: object - serviceAnnotations: - additionalProperties: - type: string - description: |- - K8s annotations for the Service. - - See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - type: object - tag: - description: The container image tag to pull. Image will be - `Hub/Image:Tag-Variant`. - type: string - taint: - properties: - enabled: - description: |- - Enable the untaint controller for new nodes. This aims to solve a race for CNI installation on - new nodes. For this to work, the newly added nodes need to have the istio CNI taint as they are - added to the cluster. This is usually done by configuring the cluster infra provider. - type: boolean - namespace: - description: The namespace of the CNI daemonset, incase - it's not the same as istiod. - type: string - type: object - tolerations: - description: |- - 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 - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - topologySpreadConstraints: - description: The k8s topologySpreadConstraints for the Pilot - pods. - items: - description: TopologySpreadConstraint specifies how to spread - matching pods among the given topology. - properties: - labelSelector: - description: |- - LabelSelector is used to find matching pods. - Pods that match this label selector are counted to determine the number of pods - in their corresponding topology domain. - properties: - matchExpressions: - description: matchExpressions is a list of label - selector requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the - selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select the pods over which - spreading will be calculated. The keys are used to lookup values from the - incoming pod labels, those key-value labels are ANDed with labelSelector - to select the group of existing pods over which spreading will be calculated - for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. - MatchLabelKeys cannot be set when LabelSelector isn't set. - Keys that don't exist in the incoming pod labels will - be ignored. A null or empty list means only match against labelSelector. - - This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - maxSkew: - description: |- - MaxSkew describes the degree to which pods may be unevenly distributed. - When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference - between the number of matching pods in the target topology and the global minimum. - The global minimum is the minimum number of matching pods in an eligible domain - or zero if the number of eligible domains is less than MinDomains. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 2/2/1: - In this case, the global minimum is 1. - | zone1 | zone2 | zone3 | - | P P | P P | P | - - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; - scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) - violate MaxSkew(1). - - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence - to topologies that satisfy it. - It's a required field. Default value is 1 and 0 is not allowed. - format: int32 - type: integer - minDomains: - description: |- - MinDomains indicates a minimum number of eligible domains. - When the number of eligible domains with matching topology keys is less than minDomains, - Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. - And when the number of eligible domains with matching topology keys equals or greater than minDomains, - this value has no effect on scheduling. - As a result, when the number of eligible domains is less than minDomains, - scheduler won't schedule more than maxSkew Pods to those domains. - If value is nil, the constraint behaves as if MinDomains is equal to 1. - Valid values are integers greater than 0. - When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - - For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same - labelSelector spread as 2/2/2: - | zone1 | zone2 | zone3 | - | P P | P P | P P | - The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. - In this situation, new pod with the same labelSelector cannot be scheduled, - because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, - it will violate MaxSkew. - format: int32 - type: integer - nodeAffinityPolicy: - description: |- - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector - when calculating pod topology spread skew. Options are: - - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - - If this value is nil, the behavior is equivalent to the Honor policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - nodeTaintsPolicy: - description: |- - NodeTaintsPolicy indicates how we will treat node taints when calculating - pod topology spread skew. Options are: - - Honor: nodes without taints, along with tainted nodes for which the incoming pod - has a toleration, are included. - - Ignore: node taints are ignored. All nodes are included. - - If this value is nil, the behavior is equivalent to the Ignore policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - topologyKey: - description: |- - TopologyKey is the key of node labels. Nodes that have a label with this key - and identical values are considered to be in the same topology. - We consider each as a "bucket", and try to put balanced number - of pods into each bucket. - We define a domain as a particular instance of a topology. - Also, we define an eligible domain as a domain whose nodes meet the requirements of - nodeAffinityPolicy and nodeTaintsPolicy. - e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. - And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. - It's a required field. - type: string - whenUnsatisfiable: - description: |- - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - the spread constraint. - - DoNotSchedule (default) tells the scheduler not to schedule it. - - ScheduleAnyway tells the scheduler to schedule the pod in any location, - but giving higher precedence to topologies that would help reduce the - skew. - A constraint is considered "Unsatisfiable" for an incoming pod - if and only if every possible node assignment for that pod would violate - "MaxSkew" on some topology. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 3/1/1: - | zone1 | zone2 | zone3 | - | P P P | P | P | - If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - won't make it *more* imbalanced. - It's a required field. - type: string - required: - - maxSkew - - topologyKey - - whenUnsatisfiable - type: object - type: array - traceSampling: - description: |- - 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 - type: number - trustedZtunnelNamespace: - description: |- - If set, `istiod` will allow connections from trusted node proxy ztunnels - in the provided namespace. - type: string - variant: - description: The container image variant to pull. Options - are "debug" or "distroless". Unset will use the default - for the given version. - type: string - volumeMounts: - description: Additional volumeMounts to add to the Pilot container. - items: - description: VolumeMount describes a mounting of a Volume - within a container. - properties: - mountPath: - description: |- - Path within the container at which the volume should be mounted. Must - not contain ':'. - type: string - mountPropagation: - description: |- - mountPropagation determines how mounts are propagated from the host - to container and the other way around. - When not set, MountPropagationNone is used. - This field is beta in 1.10. - When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified - (which defaults to None). - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: |- - Mounted read-only if true, read-write otherwise (false or unspecified). - Defaults to false. - type: boolean - recursiveReadOnly: - description: |- - RecursiveReadOnly specifies whether read-only mounts should be handled - recursively. - - If ReadOnly is false, this field has no meaning and must be unspecified. - - If ReadOnly is true, and this field is set to Disabled, the mount is not made - recursively read-only. If this field is set to IfPossible, the mount is made - recursively read-only, if it is supported by the container runtime. If this - field is set to Enabled, the mount is made recursively read-only if it is - supported by the container runtime, otherwise the pod will not be started and - an error will be generated to indicate the reason. - - If this field is set to IfPossible or Enabled, MountPropagation must be set to - None (or be unspecified, which defaults to None). - - If this field is not specified, it is treated as an equivalent of Disabled. - type: string - subPath: - description: |- - Path within the volume from which the container's volume should be mounted. - Defaults to "" (volume's root). - type: string - subPathExpr: - description: |- - Expanded path within the volume from which the container's volume should be mounted. - Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. - Defaults to "" (volume's root). - SubPathExpr and SubPath are mutually exclusive. - type: string - required: - - mountPath - - name - type: object - type: array - volumes: - description: Additional volumes to add to the Pilot Pod. - items: - description: Volume represents a named volume in a pod that - may be accessed by any container in the pod. - properties: - awsElasticBlockStore: - description: |- - awsElasticBlockStore represents an AWS Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - properties: - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: string - partition: - description: |- - partition is the partition in the volume that you want to mount. - If omitted, the default is to mount by volume name. - Examples: For volume /dev/sda1, you specify the partition as "1". - Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - format: int32 - type: integer - readOnly: - description: |- - readOnly value true will force the readOnly setting in VolumeMounts. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: boolean - volumeID: - description: |- - volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: string - required: - - volumeID - type: object - azureDisk: - description: azureDisk represents an Azure Data Disk - mount on the host and bind mount to the pod. - properties: - cachingMode: - description: 'cachingMode is the Host Caching mode: - None, Read Only, Read Write.' - type: string - diskName: - description: diskName is the Name of the data disk - in the blob storage - type: string - diskURI: - description: diskURI is the URI of data disk in - the blob storage - type: string - fsType: - default: ext4 - description: |- - fsType is Filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - kind: - description: 'kind expected values are Shared: multiple - blob disks per storage account Dedicated: single - blob disk per storage account Managed: azure - managed data disk (only in managed availability - set). defaults to shared' - type: string - readOnly: - default: false - description: |- - readOnly Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - required: - - diskName - - diskURI - type: object - azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. - properties: - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretName: - description: secretName is the name of secret that - contains Azure Storage Account Name and Key - type: string - shareName: - description: shareName is the azure share Name - type: string - required: - - secretName - - shareName - type: object - cephfs: - description: cephFS represents a Ceph FS mount on the - host that shares a pod's lifetime - properties: - monitors: - description: |- - monitors is Required: Monitors is a collection of Ceph monitors - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - items: - type: string - type: array - x-kubernetes-list-type: atomic - path: - description: 'path is Optional: Used as the mounted - root, rather than the full Ceph tree, default - is /' - type: string - readOnly: - description: |- - readOnly is Optional: Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: boolean - secretFile: - description: |- - secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: string - secretRef: - description: |- - secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - user: - description: |- - user is optional: User is the rados user name, default is admin - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: string - required: - - monitors - type: object - cinder: - description: |- - cinder represents a cinder volume attached and mounted on kubelets host machine. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: boolean - secretRef: - description: |- - secretRef is optional: points to a secret object containing parameters used to connect - to OpenStack. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - volumeID: - description: |- - volumeID used to identify the volume in cinder. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: string - required: - - volumeID - type: object - configMap: - description: configMap represents a configMap that should - populate this volume - properties: - defaultMode: - description: |- - defaultMode is optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - ConfigMap will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the ConfigMap, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a path within - a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional specify whether the ConfigMap - or its keys must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - csi: - description: csi (Container Storage Interface) represents - ephemeral storage that is handled by certain external - CSI drivers (Beta feature). - properties: - driver: - description: |- - driver is the name of the CSI driver that handles this volume. - Consult with your admin for the correct name as registered in the cluster. - type: string - fsType: - description: |- - fsType to mount. Ex. "ext4", "xfs", "ntfs". - If not provided, the empty value is passed to the associated CSI driver - which will determine the default filesystem to apply. - type: string - nodePublishSecretRef: - description: |- - nodePublishSecretRef is a reference to the secret object containing - sensitive information to pass to the CSI driver to complete the CSI - NodePublishVolume and NodeUnpublishVolume calls. - This field is optional, and may be empty if no secret is required. If the - secret object contains more than one secret, all secret references are passed. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - readOnly: - description: |- - readOnly specifies a read-only configuration for the volume. - Defaults to false (read/write). - type: boolean - volumeAttributes: - additionalProperties: - type: string - description: |- - volumeAttributes stores driver-specific properties that are passed to the CSI - driver. Consult your driver's documentation for supported values. - type: object - required: - - driver - type: object - downwardAPI: - description: downwardAPI represents downward API about - the pod that should populate this volume - properties: - defaultMode: - description: |- - Optional: mode bits to use on created files by default. Must be a - Optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: Items is a list of downward API volume - file - items: - description: DownwardAPIVolumeFile represents - information to create the file containing the - pod field - properties: - fieldRef: - description: 'Required: Selects a field of - the pod: only annotations, labels, name, - namespace and uid are supported.' - properties: - apiVersion: - description: Version of the schema the - FieldPath is written in terms of, defaults - to "v1". - type: string - fieldPath: - description: Path of the field to select - in the specified API version. - type: string - required: - - fieldPath - type: object - x-kubernetes-map-type: atomic - mode: - description: |- - Optional: mode bits used to set permissions on this file, must be an octal value - between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: 'Required: Path is the relative - path name of the file to be created. Must - not be absolute or contain the ''..'' path. - Must be utf-8 encoded. The first item of - the relative path must not start with ''..''' - type: string - resourceFieldRef: - description: |- - Selects a resource of the container: only resources limits and requests - (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - properties: - containerName: - description: 'Container name: required - for volumes, optional for env vars' - type: string - divisor: - anyOf: - - type: integer - - type: string - description: Specifies the output format - of the exposed resources, defaults to - "1" - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - resource: - description: 'Required: resource to select' - type: string - required: - - resource - type: object - x-kubernetes-map-type: atomic - required: - - path - type: object - type: array - x-kubernetes-list-type: atomic - type: object - emptyDir: - description: |- - emptyDir represents a temporary directory that shares a pod's lifetime. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - properties: - medium: - description: |- - medium represents what type of storage medium should back this directory. - The default is "" which means to use the node's default medium. - Must be an empty string (default) or Memory. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - type: string - sizeLimit: - anyOf: - - type: integer - - type: string - description: |- - sizeLimit is the total amount of local storage required for this EmptyDir volume. - The size limit is also applicable for memory medium. - The maximum usage on memory medium EmptyDir would be the minimum value between - the SizeLimit specified here and the sum of memory limits of all containers in a pod. - The default is nil which means that the limit is undefined. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: object - ephemeral: - description: |- - ephemeral represents a volume that is handled by a cluster storage driver. - The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, - and deleted when the pod is removed. - - Use this if: - a) the volume is only needed while the pod runs, - b) features of normal volumes like restoring from snapshot or capacity - tracking are needed, - c) the storage driver is specified through a storage class, and - d) the storage driver supports dynamic volume provisioning through - a PersistentVolumeClaim (see EphemeralVolumeSource for more - information on the connection between this volume type - and PersistentVolumeClaim). - - Use PersistentVolumeClaim or one of the vendor-specific - APIs for volumes that persist for longer than the lifecycle - of an individual pod. - - Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to - be used that way - see the documentation of the driver for - more information. - - A pod can use both types of ephemeral volumes and - persistent volumes at the same time. - properties: - volumeClaimTemplate: - description: |- - Will be used to create a stand-alone PVC to provision the volume. - The pod in which this EphemeralVolumeSource is embedded will be the - owner of the PVC, i.e. the PVC will be deleted together with the - pod. The name of the PVC will be `-` where - `` is the name from the `PodSpec.Volumes` array - entry. Pod validation will reject the pod if the concatenated name - is not valid for a PVC (for example, too long). - - An existing PVC with that name that is not owned by the pod - will *not* be used for the pod to avoid using an unrelated - volume by mistake. Starting the pod is then blocked until - the unrelated PVC is removed. If such a pre-created PVC is - meant to be used by the pod, the PVC has to updated with an - owner reference to the pod once the pod exists. Normally - this should not be necessary, but it may be useful when - manually reconstructing a broken cluster. - - This field is read-only and no changes will be made by Kubernetes - to the PVC after it has been created. - - Required, must not be nil. - properties: - metadata: - description: |- - May contain labels and annotations that will be copied into the PVC - when creating it. No other fields are allowed and will be rejected during - validation. - type: object - spec: - description: |- - The specification for the PersistentVolumeClaim. The entire content is - copied unchanged into the PVC that gets created from this - template. The same fields as in a PersistentVolumeClaim - are also valid here. - properties: - accessModes: - description: |- - accessModes contains the desired access modes the volume should have. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - items: - type: string - type: array - x-kubernetes-list-type: atomic - dataSource: - description: |- - dataSource field can be used to specify either: - * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) - * An existing PVC (PersistentVolumeClaim) - If the provisioner or an external controller can support the specified data source, - it will create a new volume based on the contents of the specified data source. - When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. - If the namespace is specified, then dataSourceRef will not be copied to dataSource. - properties: - apiGroup: - description: |- - APIGroup is the group for the resource being referenced. - If APIGroup is not specified, the specified Kind must be in the core API group. - For any other third-party types, APIGroup is required. - type: string - kind: - description: Kind is the type of resource - being referenced - type: string - name: - description: Name is the name of resource - being referenced - type: string - required: - - kind - - name - type: object - x-kubernetes-map-type: atomic - dataSourceRef: - description: |- - dataSourceRef specifies the object from which to populate the volume with data, if a non-empty - volume is desired. This may be any object from a non-empty API group (non - core object) or a PersistentVolumeClaim object. - When this field is specified, volume binding will only succeed if the type of - the specified object matches some installed volume populator or dynamic - provisioner. - This field will replace the functionality of the dataSource field and as such - if both fields are non-empty, they must have the same value. For backwards - compatibility, when namespace isn't specified in dataSourceRef, - both fields (dataSource and dataSourceRef) will be set to the same - value automatically if one of them is empty and the other is non-empty. - When namespace is specified in dataSourceRef, - dataSource isn't set to the same value and must be empty. - There are three important differences between dataSource and dataSourceRef: - * While dataSource only allows two specific types of objects, dataSourceRef - allows any non-core object, as well as PersistentVolumeClaim objects. - * While dataSource ignores disallowed values (dropping them), dataSourceRef - preserves all values, and generates an error if a disallowed value is - specified. - * While dataSource only allows local objects, dataSourceRef allows objects - in any namespaces. - (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. - (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - properties: - apiGroup: - description: |- - APIGroup is the group for the resource being referenced. - If APIGroup is not specified, the specified Kind must be in the core API group. - For any other third-party types, APIGroup is required. - type: string - kind: - description: Kind is the type of resource - being referenced - type: string - name: - description: Name is the name of resource - being referenced - type: string - namespace: - description: |- - Namespace is the namespace of resource being referenced - Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. - (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - type: string - required: - - kind - - name - type: object - resources: - description: |- - resources represents the minimum resources the volume should have. - If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements - that are lower than previous value but must still be higher than capacity recorded in the - status field of the claim. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - properties: - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - selector: - description: selector is a label query over - volumes to consider for binding. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - storageClassName: - description: |- - storageClassName is the name of the StorageClass required by the claim. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - type: string - volumeAttributesClassName: - description: |- - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. - If specified, the CSI driver will create or update the volume with the attributes defined - in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, - it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass - will be applied to the claim but it's not allowed to reset this field to empty string once it is set. - If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass - will be set by the persistentvolume controller if it exists. - If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be - set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource - exists. - More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ - (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). - type: string - volumeMode: - description: |- - volumeMode defines what type of volume is required by the claim. - Value of Filesystem is implied when not included in claim spec. - type: string - volumeName: - description: volumeName is the binding reference - to the PersistentVolume backing this claim. - type: string - type: object - required: - - spec - type: object - type: object - fc: - description: fc represents a Fibre Channel resource - that is attached to a kubelet's host machine and then - exposed to the pod. - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - lun: - description: 'lun is Optional: FC target lun number' - format: int32 - type: integer - readOnly: - description: |- - readOnly is Optional: Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - targetWWNs: - description: 'targetWWNs is Optional: FC target - worldwide names (WWNs)' - items: - type: string - type: array - x-kubernetes-list-type: atomic - wwids: - description: |- - wwids Optional: FC volume world wide identifiers (wwids) - Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - flexVolume: - description: |- - flexVolume represents a generic volume resource that is - provisioned/attached using an exec based plugin. - properties: - driver: - description: driver is the name of the driver to - use for this volume. - type: string - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - type: string - options: - additionalProperties: - type: string - description: 'options is Optional: this field holds - extra command options if any.' - type: object - readOnly: - description: |- - readOnly is Optional: defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef is Optional: secretRef is reference to the secret object containing - sensitive information to pass to the plugin scripts. This may be - empty if no secret object is specified. If the secret object - contains more than one secret, all secrets are passed to the plugin - scripts. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - required: - - driver - type: object - flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running - properties: - datasetName: - description: |- - datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker - should be considered as deprecated - type: string - datasetUUID: - description: datasetUUID is the UUID of the dataset. - This is unique identifier of a Flocker dataset - type: string - type: object - gcePersistentDisk: - description: |- - gcePersistentDisk represents a GCE Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - properties: - fsType: - description: |- - fsType is filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: string - partition: - description: |- - partition is the partition in the volume that you want to mount. - If omitted, the default is to mount by volume name. - Examples: For volume /dev/sda1, you specify the partition as "1". - Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - format: int32 - type: integer - pdName: - description: |- - pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: string - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: boolean - required: - - pdName - type: object - gitRepo: - description: |- - gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an - EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir - into the Pod's container. - properties: - directory: - description: |- - directory is the target directory name. - Must not contain or start with '..'. If '.' is supplied, the volume directory will be the - git repository. Otherwise, if specified, the volume will contain the git repository in - the subdirectory with the given name. - type: string - repository: - description: repository is the URL - type: string - revision: - description: revision is the commit hash for the - specified revision. - type: string - required: - - repository - type: object - glusterfs: - description: |- - glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - More info: https://examples.k8s.io/volumes/glusterfs/README.md - properties: - endpoints: - description: |- - endpoints is the endpoint name that details Glusterfs topology. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: string - path: - description: |- - path is the Glusterfs volume path. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: string - readOnly: - description: |- - readOnly here will force the Glusterfs volume to be mounted with read-only permissions. - Defaults to false. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: boolean - required: - - endpoints - - path - type: object - hostPath: - description: |- - hostPath represents a pre-existing file or directory on the host - machine that is directly exposed to the container. This is generally - used for system agents or other privileged things that are allowed - to see the host machine. Most containers will NOT need this. - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - properties: - path: - description: |- - path of the directory on the host. - If the path is a symlink, it will follow the link to the real path. - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - type: string - type: - description: |- - type for HostPath Volume - Defaults to "" - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - type: string - required: - - path - type: object - image: - description: |- - image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. - The volume is resolved at pod startup depending on which PullPolicy value is provided: - - - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. - - The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. - A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. - The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. - The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - The volume will be mounted read-only (ro) and non-executable files (noexec). - Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). - The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - properties: - pullPolicy: - description: |- - Policy for pulling OCI objects. Possible values are: - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. - Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - type: string - reference: - description: |- - Required: Image or artifact reference to be used. - Behaves in the same way as pod.spec.containers[*].image. - Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. - More info: https://kubernetes.io/docs/concepts/containers/images - This field is optional to allow higher level config management to default or override - container images in workload controllers like Deployments and StatefulSets. - type: string - type: object - iscsi: - description: |- - iscsi represents an ISCSI Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://examples.k8s.io/volumes/iscsi/README.md - properties: - chapAuthDiscovery: - description: chapAuthDiscovery defines whether support - iSCSI Discovery CHAP authentication - type: boolean - chapAuthSession: - description: chapAuthSession defines whether support - iSCSI Session CHAP authentication - type: boolean - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - type: string - initiatorName: - description: |- - initiatorName is the custom iSCSI Initiator Name. - If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - : will be created for the connection. - type: string - iqn: - description: iqn is the target iSCSI Qualified Name. - type: string - iscsiInterface: - default: default - description: |- - iscsiInterface is the interface Name that uses an iSCSI transport. - Defaults to 'default' (tcp). - type: string - lun: - description: lun represents iSCSI Target Lun number. - format: int32 - type: integer - portals: - description: |- - portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port - is other than default (typically TCP ports 860 and 3260). - items: - type: string - type: array - x-kubernetes-list-type: atomic - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - type: boolean - secretRef: - description: secretRef is the CHAP Secret for iSCSI - target and initiator authentication - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - targetPortal: - description: |- - targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - is other than default (typically TCP ports 860 and 3260). - type: string - required: - - iqn - - lun - - targetPortal - type: object - name: - description: |- - name of the volume. - Must be a DNS_LABEL and unique within the pod. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - nfs: - description: |- - nfs represents an NFS mount on the host that shares a pod's lifetime - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - properties: - path: - description: |- - path that is exported by the NFS server. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: string - readOnly: - description: |- - readOnly here will force the NFS export to be mounted with read-only permissions. - Defaults to false. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: boolean - server: - description: |- - server is the hostname or IP address of the NFS server. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: string - required: - - path - - server - type: object - persistentVolumeClaim: - description: |- - persistentVolumeClaimVolumeSource represents a reference to a - PersistentVolumeClaim in the same namespace. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - properties: - claimName: - description: |- - claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - type: string - readOnly: - description: |- - readOnly Will force the ReadOnly setting in VolumeMounts. - Default false. - type: boolean - required: - - claimName - type: object - photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - pdID: - description: pdID is the ID that identifies Photon - Controller persistent disk - type: string - required: - - pdID - type: object - portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine - properties: - fsType: - description: |- - fSType represents the filesystem type to mount - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - volumeID: - description: volumeID uniquely identifies a Portworx - volume - type: string - required: - - volumeID - type: object - projected: - description: projected items for all in one resources - secrets, configmaps, and downward API - properties: - defaultMode: - description: |- - defaultMode are the mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - sources: - description: |- - sources is the list of volume projections. Each entry in this list - handles one source. - items: - description: |- - Projection that may be projected along with other supported volume types. - Exactly one of these fields must be set. - properties: - clusterTrustBundle: - description: |- - ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field - of ClusterTrustBundle objects in an auto-updating file. - - Alpha, gated by the ClusterTrustBundleProjection feature gate. - - ClusterTrustBundle objects can either be selected by name, or by the - combination of signer name and a label selector. - - Kubelet performs aggressive normalization of the PEM contents written - into the pod filesystem. Esoteric PEM features such as inter-block - comments and block headers are stripped. Certificates are deduplicated. - The ordering of certificates within the file is arbitrary, and Kubelet - may change the order over time. - properties: - labelSelector: - description: |- - Select all ClusterTrustBundles that match this label selector. Only has - effect if signerName is set. Mutually-exclusive with name. If unset, - interpreted as "match nothing". If set but empty, interpreted as "match - everything". - properties: - matchExpressions: - description: matchExpressions is a - list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - name: - description: |- - Select a single ClusterTrustBundle by object name. Mutually-exclusive - with signerName and labelSelector. - type: string - optional: - description: |- - If true, don't block pod startup if the referenced ClusterTrustBundle(s) - aren't available. If using name, then the named ClusterTrustBundle is - allowed not to exist. If using signerName, then the combination of - signerName and labelSelector is allowed to match zero - ClusterTrustBundles. - type: boolean - path: - description: Relative path from the volume - root to write the bundle. - type: string - signerName: - description: |- - Select all ClusterTrustBundles that match this signer name. - Mutually-exclusive with name. The contents of all selected - ClusterTrustBundles will be unified and deduplicated. - type: string - required: - - path - type: object - configMap: - description: configMap information about the - configMap data to project - properties: - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - ConfigMap will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the ConfigMap, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a - path within a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional specify whether - the ConfigMap or its keys must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - downwardAPI: - description: downwardAPI information about - the downwardAPI data to project - properties: - items: - description: Items is a list of DownwardAPIVolume - file - items: - description: DownwardAPIVolumeFile represents - information to create the file containing - the pod field - properties: - fieldRef: - description: 'Required: Selects - a field of the pod: only annotations, - labels, name, namespace and uid - are supported.' - properties: - apiVersion: - description: Version of the - schema the FieldPath is written - in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field - to select in the specified - API version. - type: string - required: - - fieldPath - type: object - x-kubernetes-map-type: atomic - mode: - description: |- - Optional: mode bits used to set permissions on this file, must be an octal value - between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: 'Required: Path is the - relative path name of the file - to be created. Must not be absolute - or contain the ''..'' path. Must - be utf-8 encoded. The first item - of the relative path must not - start with ''..''' - type: string - resourceFieldRef: - description: |- - Selects a resource of the container: only resources limits and requests - (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - properties: - containerName: - description: 'Container name: - required for volumes, optional - for env vars' - type: string - divisor: - anyOf: - - type: integer - - type: string - description: Specifies the output - format of the exposed resources, - defaults to "1" - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - resource: - description: 'Required: resource - to select' - type: string - required: - - resource - type: object - x-kubernetes-map-type: atomic - required: - - path - type: object - type: array - x-kubernetes-list-type: atomic - type: object - secret: - description: secret information about the - secret data to project - properties: - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - Secret will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the Secret, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a - path within a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional field specify whether - the Secret or its key must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - serviceAccountToken: - description: serviceAccountToken is information - about the serviceAccountToken data to project - properties: - audience: - description: |- - audience is the intended audience of the token. A recipient of a token - must identify itself with an identifier specified in the audience of the - token, and otherwise should reject the token. The audience defaults to the - identifier of the apiserver. - type: string - expirationSeconds: - description: |- - expirationSeconds is the requested duration of validity of the service - account token. As the token approaches expiration, the kubelet volume - plugin will proactively rotate the service account token. The kubelet will - start trying to rotate the token if the token is older than 80 percent of - its time to live or if the token is older than 24 hours.Defaults to 1 hour - and must be at least 10 minutes. - format: int64 - type: integer - path: - description: |- - path is the path relative to the mount point of the file to project the - token into. - type: string - required: - - path - type: object - type: object - type: array - x-kubernetes-list-type: atomic - type: object - quobyte: - description: quobyte represents a Quobyte mount on the - host that shares a pod's lifetime - properties: - group: - description: |- - group to map volume access to - Default is no group - type: string - readOnly: - description: |- - readOnly here will force the Quobyte volume to be mounted with read-only permissions. - Defaults to false. - type: boolean - registry: - description: |- - registry represents a single or multiple Quobyte Registry services - specified as a string as host:port pair (multiple entries are separated with commas) - which acts as the central registry for volumes - type: string - tenant: - description: |- - tenant owning the given Quobyte volume in the Backend - Used with dynamically provisioned Quobyte volumes, value is set by the plugin - type: string - user: - description: |- - user to map volume access to - Defaults to serivceaccount user - type: string - volume: - description: volume is a string that references - an already created Quobyte volume by name. - type: string - required: - - registry - - volume - type: object - rbd: - description: |- - rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. - More info: https://examples.k8s.io/volumes/rbd/README.md - properties: - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - type: string - image: - description: |- - image is the rados image name. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - keyring: - default: /etc/ceph/keyring - description: |- - keyring is the path to key ring for RBDUser. - Default is /etc/ceph/keyring. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - monitors: - description: |- - monitors is a collection of Ceph monitors. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - items: - type: string - type: array - x-kubernetes-list-type: atomic - pool: - default: rbd - description: |- - pool is the rados pool name. - Default is rbd. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: boolean - secretRef: - description: |- - secretRef is name of the authentication secret for RBDUser. If provided - overrides keyring. - Default is nil. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - user: - default: admin - description: |- - user is the rados user name. - Default is admin. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - required: - - image - - monitors - type: object - scaleIO: - description: scaleIO represents a ScaleIO persistent - volume attached and mounted on Kubernetes nodes. - properties: - fsType: - default: xfs - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". - Default is "xfs". - type: string - gateway: - description: gateway is the host address of the - ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the - ScaleIO Protection Domain for the configured storage. - type: string - readOnly: - description: |- - readOnly Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef references to the secret for ScaleIO user and other - sensitive information. If this is not provided, Login operation will fail. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - sslEnabled: - description: sslEnabled Flag enable/disable SSL - communication with Gateway, default false - type: boolean - storageMode: - default: ThinProvisioned - description: |- - storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage - Pool associated with the protection domain. - type: string - system: - description: system is the name of the storage system - as configured in ScaleIO. - type: string - volumeName: - description: |- - volumeName is the name of a volume already created in the ScaleIO system - that is associated with this volume source. - type: string - required: - - gateway - - secretRef - - system - type: object - secret: - description: |- - secret represents a secret that should populate this volume. - More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - properties: - defaultMode: - description: |- - defaultMode is Optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values - for mode bits. Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: |- - items If unspecified, each key-value pair in the Data field of the referenced - Secret will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the Secret, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a path within - a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - optional: - description: optional field specify whether the - Secret or its keys must be defined - type: boolean - secretName: - description: |- - secretName is the name of the secret in the pod's namespace to use. - More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - type: string - type: object - storageos: - description: storageOS represents a StorageOS volume - attached and mounted on Kubernetes nodes. - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef specifies the secret to use for obtaining the StorageOS API - credentials. If not specified, default values will be attempted. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - volumeName: - description: |- - volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: |- - volumeNamespace specifies the scope of the volume within StorageOS. If no - namespace is specified then the Pod's namespace will be used. This allows the - Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - Set VolumeName to any name to override the default behaviour. - Set to "default" if you are not using namespaces within StorageOS. - Namespaces that do not pre-exist within StorageOS will be created. - type: string - type: object - vsphereVolume: - description: vsphereVolume represents a vSphere volume - attached and mounted on kubelets host machine - properties: - fsType: - description: |- - fsType is filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - storagePolicyID: - description: storagePolicyID is the storage Policy - Based Management (SPBM) profile ID associated - with the StoragePolicyName. - type: string - storagePolicyName: - description: storagePolicyName is the storage Policy - Based Management (SPBM) profile name. - type: string - volumePath: - description: volumePath is the path that identifies - vSphere volume vmdk - type: string - required: - - volumePath - type: object - required: - - name - type: object - type: array - type: object - profile: - description: Specifies which installation configuration profile - to apply. - type: string - revision: - description: Identifies the revision this installation is associated - with. - type: string - revisionTags: - description: |- - Specifies the aliases for the Istio control plane revision. A MutatingWebhookConfiguration - is created for each alias. - items: - type: string - type: array - sidecarInjectorWebhook: - description: Configuration for the sidecar injector webhook. - properties: - alwaysInjectSelector: - description: See NeverInjectSelector. - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - defaultTemplates: - description: 'defaultTemplates: ["sidecar", "hello"]' - items: - type: string - type: array - enableNamespacesByDefault: - description: Enables sidecar auto-injection in namespaces - by default. - type: boolean - injectedAnnotations: - additionalProperties: - type: string - description: |- - injectedAnnotations are additional annotations that will be added to the pod spec after injection - This is primarily to support PSP annotations. - type: object - injectionURL: - description: Configure the injection url for sidecar injector - webhook - type: string - neverInjectSelector: - description: |- - 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 - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - reinvocationPolicy: - description: 'Setting this to `IfNeeded` will result in the - sidecar injector being run again if additional mutations - occur. Default: Never' - type: string - rewriteAppHTTPProbe: - description: 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. - type: boolean - templates: - additionalProperties: - type: string - description: "Templates defines a set of custom injection - templates that can be used. For example, defining:\n\ntemplates:\n\n\thello: - |\n\t metadata:\n\t labels:\n\t hello: world\n\nThen - starting a pod with the `inject.istio.io/templates: hello` - annotation, will result in the pod\nbeing injected with - the hello=world labels.\nThis is intended for advanced configuration - only; most users should use the built in template" - type: object - type: object - telemetry: - description: Controls whether telemetry is exported for Pilot. - properties: - enabled: - description: Controls whether telemetry is exported for Pilot. - type: boolean - v2: - description: Configuration for Telemetry v2. - properties: - enabled: - description: Controls whether pilot will configure telemetry - v2. - type: boolean - prometheus: - description: Telemetry v2 settings for prometheus. - properties: - enabled: - description: Controls whether stats envoyfilter would - be enabled or not. - type: boolean - type: object - stackdriver: - description: Telemetry v2 settings for stackdriver. - properties: - enabled: - type: boolean - type: object - type: object - type: object - type: object - version: - default: v1.23.2 - description: |- - Defines the version of Istio to install. - Must be one of: v1.23.2, v1.22.5, v1.21.6, latest. - enum: - - v1.23.2 - - v1.22.5 - - v1.21.6 - - latest - type: string - required: - - namespace - - version - type: object - x-kubernetes-validations: - - message: spec.values.global.istioNamespace must match spec.namespace - rule: '!has(self.values) || !has(self.values.global) || !has(self.values.global.istioNamespace) - || self.values.global.istioNamespace == self.__namespace__' - status: - description: RemoteIstioStatus defines the observed state of RemoteIstio - properties: - activeRevisionName: - description: The name of the active revision. - type: string - conditions: - description: Represents the latest available observations of the object's - current state. - items: - description: RemoteIstioCondition represents a specific observation - of the RemoteIstioCondition object's state. - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status - to another. - format: date-time - type: string - message: - description: Human-readable message indicating details about - the last transition. - type: string - reason: - description: Unique, single-word, CamelCase reason for the condition's - last transition. - type: string - status: - description: The status of this condition. Can be True, False - or Unknown. - type: string - type: - description: The type of this condition. - type: string - type: object - type: array - observedGeneration: - description: |- - ObservedGeneration is the most recent generation observed for this - RemoteIstio object. It corresponds to the object's generation, which is - updated on mutation by the API Server. The information in the status - pertains to this particular generation of the object. - format: int64 - type: integer - revisions: - description: Reports information about the underlying IstioRevisions. - properties: - inUse: - description: Number of IstioRevisions that are currently in use. - format: int32 - type: integer - ready: - description: Number of IstioRevisions that are Ready. - format: int32 - type: integer - total: - description: Total number of IstioRevisions currently associated - with this Istio. - format: int32 - type: integer - required: - - inUse - - ready - - total - type: object - state: - description: Reports the current state of the object. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} -status: - acceptedNames: - kind: "" - plural: "" - conditions: null - storedVersions: null diff --git a/chart/crds/sailoperator.io_istiocnis.yaml b/chart/crds/sailoperator.io_istiocnis.yaml index c7de57ddd..0cd39dcad 100644 --- a/chart/crds/sailoperator.io_istiocnis.yaml +++ b/chart/crds/sailoperator.io_istiocnis.yaml @@ -70,7 +70,7 @@ spec: description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. enum: - ambient - default @@ -80,6 +80,7 @@ spec: - openshift-ambient - openshift - preview + - remote - stable type: string values: diff --git a/chart/crds/sailoperator.io_istiorevisions.yaml b/chart/crds/sailoperator.io_istiorevisions.yaml index ec6836947..5708dbe4d 100644 --- a/chart/crds/sailoperator.io_istiorevisions.yaml +++ b/chart/crds/sailoperator.io_istiorevisions.yaml @@ -78,14 +78,6 @@ spec: x-kubernetes-validations: - message: Value is immutable rule: self == oldSelf - type: - default: Local - description: Type indicates whether this revision represents a local - or a remote control plane installation. - type: string - x-kubernetes-validations: - - message: Value is immutable - rule: self == oldSelf values: description: Defines the values to be passed to the Helm charts when installing Istio. @@ -9389,7 +9381,6 @@ spec: type: string required: - namespace - - type - version type: object x-kubernetes-validations: diff --git a/chart/crds/sailoperator.io_istios.yaml b/chart/crds/sailoperator.io_istios.yaml index 9054d6d29..51b234a6d 100644 --- a/chart/crds/sailoperator.io_istios.yaml +++ b/chart/crds/sailoperator.io_istios.yaml @@ -95,7 +95,7 @@ spec: description: |- The built-in installation configuration profile to use. The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. + Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, remote, stable. enum: - ambient - default @@ -105,6 +105,7 @@ spec: - openshift-ambient - openshift - preview + - remote - stable type: string updateStrategy: diff --git a/chart/crds/sailoperator.io_remoteistios.yaml b/chart/crds/sailoperator.io_remoteistios.yaml deleted file mode 100644 index ed5e65a39..000000000 --- a/chart/crds/sailoperator.io_remoteistios.yaml +++ /dev/null @@ -1,9522 +0,0 @@ ---- -apiVersion: apiextensions.k8s.io/v1 -kind: CustomResourceDefinition -metadata: - annotations: - controller-gen.kubebuilder.io/version: v0.16.4 - name: remoteistios.sailoperator.io -spec: - group: sailoperator.io - names: - categories: - - istio-io - kind: RemoteIstio - listKind: RemoteIstioList - plural: remoteistios - singular: remoteistio - scope: Cluster - versions: - - additionalPrinterColumns: - - description: Total number of IstioRevision objects currently associated with - this object. - jsonPath: .status.revisions.total - name: Revisions - type: string - - description: Number of revisions that are ready. - jsonPath: .status.revisions.ready - name: Ready - type: string - - description: Number of revisions that are currently being used by workloads. - jsonPath: .status.revisions.inUse - name: In use - type: string - - description: The name of the currently active revision. - jsonPath: .status.activeRevisionName - name: Active Revision - type: string - - description: The current state of the active revision. - jsonPath: .status.state - name: Status - type: string - - description: The version of the control plane installation. - jsonPath: .spec.version - name: Version - type: string - - description: The age of the object - jsonPath: .metadata.creationTimestamp - name: Age - type: date - name: v1alpha1 - schema: - openAPIV3Schema: - description: |- - RemoteIstio represents a remote Istio Service Mesh deployment consisting of one or more - remote control plane instances (represented by one or more IstioRevision objects). - properties: - apiVersion: - description: |- - APIVersion defines the versioned schema of this representation of an object. - Servers should convert recognized schemas to the latest internal value, and - may reject unrecognized values. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - type: string - kind: - description: |- - Kind is a string value representing the REST resource this object represents. - Servers may infer this from the endpoint the client submits requests to. - Cannot be updated. - In CamelCase. - More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - type: string - metadata: - type: object - spec: - default: - namespace: istio-system - updateStrategy: - type: InPlace - version: v1.23.2 - description: RemoteIstioSpec defines the desired state of RemoteIstio - properties: - namespace: - default: istio-system - description: Namespace to which the Istio components should be installed. - type: string - profile: - description: |- - The built-in installation configuration profile to use. - The 'default' profile is always applied. On OpenShift, the 'openshift' profile is also applied on top of 'default'. - Must be one of: ambient, default, demo, empty, external, openshift-ambient, openshift, preview, stable. - enum: - - ambient - - default - - demo - - empty - - external - - openshift-ambient - - openshift - - preview - - stable - type: string - updateStrategy: - default: - type: InPlace - description: Defines the update strategy to use when the version in - the RemoteIstio CR is updated. - properties: - inactiveRevisionDeletionGracePeriodSeconds: - description: |- - Defines how many seconds the operator should wait before removing a non-active revision after all - the workloads have stopped using it. You may want to set this value on the order of minutes. - The minimum is 0 and the default value is 30. - format: int64 - minimum: 0 - type: integer - type: - default: InPlace - description: "Type of strategy to use. Can be \"InPlace\" or \"RevisionBased\". - When the \"InPlace\" strategy\nis used, the existing Istio control - plane is updated in-place. The workloads therefore\ndon't need - to be moved from one control plane instance to another. When - the \"RevisionBased\"\nstrategy is used, a new Istio control - plane instance is created for every change to the\nIstio.spec.version - field. The old control plane remains in place until all workloads - have\nbeen moved to the new control plane instance.\n\nThe \"InPlace\" - strategy is the default.\tTODO: change default to \"RevisionBased\"" - enum: - - InPlace - - RevisionBased - type: string - updateWorkloads: - description: |- - Defines whether the workloads should be moved from one control plane instance to another - automatically. If updateWorkloads is true, the operator moves the workloads from the old - control plane instance to the new one after the new control plane is ready. - If updateWorkloads is false, the user must move the workloads manually by updating the - istio.io/rev labels on the namespace and/or the pods. - Defaults to false. - type: boolean - type: object - values: - description: Defines the values to be passed to the Helm charts when - installing Istio. - properties: - base: - description: Configuration for the base component. - properties: - excludedCRDs: - description: CRDs to exclude. Requires `enableCRDTemplates` - items: - type: string - type: array - validationCABundle: - description: validation webhook CA bundle - type: string - validationURL: - description: URL to use for validating webhook. - type: string - type: object - compatibilityVersion: - description: |- - Specifies the compatibility version to use. When this is set, the control plane will - be configured with the same defaults as the specified version. - type: string - defaultRevision: - description: The name of the default revision in the cluster. - type: string - experimental: - description: Specifies experimental helm fields that could be - removed or changed in the future - x-kubernetes-preserve-unknown-fields: true - global: - description: Global configuration for Istio components. - properties: - arch: - description: "Specifies pod scheduling arch(amd64, ppc64le, - s390x, arm64) and weight as follows:\n\n\t0 - Never scheduled\n\t1 - - Least preferred\n\t2 - No preference\n\t3 - Most preferred\n\nDeprecated: - replaced by the affinity k8s settings which allows architecture - nodeAffinity configuration of this behavior.\n\nDeprecated: - Marked as deprecated in pkg/apis/values_types.proto." - properties: - amd64: - description: Sets pod scheduling weight for amd64 arch - format: int32 - type: integer - arm64: - description: Sets pod scheduling weight for arm64 arch. - format: int32 - type: integer - ppc64le: - description: Sets pod scheduling weight for ppc64le arch. - format: int32 - type: integer - s390x: - description: Sets pod scheduling weight for s390x arch. - format: int32 - type: integer - type: object - caAddress: - description: The address of the CA for CSR. - type: string - caName: - description: |- - 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). - type: string - certSigners: - description: List of certSigners to allow "approve" action - in the ClusterRole - items: - type: string - type: array - configCluster: - description: Controls whether a remote cluster is the config - cluster for an external istiod - type: boolean - configValidation: - description: Controls whether the server-side validation is - enabled. - type: boolean - defaultNodeSelector: - additionalProperties: - type: string - description: |- - Default k8s node selector for all the Istio control plane components - - See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - defaultPodDisruptionBudget: - description: Specifies the default pod disruption budget configuration. - properties: - enabled: - description: Controls whether a PodDisruptionBudget with - a default minAvailable value of 1 is created for each - deployment. - type: boolean - type: object - defaultResources: - description: |- - 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 - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - defaultTolerations: - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - externalIstiod: - description: Controls whether one external istiod is enabled. - type: boolean - hub: - description: Specifies the docker hub for Istio images. - type: string - imagePullPolicy: - description: |- - 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 - enum: - - Always - - Never - - IfNotPresent - type: string - imagePullSecrets: - description: |- - 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. - items: - type: string - type: array - ipFamilies: - description: |- - 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 - items: - type: string - type: array - ipFamilyPolicy: - description: |- - 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 - type: string - istioNamespace: - description: Specifies the default namespace for the Istio - control plane components. - type: string - istiod: - description: Specifies the configution of istiod - properties: - enableAnalysis: - description: If enabled, istiod will perform config analysis - type: boolean - type: object - jwtPolicy: - description: |- - Configure the policy for validating JWT. - This is deprecated and has no effect. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: string - logAsJson: - description: Specifies whether istio components should output - logs in json format by adding --log_as_json argument to - each container. - type: boolean - logging: - description: Specifies the global logging level settings for - the Istio control plane components. - properties: - level: - description: |- - Comma-separated minimum per-scope logging level of messages to output, in the form of :,: - 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 - type: string - type: object - meshID: - description: |- - 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. - type: string - meshNetworks: - additionalProperties: - description: |- - Network provides information about the endpoints in a routable L3 - network. A single routable L3 network can have one or more service - registries. Note that the network has no relation to the locality of the - endpoint. The endpoint locality will be obtained from the service - registry. - properties: - endpoints: - description: |- - The list of endpoints in the network (obtained through the - constituent service registries or from CIDR ranges). All endpoints in - the network are directly accessible to one another. - items: - description: "NetworkEndpoints describes how the network - associated with an endpoint\nshould be inferred. - An endpoint will be assigned to a network based - on\nthe following rules:\n\n1. Implicitly: If the - registry explicitly provides information about\nthe - network to which the endpoint belongs to. In some - cases, its\npossible to indicate the network associated - with the endpoint by\nadding the `ISTIO_META_NETWORK` - environment variable to the sidecar.\n\n2. Explicitly:\n\n\ta. - By matching the registry name with one of the \"fromRegistry\"\n\tin - the mesh config. A \"fromRegistry\" can only be - assigned to a\n\tsingle network.\n\n\tb. By matching - the IP against one of the CIDR ranges in a mesh\n\tconfig - network. The CIDR ranges must not overlap and be - assigned to\n\ta single network.\n\n(2) will override - (1) if both are present." - properties: - fromCidr: - description: |- - A CIDR range for the set of endpoints in this network. The CIDR - ranges for endpoints from different networks must not overlap. - type: string - fromRegistry: - description: |- - Add all endpoints from the specified registry into this network. - The names of the registries should correspond to the kubeconfig file name - inside the secret that was used to configure the registry (Kubernetes - multicluster) or supplied by MCP server. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [fromCidr fromRegistry] - should be set - rule: (has(self.fromCidr)?1:0) + (has(self.fromRegistry)?1:0) - <= 1 - type: array - gateways: - description: Set of gateways associated with the network. - items: - description: |- - The gateway associated with this network. Traffic from remote networks - will arrive at the specified gateway:port. All incoming traffic must - use mTLS. - properties: - address: - description: IP address or externally resolvable - DNS address associated with the gateway. - type: string - locality: - description: The locality associated with an explicitly - specified gateway (i.e. ip) - type: string - port: - format: int32 - type: integer - registryServiceName: - description: |- - A fully qualified domain name of the gateway service. Pilot will - lookup the service from the service registries in the network and - obtain the endpoint IPs of the gateway from the service - registry. Note that while the service name is a fully qualified - domain name, it need not be resolvable outside the orchestration - platform for the registry. e.g., this could be - istio-ingressgateway.istio-system.svc.cluster.local. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [registryServiceName address] - should be set - rule: (has(self.registryServiceName)?1:0) + (has(self.address)?1:0) - <= 1 - type: array - type: object - description: "Configure the mesh networks to be used by the - Split Horizon EDS.\n\nThe following example defines two - networks with different endpoints association methods.\nFor - `network1` all endpoints that their IP belongs to the provided - CIDR range will be\nmapped to network1. The gateway for - this network example is specified by its public IP\naddress - and port.\nThe second network, `network2`, in this example - is defined differently with all endpoints\nretrieved through - the specified Multi-Cluster registry being mapped to network2. - The\ngateway is also defined differently with the name of - the gateway service on the remote\ncluster. The public IP - for the gateway will be determined from that remote service - (only\nLoadBalancer gateway service type is currently supported, - for a NodePort type gateway service,\nit still need to be - configured manually).\n\nmeshNetworks:\n\n\tnetwork1:\n\t - \ endpoints:\n\t - fromCidr: \"192.168.0.1/24\"\n\t gateways:\n\t - \ - address: 1.1.1.1\n\t port: 80\n\tnetwork2:\n\t endpoints:\n\t - \ - fromRegistry: reg1\n\t gateways:\n\t - registryServiceName: - istio-ingressgateway.istio-system.svc.cluster.local\n\t - \ port: 443" - type: object - mountMtlsCerts: - description: Controls whether the in-cluster MTLS key and - certs are loaded from the secret volume mounts. - type: boolean - multiCluster: - description: Specifies the Configuration for Istio mesh across - multiple clusters through Istio gateways. - properties: - clusterName: - description: |- - The name of the cluster this installation will run in. This is required for sidecar injection - to properly label proxies - type: string - enabled: - description: |- - 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. - type: boolean - globalDomainSuffix: - description: The suffix for global service names. - type: string - includeEnvoyFilter: - description: Enable envoy filter to translate `globalDomainSuffix` - to cluster local suffix for cross cluster communication. - type: boolean - type: object - network: - description: |- - Network defines the network this cluster belong to. This name - corresponds to the networks in the map of mesh networks. - type: string - omitSidecarInjectorConfigMap: - description: |- - 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. - type: boolean - operatorManageWebhooks: - description: |- - 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. - type: boolean - pilotCertProvider: - description: |- - Configure the Pilot certificate provider. - Currently, four providers are supported: "kubernetes", "istiod", "custom" and "none". - type: string - platform: - description: |- - 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. - type: string - podDNSSearchNamespaces: - description: |- - 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). - items: - type: string - type: array - priorityClassName: - description: |- - Specifies the k8s priorityClassName for the istio control plane components. - - See https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: string - proxy: - description: Specifies how proxies are configured within Istio. - properties: - autoInject: - description: Controls the 'policy' in the sidecar injector. - type: string - clusterDomain: - description: |- - Domain for the cluster, default: "cluster.local". - - K8s allows this to be customized, see https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/ - type: string - componentLogLevel: - description: |- - 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. - type: string - enableCoreDump: - description: |- - Enables core dumps for newly injected sidecars. - - If set, newly injected sidecars will have core dumps enabled. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: boolean - excludeIPRanges: - description: Lists the excluded IP ranges of Istio egress - traffic that the sidecar captures. - type: string - excludeInboundPorts: - description: Specifies the Istio ingress ports not to - capture. - type: string - excludeOutboundPorts: - description: A comma separated list of outbound ports - to be excluded from redirection to Envoy. - type: string - holdApplicationUntilProxyStarts: - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: boolean - image: - description: |- - 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 - type: string - includeIPRanges: - description: |- - 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." - type: string - includeInboundPorts: - description: |- - A comma separated list of inbound ports for which traffic is to be redirected to Envoy. - The wildcard character '*' can be used to configure redirection for all ports. - type: string - includeOutboundPorts: - description: A comma separated list of outbound ports - for which traffic is to be redirected to Envoy, regardless - of the destination IP. - type: string - lifecycle: - description: |- - The k8s lifecycle hooks definition (pod.spec.containers.lifecycle) for the proxy container. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - postStart: - description: |- - PostStart is called immediately after a container is created. If the handler fails, - the container is terminated and restarted according to its restart policy. - Other management of the container blocks until the hook completes. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - httpGet: - description: HTTPGet specifies the http request - to perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the - request. HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom - header to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. - properties: - seconds: - description: Seconds is the number of seconds - to sleep. - format: int64 - type: integer - required: - - seconds - type: object - tcpSocket: - description: |- - Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. - properties: - host: - description: 'Optional: Host name to connect - to, defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - type: object - preStop: - description: |- - PreStop is called immediately before a container is terminated due to an - API request or management event such as liveness/startup probe failure, - preemption, resource contention, etc. The handler is not called if the - container crashes or exits. The Pod's termination grace period countdown begins before the - PreStop hook is executed. Regardless of the outcome of the handler, the - container will eventually terminate within the Pod's termination grace - period (unless delayed by finalizers). Other management of the container blocks until the hook completes - or until the termination grace period is reached. - More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - httpGet: - description: HTTPGet specifies the http request - to perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the - request. HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom - header to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - sleep: - description: Sleep represents the duration that - the container should sleep before being terminated. - properties: - seconds: - description: Seconds is the number of seconds - to sleep. - format: int64 - type: integer - required: - - seconds - type: object - tcpSocket: - description: |- - Deprecated. TCPSocket is NOT supported as a LifecycleHandler and kept - for the backward compatibility. There are no validation of this field and - lifecycle hooks will fail in runtime when tcp handler is specified. - properties: - host: - description: 'Optional: Host name to connect - to, defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - type: object - type: object - logLevel: - description: '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' - type: string - outlierLogPath: - description: |- - Path to the file to which the proxy will write outlier detection logs. - - Example: "/dev/stdout" - This would write the logs to standard output. - type: string - privileged: - description: |- - Enables privileged securityContext for the istio-proxy container. - - See https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ - type: boolean - readinessFailureThreshold: - description: Sets the number of successive failed probes - before indicating readiness failure. - format: int32 - type: integer - readinessInitialDelaySeconds: - description: Sets the initial delay for readiness probes - in seconds. - format: int32 - type: integer - readinessPeriodSeconds: - description: Sets the interval between readiness probes - in seconds. - format: int32 - type: integer - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - startupProbe: - description: Configures the startup probe for the istio-proxy - container. - properties: - enabled: - description: |- - Enables or disables a startup probe. - For optimal startup times, changing this should be tied to the readiness probe values. - - If the probe is enabled, it is recommended to have delay=0s,period=15s,failureThreshold=4. - This ensures the pod is marked ready immediately after the startup probe passes (which has a 1s poll interval), - and doesn't spam the readiness endpoint too much - - If the probe is disabled, it is recommended to have delay=1s,period=2s,failureThreshold=30. - This ensures the startup is reasonable fast (polling every 2s). 1s delay is used since the startup is not often ready instantly. - type: boolean - failureThreshold: - description: Minimum consecutive failures for the - probe to be considered failed after having succeeded. - format: int32 - type: integer - type: object - statusPort: - description: Default port used for the Pilot agent's health - checks. - format: int32 - type: integer - tracer: - description: |- - Specify which tracer to use. One of: zipkin, lightstep, datadog, stackdriver. - If using stackdriver tracer outside GCP, set env GOOGLE_APPLICATION_CREDENTIALS to the GCP credential file. - enum: - - zipkin - - lightstep - - datadog - - stackdriver - - openCensusAgent - - none - type: string - type: object - proxy_init: - description: Specifies the Configuration for proxy_init container - which sets the pods' networking to intercept the inbound/outbound - traffic. - properties: - image: - description: Specifies the image for the proxy_init container. - type: string - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - type: object - remotePilotAddress: - description: Specifies the Istio control plane’s pilot Pod - IP address or remote cluster DNS resolvable hostname. - type: string - revision: - description: Configures the revision this control plane is - a part of - type: string - sds: - description: Specifies the Configuration for the SecretDiscoveryService - instead of using K8S secrets to mount the certificates. - properties: - token: - description: 'Deprecated: Marked as deprecated in pkg/apis/values_types.proto.' - properties: - aud: - type: string - type: object - type: object - sts: - description: Specifies the configuration for Security Token - Service. - properties: - servicePort: - format: int32 - type: integer - type: object - tag: - description: Specifies the tag for the Istio docker images. - type: string - tracer: - description: Specifies the Configuration for each of the supported - tracers. - properties: - datadog: - description: Configuration for the datadog tracing service. - properties: - address: - description: Address in host:port format for reporting - trace data to the Datadog agent. - type: string - type: object - lightstep: - description: Configuration for the lightstep tracing service. - properties: - accessToken: - description: Sets the lightstep access token. - type: string - address: - description: Sets the lightstep satellite pool address - in host:port format for reporting trace data. - type: string - type: object - stackdriver: - description: Configuration for the stackdriver tracing - service. - properties: - debug: - description: enables trace output to stdout. - type: boolean - maxNumberOfAnnotations: - description: The global default max number of annotation - events per span. - format: int32 - type: integer - maxNumberOfAttributes: - description: The global default max number of attributes - per span. - format: int32 - type: integer - maxNumberOfMessageEvents: - description: The global default max number of message - events per span. - format: int32 - type: integer - type: object - zipkin: - description: Configuration for the zipkin tracing service. - properties: - address: - description: |- - Address of zipkin instance in host:port format for reporting trace data. - - Example: .:941 - type: string - type: object - type: object - variant: - description: The variant of the Istio container images to - use. Options are "debug" or "distroless". Unset will use - the default for the given version. - type: string - waypoint: - description: Specifies how waypoints are configured within - Istio. - properties: - affinity: - description: |- - K8s affinity settings for waypoint pods. - - See https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#inter-pod-affinity-and-anti-affinity - properties: - nodeAffinity: - description: Describes node affinity scheduling rules - for the pod. - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node matches the corresponding matchExpressions; the - node(s) with the highest sum are the most preferred. - items: - description: |- - An empty preferred scheduling term matches all objects with implicit weight 0 - (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - properties: - preference: - description: A node selector term, associated - with the corresponding weight. - properties: - matchExpressions: - description: A list of node selector - requirements by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector - requirements by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching - the corresponding nodeSelectorTerm, in - the range 1-100. - format: int32 - type: integer - required: - - preference - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to an update), the system - may or may not try to eventually evict the pod from its node. - properties: - nodeSelectorTerms: - description: Required. A list of node selector - terms. The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector - requirements by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector - requirements by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that - the selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - type: object - podAffinity: - description: Describes pod affinity scheduling rules - (e.g. co-locate this pod in the same node, zone, - etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched - WeightedPodAffinityTerm fields are added per-node - to find the most preferred node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - podAntiAffinity: - description: Describes pod anti-affinity scheduling - rules (e.g. avoid putting this pod in the same node, - zone, etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the anti-affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling anti-affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched - WeightedPodAffinityTerm fields are added per-node - to find the most preferred node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is - a list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the anti-affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the anti-affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: object - nodeSelector: - description: |- - K8s node labels settings. - - See https://kubernetes.io/docs/user-guide/node-selection/ - properties: - nodeSelectorTerms: - description: Required. A list of node selector terms. - The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the selector - applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the selector - applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - resources: - description: |- - K8s resource settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry - in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - toleration: - description: |- - K8s tolerations settings. - - See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - topologySpreadConstraints: - description: |- - K8s topology spread constraints settings. - - See https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/ - items: - description: TopologySpreadConstraint specifies how - to spread matching pods among the given topology. - properties: - labelSelector: - description: |- - LabelSelector is used to find matching pods. - Pods that match this label selector are counted to determine the number of pods - in their corresponding topology domain. - properties: - matchExpressions: - description: matchExpressions is a list of label - selector requirements. The requirements are - ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that - the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select the pods over which - spreading will be calculated. The keys are used to lookup values from the - incoming pod labels, those key-value labels are ANDed with labelSelector - to select the group of existing pods over which spreading will be calculated - for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. - MatchLabelKeys cannot be set when LabelSelector isn't set. - Keys that don't exist in the incoming pod labels will - be ignored. A null or empty list means only match against labelSelector. - - This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - maxSkew: - description: |- - MaxSkew describes the degree to which pods may be unevenly distributed. - When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference - between the number of matching pods in the target topology and the global minimum. - The global minimum is the minimum number of matching pods in an eligible domain - or zero if the number of eligible domains is less than MinDomains. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 2/2/1: - In this case, the global minimum is 1. - | zone1 | zone2 | zone3 | - | P P | P P | P | - - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; - scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) - violate MaxSkew(1). - - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence - to topologies that satisfy it. - It's a required field. Default value is 1 and 0 is not allowed. - format: int32 - type: integer - minDomains: - description: |- - MinDomains indicates a minimum number of eligible domains. - When the number of eligible domains with matching topology keys is less than minDomains, - Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. - And when the number of eligible domains with matching topology keys equals or greater than minDomains, - this value has no effect on scheduling. - As a result, when the number of eligible domains is less than minDomains, - scheduler won't schedule more than maxSkew Pods to those domains. - If value is nil, the constraint behaves as if MinDomains is equal to 1. - Valid values are integers greater than 0. - When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - - For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same - labelSelector spread as 2/2/2: - | zone1 | zone2 | zone3 | - | P P | P P | P P | - The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. - In this situation, new pod with the same labelSelector cannot be scheduled, - because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, - it will violate MaxSkew. - format: int32 - type: integer - nodeAffinityPolicy: - description: |- - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector - when calculating pod topology spread skew. Options are: - - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - - If this value is nil, the behavior is equivalent to the Honor policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - nodeTaintsPolicy: - description: |- - NodeTaintsPolicy indicates how we will treat node taints when calculating - pod topology spread skew. Options are: - - Honor: nodes without taints, along with tainted nodes for which the incoming pod - has a toleration, are included. - - Ignore: node taints are ignored. All nodes are included. - - If this value is nil, the behavior is equivalent to the Ignore policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - topologyKey: - description: |- - TopologyKey is the key of node labels. Nodes that have a label with this key - and identical values are considered to be in the same topology. - We consider each as a "bucket", and try to put balanced number - of pods into each bucket. - We define a domain as a particular instance of a topology. - Also, we define an eligible domain as a domain whose nodes meet the requirements of - nodeAffinityPolicy and nodeTaintsPolicy. - e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. - And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. - It's a required field. - type: string - whenUnsatisfiable: - description: |- - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - the spread constraint. - - DoNotSchedule (default) tells the scheduler not to schedule it. - - ScheduleAnyway tells the scheduler to schedule the pod in any location, - but giving higher precedence to topologies that would help reduce the - skew. - A constraint is considered "Unsatisfiable" for an incoming pod - if and only if every possible node assignment for that pod would violate - "MaxSkew" on some topology. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 3/1/1: - | zone1 | zone2 | zone3 | - | P P P | P | P | - If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - won't make it *more* imbalanced. - It's a required field. - type: string - required: - - maxSkew - - topologyKey - - whenUnsatisfiable - type: object - type: array - type: object - type: object - istiodRemote: - description: |- - Configuration for istiod-remote. - DEPRECATED - istiod-remote chart is removed and replaced with - `istio-discovery --set values.istiodRemote.enabled=true` - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - enabled: - description: Indicates if this cluster/install should consume - a "remote" istiod instance, - type: boolean - injectionCABundle: - description: injector ca bundle - type: string - injectionPath: - description: Path to use for the sidecar injector webhook - service. - type: string - injectionURL: - description: URL to use for sidecar injector webhook. - type: string - type: object - meshConfig: - description: |- - Defines runtime configuration of components, including Istiod and istio-agent behavior. - See https://istio.io/docs/reference/config/istio.mesh.v1alpha1/ for all available options. - properties: - accessLogEncoding: - description: |- - Encoding for the proxy access log (`TEXT` or `JSON`). - Default value is `TEXT`. - enum: - - TEXT - - JSON - type: string - accessLogFile: - description: |- - File address for the proxy access log (e.g. /dev/stdout). - Empty value disables access logging. - type: string - accessLogFormat: - description: |- - Format for the proxy access log - Empty value results in proxy's default access log format - type: string - ca: - description: |- - If specified, Istiod will authorize and forward the CSRs from the workloads to the specified external CA - using the Istio CA gRPC API. - properties: - address: - description: |- - REQUIRED. Address of the CA server implementing the Istio CA gRPC API. - Can be IP address or a fully qualified DNS name with port - Eg: custom-ca.default.svc.cluster.local:8932, 192.168.23.2:9000 - type: string - istiodSide: - description: |- - Use istiodSide to specify CA Server integrate to Istiod side or Agent side - Default: true - type: boolean - requestTimeout: - description: |- - timeout for forward CSR requests from Istiod to External CA - Default: 10s - type: string - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. - Regarding tlsSettings: - - DISABLE MODE is legitimate for the case Istiod is making the request via an Envoy sidecar. - DISABLE MODE can also be used for testing - - TLS MUTUAL MODE be on by default. If the CA certificates - (cert bundle to verify the CA server's certificate) is omitted, Istiod will - use the system root certs to verify the CA server's certificate. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - required: - - address - type: object - caCertificates: - description: |- - The extra root certificates for workload-to-workload communication. - The plugin certificates (the 'cacerts' secret) or self-signed certificates (the 'istio-ca-secret' secret) - are automatically added by Istiod. - The CA certificate that signs the workload certificates is automatically added by Istio Agent. - items: - properties: - certSigners: - description: |- - when Istiod is acting as RA(registration authority) - If set, they are used for these signers. Otherwise, this trustAnchor is used for all signers. - items: - type: string - type: array - pem: - description: The PEM data of the certificate. - type: string - spiffeBundleUrl: - description: |- - The SPIFFE bundle endpoint URL that complies to: - https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE_Trust_Domain_and_Bundle.md#the-spiffe-trust-domain-and-bundle - The endpoint should support authentication based on Web PKI: - https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE_Trust_Domain_and_Bundle.md#521-web-pki - The certificate is retrieved from the endpoint. - type: string - trustDomains: - description: |- - Optional. Specify the list of trust domains to which this trustAnchor data belongs. - If set, they are used for these trust domains. Otherwise, this trustAnchor is used for default trust domain - and its aliases. - Note that we can have multiple trustAnchor data for a same trustDomain. - In that case, trustAnchors with a same trust domain will be merged and used together to verify peer certificates. - If neither certSigners nor trustDomains is set, this trustAnchor is used for all trust domains and all signers. - If only trustDomains is set, this trustAnchor is used for these trustDomains and all signers. - If only certSigners is set, this trustAnchor is used for these certSigners and all trust domains. - If both certSigners and trustDomains is set, this trustAnchor is only used for these signers and trust domains. - items: - type: string - type: array - type: object - x-kubernetes-validations: - - message: At most one of [pem spiffeBundleUrl] should be - set - rule: (has(self.pem)?1:0) + (has(self.spiffeBundleUrl)?1:0) - <= 1 - type: array - certificates: - description: |- - Configure the provision of certificates. - - Note: Deprecated, please refer to Cert-Manager or other cert provisioning solutions to sign DNS certificates. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - items: - description: "Certificate configures the provision of a - certificate and its key.\nExample 1: key and cert stored - in a secret\n```\n{ secretName: galley-cert\n\n\t secretNamespace: - istio-system\n\t dnsNames:\n\t - galley.istio-system.svc\n\t - \ - galley.mydomain.com\n\t}\n\n```\nExample 2: key - and cert stored in a directory\n```\n{ dnsNames:\n - - pilot.istio-system\n - pilot.istio-system.svc\n - pilot.mydomain.com\n - \ }\n\n```" - properties: - dnsNames: - description: |- - The DNS names for the certificate. A certificate may contain - multiple DNS names. - items: - type: string - type: array - secretName: - description: |- - Name of the secret the certificate and its key will be stored into. - If it is empty, it will not be stored into a secret. - Instead, the certificate and its key will be stored into a hard-coded directory. - type: string - type: object - type: array - configSources: - description: |- - 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. - items: - description: |- - ConfigSource describes information about a configuration store inside a - mesh. A single control plane instance can interact with one or more data - sources. - properties: - address: - description: |- - Address of the server implementing the Istio Mesh Configuration - protocol (MCP). Can be IP address or a fully qualified DNS name. - Use xds:// to specify a grpc-based xds backend, k8s:// to specify a k8s controller or - fs:/// to specify a file-based backend with absolute path to the directory. - type: string - subscribedResources: - description: Describes the source of configuration, - if nothing is specified default is MCP - items: - description: Resource describes the source of configuration - enum: - - SERVICE_REGISTRY - type: string - type: array - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. If the MCP server - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - type: array - connectTimeout: - description: |- - Connection timeout used by Envoy. (MUST BE >=1ms) - Default timeout is 10s. - type: string - defaultConfig: - description: |- - Default proxy config used by gateway and sidecars. - In case of Kubernetes, the proxy config is applied once during the injection process, - and remain constant for the duration of the pod. The rest of the mesh config can be changed - at runtime and config gets distributed dynamically. - On Kubernetes, this can be overridden on individual pods with the `proxy.istio.io/config` annotation. - properties: - availabilityZone: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - binaryPath: - description: Path to the proxy binary - type: string - caCertificatesPem: - description: |- - The PEM data of the extra root certificates for workload-to-workload communication. - This includes the certificates defined in MeshConfig and any other certificates that Istiod uses as CA. - The plugin certificates (the 'cacerts' secret), self-signed certificates (the 'istio-ca-secret' secret) - are added automatically by Istiod. - items: - type: string - type: array - concurrency: - description: |- - The number of worker threads to run. - If unset, which is recommended, this will be automatically determined based on CPU requests/limits. - If set to 0, all cores on the machine will be used, ignoring CPU requests or limits. This can lead to major performance - issues if CPU limits are also set. - format: int32 - type: integer - configPath: - description: |- - Path to the generated configuration file directory. - Proxy agent generates the actual configuration and stores it in this directory. - type: string - controlPlaneAuthPolicy: - description: |- - AuthenticationPolicy defines how the proxy is authenticated when it connects to the control plane. - Default is set to `MUTUAL_TLS`. - enum: - - NONE - - MUTUAL_TLS - - INHERIT - type: string - customConfigFile: - description: |- - File path of custom proxy configuration, currently used by proxies - in front of Mixer and Pilot. - type: string - discoveryAddress: - description: |- - Address of the discovery service exposing xDS with mTLS connection. - The inject configuration may override this value. - type: string - discoveryRefreshDelay: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - drainDuration: - description: |- - restart. MUST be >=1s (e.g., _1s/1m/1h_) - Default drain duration is `45s`. - type: string - envoyAccessLogService: - description: |- - Address of the service to which access logs from Envoys should be - sent. (e.g. `accesslog-service:15000`). See [Access Log - Service](https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/accesslog/v2/als.proto) - for details about Envoy's gRPC Access Log Service API. - properties: - address: - description: |- - Address of a remove service used for various purposes (access log - receiver, metrics receiver, etc.). Can be IP address or a fully - qualified DNS name. - type: string - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the - socket to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsSettings: - description: |- - Use the `tlsSettings` to specify the tls mode to use. If the remote service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - envoyMetricsService: - description: |- - Address of the Envoy Metrics Service implementation (e.g. `metrics-service:15000`). - See [Metric Service](https://www.envoyproxy.io/docs/envoy/latest/api-v2/config/metrics/v2/metrics_service.proto) - for details about Envoy's Metrics Service API. - properties: - address: - description: |- - Address of a remove service used for various purposes (access log - receiver, metrics receiver, etc.). Can be IP address or a fully - qualified DNS name. - type: string - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the - socket to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsSettings: - description: |- - Use the `tlsSettings` to specify the tls mode to use. If the remote service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - type: object - envoyMetricsServiceAddress: - description: 'Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto.' - type: string - extraStatTags: - description: |- - An additional list of tags to extract from the in-proxy Istio telemetry. These extra tags can be - added by configuring the telemetry extension. Each additional tag needs to be present in this list. - Extra tags emitted by the telemetry extensions must be listed here so that they can be processed - and exposed as Prometheus metrics. - Deprecated: `istio.stats` is a native filter now, this field is no longer needed. - items: - type: string - type: array - gatewayTopology: - description: |- - Topology encapsulates the configuration which describes where the proxy is - located i.e. behind a (or N) trusted proxy (proxies) or directly exposed - to the internet. This configuration only effects gateways and is applied - to all the gateways in the cluster unless overridden via annotations of the - gateway workloads. - properties: - forwardClientCertDetails: - description: |- - Configures how the gateway proxy handles x-forwarded-client-cert (XFCC) - header in the incoming request. - enum: - - UNDEFINED - - SANITIZE - - FORWARD_ONLY - - APPEND_FORWARD - - SANITIZE_SET - - ALWAYS_FORWARD_ONLY - type: string - numTrustedProxies: - description: |- - Number of trusted proxies deployed in front of the Istio gateway proxy. - When this option is set to value N greater than zero, the trusted client - address is assumed to be the Nth address from the right end of the - X-Forwarded-For (XFF) header from the incoming request. If the - X-Forwarded-For (XFF) header is missing or has fewer than N addresses, the - gateway proxy falls back to using the immediate downstream connection's - source address as the trusted client address. - Note that the gateway proxy will append the downstream connection's source - address to the X-Forwarded-For (XFF) address and set the - X-Envoy-External-Address header to the trusted client address before - forwarding it to the upstream services in the cluster. - The default value of numTrustedProxies is 0. - See [Envoy XFF](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_conn_man/headers#config-http-conn-man-headers-x-forwarded-for) - header handling for more details. - format: int32 - type: integer - proxyProtocol: - description: |- - Enables [PROXY protocol](http://www.haproxy.org/download/1.5/doc/proxy-protocol.txt) for - downstream connections on a gateway. - type: object - type: object - holdApplicationUntilProxyStarts: - description: |- - Boolean flag for enabling/disabling the holdApplicationUntilProxyStarts behavior. - This feature adds hooks to delay application startup until the pod proxy - is ready to accept traffic, mitigating some startup race conditions. - Default value is 'false'. - type: boolean - image: - description: Specifies the details of the proxy image. - properties: - imageType: - description: |- - The image type of the image. - Istio publishes default, debug, and distroless images. - Other values are allowed if those image types (example: centos) are published to the specified hub. - supported values: default, debug, distroless. - type: string - type: object - interceptionMode: - description: The mode used to redirect inbound traffic - to Envoy. - enum: - - REDIRECT - - TPROXY - - NONE - type: string - meshId: - description: |- - The unique identifier for the [service mesh](https://istio.io/docs/reference/glossary/#service-mesh) - All control planes running in the same service mesh should specify the same mesh ID. - Mesh ID is used to label telemetry reports for cases where telemetry from multiple meshes is mixed together. - type: string - privateKeyProvider: - description: Specifies the details of the Private Key - Provider configuration for gateway and sidecar proxies. - properties: - cryptomb: - description: Use CryptoMb private key provider - properties: - fallback: - description: |- - If the private key provider isn’t available (eg. the required hardware capability doesn’t existed) - Envoy will fallback to the BoringSSL default implementation when the fallback is true. - The default value is false. - type: boolean - pollDelay: - description: |- - How long to wait until the per-thread processing queue should be processed. If the processing queue - gets full (eight sign or decrypt requests are received) it is processed immediately. - However, if the queue is not filled before the delay has expired, the requests already in the queue - are processed, even if the queue is not full. - In effect, this value controls the balance between latency and throughput. - The duration needs to be set to a value greater than or equal to 1 millisecond. - type: string - type: object - qat: - description: Use QAT private key provider - properties: - fallback: - description: |- - If the private key provider isn’t available (eg. the required hardware capability doesn’t existed) - Envoy will fallback to the BoringSSL default implementation when the fallback is true. - The default value is false. - type: boolean - pollDelay: - description: |- - How long to wait before polling the hardware accelerator after a request has been submitted there. - Having a small value leads to quicker answers from the hardware but causes more polling loop spins, - leading to potentially larger CPU usage. - The duration needs to be set to a value greater than or equal to 1 millisecond. - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [cryptomb qat] should be set - rule: (has(self.cryptomb)?1:0) + (has(self.qat)?1:0) - <= 1 - proxyAdminPort: - description: |- - Port on which Envoy should listen for administrative commands. - Default port is `15000`. - format: int32 - type: integer - proxyBootstrapTemplatePath: - description: Path to the proxy bootstrap template file - type: string - proxyHeaders: - description: "Define the set of headers to add/modify - for HTTP request/responses.\n\nTo enable an optional - header, simply set the field. If no specific configuration - is required, an empty object (`{}`) will enable it.\nNote: - currently all headers are enabled by default.\n\nBelow - shows an example of customizing the `server` header - and disabling the `X-Envoy-Attempt-Count` header:\n\n```yaml\nproxyHeaders:\n\n\tserver:\n\t - \ value: \"my-custom-server\"\n\trequestId: {} // Explicitly - enable Request IDs. As this is the default, this has - no effect.\n\tattemptCount:\n\t disabled: true\n\n```\n\nSome - headers are enabled by default, and require explicitly - disabling. See below for an example of disabling all - default-enabled headers:\n\n```yaml\nproxyHeaders:\n\n\tforwardedClientCert: - SANITIZE\n\tserver:\n\t disabled: true\n\trequestId:\n\t - \ disabled: true\n\tattemptCount:\n\t disabled: true\n\tenvoyDebugHeaders:\n\t - \ disabled: true\n\tmetadataExchangeHeaders:\n\t mode: - IN_MESH\n\n```" - properties: - attemptCount: - description: |- - Controls the `X-Envoy-Attempt-Count` header. - If enabled, this header will be added on outbound request headers (including gateways) that have retries configured. - If disabled, this header will not be set. If it is already present, it will be preserved. - This header is enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - envoyDebugHeaders: - description: |- - Controls various `X-Envoy-*` headers, such as `X-Envoy-Overloaded` and `X-Envoy-Upstream-Service-Time`. If enabled, - these headers will be included. - If disabled, these headers will not be set. If they are already present, they will be preserved. - See the [Envoy documentation](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/filters/http/router/v3/router.proto#envoy-v3-api-field-extensions-filters-http-router-v3-router-suppress-envoy-headers) for more details. - These headers are enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - forwardedClientCert: - description: |- - Controls the `X-Forwarded-Client-Cert` header for inbound sidecar requests. To set this on gateways, use the `Topology` setting. - To disable the header, configure either `SANITIZE` (to always remove the header, if present) or `FORWARD_ONLY` (to leave the header as-is). - By default, `APPEND_FORWARD` will be used. - enum: - - UNDEFINED - - SANITIZE - - FORWARD_ONLY - - APPEND_FORWARD - - SANITIZE_SET - - ALWAYS_FORWARD_ONLY - type: string - metadataExchangeHeaders: - description: |- - Controls Istio metadata exchange headers `X-Envoy-Peer-Metadata` and `X-Envoy-Peer-Metadata-Id`. - By default, the behavior is unspecified. - If IN_MESH, these headers will not be appended to outbound requests from sidecars to services not in-mesh. - properties: - mode: - enum: - - UNDEFINED - - IN_MESH - type: string - type: object - requestId: - description: |- - Controls the `X-Request-Id` header. If enabled, a request ID is generated for each request if one is not already set. - This applies to all types of traffic (inbound, outbound, and gateways). - If disabled, no request ID will be generate for the request. If it is already present, it will be preserved. - Warning: request IDs are a critical component to mesh tracing and logging, so disabling this is not recommended. - This header is enabled by default if not configured. - properties: - disabled: - type: boolean - type: object - server: - description: |- - Controls the `server` header. If enabled, the `Server: istio-envoy` header is set in response headers for inbound traffic (including gateways). - If disabled, the `Server` header is not modified. If it is already present, it will be preserved. - properties: - disabled: - type: boolean - value: - description: If set, and the server header is - enabled, this value will be set as the server - header. By default, `istio-envoy` will be used. - type: string - type: object - setCurrentClientCertDetails: - description: |- - This field is valid only when forward_client_cert_details is APPEND_FORWARD or SANITIZE_SET - and the client connection is mTLS. It specifies the fields in - the client certificate to be forwarded. Note that `Hash` is always set, and - `By` is always set when the client certificate presents the URI type Subject Alternative Name value. - properties: - cert: - description: |- - Whether to forward the entire client cert in URL encoded PEM format. This will appear in the - XFCC header comma separated from other values with the value Cert="PEM". - Defaults to false. - type: boolean - chain: - description: |- - Whether to forward the entire client cert chain (including the leaf cert) in URL encoded PEM - format. This will appear in the XFCC header comma separated from other values with the value - Chain="PEM". - Defaults to false. - type: boolean - dns: - description: |- - Whether to forward the DNS type Subject Alternative Names of the client cert. - Defaults to true. - type: boolean - subject: - description: Whether to forward the subject of - the client cert. Defaults to true. - type: boolean - uri: - description: |- - Whether to forward the URI type Subject Alternative Name of the client cert. Defaults to - true. - type: boolean - type: object - type: object - proxyMetadata: - additionalProperties: - type: string - description: |- - Additional environment variables for the proxy. - Names starting with `ISTIO_META_` will be included in the generated bootstrap and sent to the XDS server. - type: object - proxyStatsMatcher: - description: "Proxy stats matcher defines configuration - for reporting custom Envoy stats.\nTo reduce memory - and CPU overhead from Envoy stats system, Istio proxies - by\ndefault create and expose only a subset of Envoy - stats. This option is to\ncontrol creation of additional - Envoy stats with prefix, suffix, and regex\nexpressions - match on the name of the stats. This replaces the stats\ninclusion - annotations\n(`sidecar.istio.io/statsInclusionPrefixes`,\n`sidecar.istio.io/statsInclusionRegexps`, - and\n`sidecar.istio.io/statsInclusionSuffixes`). For - example, to enable stats\nfor circuit breakers, request - retries, upstream connections, and request timeouts,\nyou - can specify stats matcher as follows:\n```yaml\nproxyStatsMatcher:\n\n\tinclusionRegexps:\n\t - \ - .*outlier_detection.*\n\t - .*upstream_rq_retry.*\n\t - \ - .*upstream_cx_.*\n\tinclusionSuffixes:\n\t - upstream_rq_timeout\n\n```\nNote - including more Envoy stats might increase number of - time series\ncollected by prometheus significantly. - Care needs to be taken on Prometheus\nresource provision - and configuration to reduce cardinality." - properties: - inclusionPrefixes: - description: Proxy stats name prefix matcher for inclusion. - items: - type: string - type: array - inclusionRegexps: - description: Proxy stats name regexps matcher for - inclusion. - items: - type: string - type: array - inclusionSuffixes: - description: Proxy stats name suffix matcher for inclusion. - items: - type: string - type: array - type: object - readinessProbe: - description: |- - VM Health Checking readiness probe. This health check config exactly mirrors the - kubernetes readiness probe configuration both in schema and logic. - Only one health check method of 3 can be set at a time. - properties: - exec: - description: Exec specifies the action to take. - properties: - command: - description: |- - Command is the command line to execute inside the container, the working directory for the - command is root ('/') in the container's filesystem. The command is simply exec'd, it is - not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use - a shell, you need to explicitly call out to that shell. - Exit status of 0 is treated as live/healthy and non-zero is unhealthy. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - failureThreshold: - description: |- - Minimum consecutive failures for the probe to be considered failed after having succeeded. - Defaults to 3. Minimum value is 1. - format: int32 - type: integer - grpc: - description: GRPC specifies an action involving a - GRPC port. - properties: - port: - description: Port number of the gRPC service. - Number must be in the range 1 to 65535. - format: int32 - type: integer - service: - default: "" - description: |- - Service is the name of the service to place in the gRPC HealthCheckRequest - (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). - - If this is not specified, the default behavior is defined by gRPC. - type: string - required: - - port - type: object - httpGet: - description: HTTPGet specifies the http request to - perform. - properties: - host: - description: |- - Host name to connect to, defaults to the pod IP. You probably want to set - "Host" in httpHeaders instead. - type: string - httpHeaders: - description: Custom headers to set in the request. - HTTP allows repeated headers. - items: - description: HTTPHeader describes a custom header - to be used in HTTP probes - properties: - name: - description: |- - The header field name. - This will be canonicalized upon output, so case-variant names will be understood as the same header. - type: string - value: - description: The header field value - type: string - required: - - name - - value - type: object - type: array - x-kubernetes-list-type: atomic - path: - description: Path to access on the HTTP server. - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Name or number of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - scheme: - description: |- - Scheme to use for connecting to the host. - Defaults to HTTP. - type: string - required: - - port - type: object - initialDelaySeconds: - description: |- - Number of seconds after the container has started before liveness probes are initiated. - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - format: int32 - type: integer - periodSeconds: - description: |- - How often (in seconds) to perform the probe. - Default to 10 seconds. Minimum value is 1. - format: int32 - type: integer - successThreshold: - description: |- - Minimum consecutive successes for the probe to be considered successful after having failed. - Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. - format: int32 - type: integer - tcpSocket: - description: TCPSocket specifies an action involving - a TCP port. - properties: - host: - description: 'Optional: Host name to connect to, - defaults to the pod IP.' - type: string - port: - anyOf: - - type: integer - - type: string - description: |- - Number or name of the port to access on the container. - Number must be in the range 1 to 65535. - Name must be an IANA_SVC_NAME. - x-kubernetes-int-or-string: true - required: - - port - type: object - terminationGracePeriodSeconds: - description: |- - Optional duration in seconds the pod needs to terminate gracefully upon probe failure. - The grace period is the duration in seconds after the processes running in the pod are sent - a termination signal and the time when the processes are forcibly halted with a kill signal. - Set this value longer than the expected cleanup time for your process. - If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this - value overrides the value provided by the pod spec. - Value must be non-negative integer. The value zero indicates stop immediately via - the kill signal (no opportunity to shut down). - This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. - Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. - format: int64 - type: integer - timeoutSeconds: - description: |- - Number of seconds after which the probe times out. - Defaults to 1 second. Minimum value is 1. - More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes - format: int32 - type: integer - type: object - runtimeValues: - additionalProperties: - type: string - description: |- - Envoy [runtime configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/operations/runtime) to set during bootstrapping. - This enables setting experimental, unsafe, unsupported, and deprecated features that should be used with extreme caution. - type: object - sds: - description: |- - Secret Discovery Service(SDS) configuration to be used by the proxy. - - Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto. - properties: - enabled: - description: True if SDS is enabled. - type: boolean - k8sSaJwtPath: - description: Path of k8s service account JWT path. - type: string - type: object - serviceCluster: - description: |- - Service cluster defines the name for the `service_cluster` that is - shared by all Envoy instances. This setting corresponds to - `--service-cluster` flag in Envoy. In a typical Envoy deployment, the - `service-cluster` flag is used to identify the caller, for - source-based routing scenarios. - - Since Istio does not assign a local `service/service` version to each - Envoy instance, the name is same for all of them. However, the - source/caller's identity (e.g., IP address) is encoded in the - `--service-node` flag when launching Envoy. When the RDS service - receives API calls from Envoy, it uses the value of the `service-node` - flag to compute routes that are relative to the service instances - located at that IP address. - type: string - statNameLength: - description: |- - Maximum length of name field in Envoy's metrics. The length of the name field - is determined by the length of a name field in a service and the set of labels that - comprise a particular version of the service. The default value is set to 189 characters. - Envoy's internal metrics take up 67 characters, for a total of 256 character name per metric. - Increase the value of this field if you find that the metrics from Envoys are truncated. - format: int32 - type: integer - statsdUdpAddress: - description: IP Address and Port of a statsd UDP listener - (e.g. `10.75.241.127:9125`). - type: string - statusPort: - description: |- - Port on which the agent should listen for administrative commands such as readiness probe. - Default is set to port `15020`. - format: int32 - type: integer - terminationDrainDuration: - description: |- - The amount of time allowed for connections to complete on proxy shutdown. - On receiving `SIGTERM` or `SIGINT`, `istio-agent` tells the active Envoy to start gracefully draining, - discouraging any new connections and allowing existing connections to complete. It then - sleeps for the `terminationDrainDuration` and then kills any remaining active Envoy processes. - If not set, a default of `5s` will be applied. - type: string - tracing: - description: Tracing configuration to be used by the proxy. - properties: - customTags: - additionalProperties: - description: |- - Configure custom tags that will be added to any active span. - Tags can be generated via literals, environment variables or an incoming request header. - properties: - environment: - description: |- - The custom tag's value should be populated from an environmental - variable - properties: - defaultValue: - description: |- - When the environment variable is not found, - the tag's value will be populated with this default value if specified, - otherwise the tag will not be populated. - type: string - name: - description: Name of the environment variable - used to populate the tag's value - type: string - type: object - header: - description: |- - The custom tag's value is populated by an http header from - an incoming request. - properties: - defaultValue: - description: |- - Default value to be used for the tag when the named HTTP header does not exist. - The tag will be skipped if no default value is provided. - type: string - name: - description: HTTP header name used to obtain - the value from to populate the tag value. - type: string - type: object - literal: - description: The custom tag's value is the specified - literal. - properties: - value: - description: Static literal value used to - populate the tag value. - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [literal environment header] - should be set - rule: (has(self.literal)?1:0) + (has(self.environment)?1:0) - + (has(self.header)?1:0) <= 1 - description: "and gateways).\nThe key represents the - name of the tag.\nEx:\n```yaml\ncustom_tags:\n\n\tnew_tag_name:\n\t - \ header:\n\t name: custom-http-header-name\n\t - \ default_value: defaulted-value-from-custom-header\n\n```" - type: object - datadog: - description: Use a Datadog tracer. - properties: - address: - description: Address of the Datadog Agent. - type: string - type: object - lightstep: - description: |- - Use a Lightstep tracer. - NOTE: For Istio 1.15+, this configuration option will result - in using OpenTelemetry-based Lightstep integration. - properties: - accessToken: - description: The Lightstep access token. - type: string - address: - description: Address of the Lightstep Satellite - pool. - type: string - type: object - maxPathTagLength: - description: |- - Configures the maximum length of the request path to extract and include in the - HttpUrl tag. Used to truncate length request paths to meet the needs of tracing - backend. If not set, then a length of 256 will be used. - format: int32 - type: integer - openCensusAgent: - description: Use an OpenCensus tracer exporting to - an OpenCensus agent. - properties: - address: - description: |- - gRPC address for the OpenCensus agent (e.g. dns://authority/host:port or - unix:path). See [gRPC naming - docs](https://github.com/grpc/grpc/blob/master/doc/naming.md) for - details. - type: string - context: - description: |- - Specifies the set of context propagation headers used for distributed - tracing. Default is `["W3C_TRACE_CONTEXT"]`. If multiple values are specified, - the proxy will attempt to read each header for each request and will - write all headers. - items: - description: |- - TraceContext selects the context propagation headers used for - distributed tracing. - enum: - - UNSPECIFIED - - W3C_TRACE_CONTEXT - - GRPC_BIN - - CLOUD_TRACE_CONTEXT - - B3 - type: string - type: array - type: object - sampling: - description: |- - The percentage of requests (0.0 - 100.0) that will be randomly selected for trace generation, - if not requested by the client or not forced. Default is 1.0. - type: number - stackdriver: - description: Use a Stackdriver tracer. - properties: - debug: - description: debug enables trace output to stdout. - type: boolean - maxNumberOfAnnotations: - description: |- - The global default max number of annotation events per span. - default is 200. - format: int64 - type: integer - maxNumberOfAttributes: - description: |- - The global default max number of attributes per span. - default is 200. - format: int64 - type: integer - maxNumberOfMessageEvents: - description: |- - The global default max number of message events per span. - default is 200. - format: int64 - type: integer - type: object - tlsSettings: - description: |- - Use the tlsSettings to specify the tls mode to use. If the remote tracing service - uses Istio mutual TLS and shares the root CA with Pilot, specify the TLS - mode as `ISTIO_MUTUAL`. - properties: - caCertificates: - description: |- - OPTIONAL: The path to the file containing certificate authority - certificates to use in verifying a presented server certificate. If - omitted, the proxy will verify the server's certificate using - the OS CA certificates. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - caCrl: - description: |- - OPTIONAL: The path to the file containing the certificate revocation list (CRL) - to use in verifying a presented server certificate. `CRL` is a list of certificates - that have been revoked by the CA (Certificate Authority) before their scheduled expiration date. - If specified, the proxy will verify if the presented certificate is part of the revoked list of certificates. - If omitted, the proxy will not verify the certificate against the `crl`. Note that if `credentialName` is set, - `CRL` cannot be specified using `caCrl`, rather it has to be specified inside the credential. - type: string - clientCertificate: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client-side TLS certificate to use. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - credentialName: - description: |- - The name of the secret that holds the TLS certs for the - client including the CA certificates. This secret must exist in - the namespace of the proxy using the certificates. - An Opaque secret should contain the following keys and values: - `key: `, `cert: `, `cacert: `, - `crl: ` - Here CACertificate is used to verify the server certificate. - For mutual TLS, `cacert: ` can be provided in the - same secret or a separate secret named `-cacert`. - A TLS secret for client certificates with an additional - `ca.crt` key for CA certificates and `ca.crl` key for - certificate revocation list(CRL) is also supported. - Only one of client certificates and CA certificate - or credentialName can be specified. - - **NOTE:** This field is applicable at sidecars only if - `DestinationRule` has a `workloadSelector` specified. - Otherwise the field will be applicable only at gateways, and - sidecars will continue to use the certificate paths. - type: string - insecureSkipVerify: - description: |- - `insecureSkipVerify` specifies whether the proxy should skip verifying the - CA signature and SAN for the server certificate corresponding to the host. - The default value of this field is false. - type: boolean - mode: - description: |- - Indicates whether connections to this port should be secured - using TLS. The value of this field determines how TLS is enforced. - enum: - - DISABLE - - SIMPLE - - MUTUAL - - ISTIO_MUTUAL - type: string - privateKey: - description: |- - REQUIRED if mode is `MUTUAL`. The path to the file holding the - client's private key. - Should be empty if mode is `ISTIO_MUTUAL`. - type: string - sni: - description: |- - SNI string to present to the server during TLS handshake. - If unspecified, SNI will be automatically set based on downstream HTTP - host/authority header for SIMPLE and MUTUAL TLS modes. - type: string - subjectAltNames: - description: |- - A list of alternate names to verify the subject identity in the - certificate. If specified, the proxy will verify that the server - certificate's subject alt name matches one of the specified values. - If specified, this list overrides the value of subject_alt_names - from the ServiceEntry. If unspecified, automatic validation of upstream - presented certificate for new upstream connections will be done based on the - downstream HTTP host/authority header. - items: - type: string - type: array - type: object - zipkin: - description: Use a Zipkin tracer. - properties: - address: - description: Address of the Zipkin service (e.g. - _zipkin:9411_). - type: string - type: object - type: object - x-kubernetes-validations: - - message: At most one of [zipkin lightstep datadog stackdriver - openCensusAgent] should be set - rule: (has(self.zipkin)?1:0) + (has(self.lightstep)?1:0) - + (has(self.datadog)?1:0) + (has(self.stackdriver)?1:0) - + (has(self.openCensusAgent)?1:0) <= 1 - tracingServiceName: - description: |- - Used by Envoy proxies to assign the values for the service names in trace - spans. - enum: - - APP_LABEL_AND_NAMESPACE - - CANONICAL_NAME_ONLY - - CANONICAL_NAME_AND_NAMESPACE - type: string - zipkinAddress: - description: |- - Address of the Zipkin service (e.g. _zipkin:9411_). - DEPRECATED: Use [tracing][istio.mesh.v1alpha1.ProxyConfig.tracing] instead. - - Deprecated: Marked as deprecated in mesh/v1alpha1/proxy.proto. - type: string - type: object - x-kubernetes-validations: - - message: At most one of [serviceCluster tracingServiceName] - should be set - rule: (has(self.serviceCluster)?1:0) + (has(self.tracingServiceName)?1:0) - <= 1 - defaultDestinationRuleExportTo: - description: |- - The default value for the `DestinationRule.exportTo` field. Has the same - syntax as `defaultServiceExportTo`. - - If not set the system will use "*" as the default value which implies that - destination rules are exported to all namespaces - items: - type: string - type: array - defaultHttpRetryPolicy: - description: "Configure the default HTTP retry policy.\nThe - default number of retry attempts is set at 2 for these errors:\n\n\t\"connect-failure,refused-stream,unavailable,cancelled,retriable-status-codes\".\n\nSetting - the number of attempts to 0 disables retry policy globally.\nThis - setting can be overridden on a per-host basis using the - Virtual Service\nAPI.\nAll settings in the retry policy - except `perTryTimeout` can currently be\nconfigured globally - via this field." - properties: - attempts: - description: |- - Number of retries to be allowed for a given request. The interval - between retries will be determined automatically (25ms+). When request - `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) - or `per_try_timeout` is configured, the actual number of retries attempted also depends on - the specified request `timeout` and `per_try_timeout` values. MUST BE >= 0. If `0`, retries will be disabled. - The maximum possible number of requests made will be 1 + `attempts`. - format: int32 - type: integer - perTryTimeout: - description: |- - Timeout per attempt for a given request, including the initial call and any retries. Format: 1h/1m/1s/1ms. MUST BE >=1ms. - Default is same value as request - `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), - which means no timeout. - type: string - retryOn: - description: |- - Specifies the conditions under which retry takes place. - One or more policies can be specified using a ‘,’ delimited list. - See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on) - and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details. - - In addition to the policies specified above, a list of HTTP status codes can be passed, such as `retryOn: "503,reset"`. - Note these status codes refer to the actual responses received from the destination. - For example, if a connection is reset, Istio will translate this to 503 for it's response. - However, the destination did not return a 503 error, so this would not match `"503"` (it would, however, match `"reset"`). - - If not specified, this defaults to `connect-failure,refused-stream,unavailable,cancelled,503`. - type: string - retryRemoteLocalities: - description: |- - Flag to specify whether the retries should retry to other localities. - See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details. - type: boolean - type: object - defaultProviders: - description: Specifies extension providers to use by default - in Istio configuration resources. - properties: - accessLogging: - description: Name of the default provider(s) for access - logging. - items: - type: string - type: array - metrics: - description: Name of the default provider(s) for metrics. - items: - type: string - type: array - tracing: - description: Name of the default provider(s) for tracing. - items: - type: string - type: array - type: object - defaultServiceExportTo: - description: |- - The default value for the ServiceEntry.exportTo field and services - imported through container registry integrations, e.g. this applies to - Kubernetes Service resources. The value is a list of namespace names and - reserved namespace aliases. The allowed namespace aliases are: - ``` - * - All Namespaces - . - Current Namespace - ~ - No Namespace - ``` - If not set the system will use "*" as the default value which implies that - services are exported to all namespaces. - - `All namespaces` is a reasonable default for implementations that don't - need to restrict access or visibility of services across namespace - boundaries. If that requirement is present it is generally good practice to - make the default `Current namespace` so that services are only visible - within their own namespaces by default. Operators can then expand the - visibility of services to other namespaces as needed. Use of `No Namespace` - is expected to be rare but can have utility for deployments where - dependency management needs to be precise even within the scope of a single - namespace. - - For further discussion see the reference documentation for `ServiceEntry`, - `Sidecar`, and `Gateway`. - items: - type: string - type: array - defaultVirtualServiceExportTo: - description: |- - The default value for the VirtualService.exportTo field. Has the same - syntax as `defaultServiceExportTo`. - - If not set the system will use "*" as the default value which implies that - virtual services are exported to all namespaces - items: - type: string - type: array - disableEnvoyListenerLog: - description: |- - This flag disables Envoy Listener logs. - See [Listener Access Log](https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/listener/v3/listener.proto#envoy-v3-api-field-config-listener-v3-listener-access-log) - Istio Enables Envoy's listener access logs on "NoRoute" response flag. - Default value is `false`. - type: boolean - discoverySelectors: - description: |- - A list of Kubernetes selectors that specify the set of namespaces that Istio considers when - computing configuration updates for sidecars. This can be used to reduce Istio's computational load - by limiting the number of entities (including services, pods, and endpoints) that are watched and processed. - If omitted, Istio will use the default behavior of processing all namespaces in the cluster. - Elements in the list are disjunctive (OR semantics), i.e. a namespace will be included if it matches any selector. - The following example selects any namespace that matches either below: - 1. The namespace has both of these labels: `env: prod` and `region: us-east1` - 2. The namespace has label `app` equal to `cassandra` or `spark`. - ```yaml - discoverySelectors: - - matchLabels: - env: prod - region: us-east1 - - matchExpressions: - - key: app - operator: In - values: - - cassandra - - spark - - ``` - Refer to the [Kubernetes selector docs](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors) - for additional detail on selector semantics. - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - dnsRefreshRate: - description: |- - Configures DNS refresh rate for Envoy clusters of type `STRICT_DNS` - Default refresh rate is `60s`. - type: string - enableAutoMtls: - description: |- - This flag is used to enable mutual `TLS` automatically for service to service communication - within the mesh, default true. - If set to true, and a given service does not have a corresponding `DestinationRule` configured, - or its `DestinationRule` does not have ClientTLSSettings specified, Istio configures client side - TLS configuration appropriately. More specifically, - If the upstream authentication policy is in `STRICT` mode, use Istio provisioned certificate - for mutual `TLS` to connect to upstream. - If upstream service is in plain text mode, use plain text. - If the upstream authentication policy is in PERMISSIVE mode, Istio configures clients to use - mutual `TLS` when server sides are capable of accepting mutual `TLS` traffic. - If service `DestinationRule` exists and has `ClientTLSSettings` specified, that is always used instead. - type: boolean - enableEnvoyAccessLogService: - description: |- - This flag enables Envoy's gRPC Access Log Service. - See [Access Log Service](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/grpc/v3/als.proto) - for details about Envoy's gRPC Access Log Service API. - Default value is `false`. - type: boolean - enablePrometheusMerge: - description: |- - If enabled, Istio agent will merge metrics exposed by the application with metrics from Envoy - and Istio agent. The sidecar injection will replace `prometheus.io` annotations present on the pod - and redirect them towards Istio agent, which will then merge metrics of from the application with Istio metrics. - This relies on the annotations `prometheus.io/scrape`, `prometheus.io/port`, and - `prometheus.io/path` annotations. - If you are running a separately managed Envoy with an Istio sidecar, this may cause issues, as the metrics will collide. - In this case, it is recommended to disable aggregation on that deployment with the - `prometheus.istio.io/merge-metrics: "false"` annotation. - If not specified, this will be enabled by default. - type: boolean - enableTracing: - description: |- - Flag to control generation of trace spans and request IDs. - Requires a trace span collector defined in the proxy configuration. - type: boolean - extensionProviders: - description: |- - Defines a list of extension providers that extend Istio's functionality. For example, the AuthorizationPolicy - can be used with an extension provider to delegate the authorization decision to a custom authorization system. - items: - properties: - datadog: - description: Configures a Datadog tracing provider. - properties: - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the Datadog agent. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "datadog.default.svc.cluster.local" or "bar/datadog.example.com". - type: string - required: - - port - - service - type: object - envoyExtAuthzGrpc: - description: Configures an external authorizer that - implements the Envoy ext_authz filter authorization - check service using the gRPC API. - properties: - failOpen: - description: |- - If true, the HTTP request or TCP connection will be allowed even if the communication with the authorization service has failed, - or if the authorization service has returned a HTTP 5xx error. - Default is false. For HTTP request, it will be rejected with 403 (HTTP Forbidden). For TCP connection, it will be closed immediately. - type: boolean - includeRequestBodyInCheck: - description: If set, the client request body will - be included in the authorization request sent - to the authorization service. - properties: - allowPartialMessage: - description: |- - When this field is true, ext-authz filter will buffer the message until maxRequestBytes is reached. - The authorization request will be dispatched and no 413 HTTP error will be returned by the filter. - A "x-envoy-auth-partial-body: false|true" metadata header will be added to the authorization request message - indicating if the body data is partial. - type: boolean - maxRequestBytes: - description: |- - Sets the maximum size of a message body that the ext-authz filter will hold in memory. - If maxRequestBytes is reached, and allowPartialMessage is false, Envoy will return a 413 (Payload Too Large). - Otherwise the request will be sent to the provider with a partial message. - Note that this setting will have precedence over the failOpen field, the 413 will be returned even when the - failOpen is set to true. - format: int32 - type: integer - packAsBytes: - description: |- - If true, the body sent to the external authorization service in the gRPC authorization request is set with raw bytes - in the [raw_body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L153). - Otherwise, it will be filled with UTF-8 string in the [body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L147). - This field only works with the envoyExtAuthzGrpc provider and has no effect for the envoyExtAuthzHttp provider. - type: boolean - type: object - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ext_authz gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "my-ext-authz.foo.svc.cluster.local" or "bar/my-ext-authz.example.com". - type: string - statusOnError: - description: |- - Sets the HTTP status that is returned to the client when there is a network error to the authorization service. - The default status is "403" (HTTP Forbidden). - type: string - timeout: - description: |- - The maximum duration that the proxy will wait for a response from the provider, this is the timeout for a specific request (default timeout: 600s). - When this timeout condition is met, the proxy marks the communication to the authorization service as failure. - In this situation, the response sent back to the client will depend on the configured `failOpen` field. - type: string - required: - - port - - service - type: object - envoyExtAuthzHttp: - description: Configures an external authorizer that - implements the Envoy ext_authz filter authorization - check service using the HTTP API. - properties: - failOpen: - description: |- - If true, the user request will be allowed even if the communication with the authorization service has failed, - or if the authorization service has returned a HTTP 5xx error. - Default is false and the request will be rejected with "Forbidden" response. - type: boolean - headersToDownstreamOnAllow: - description: |- - List of headers from the authorization service that should be forwarded to downstream when the authorization - check result is allowed (HTTP code 200). - If not specified, the original response will not be modified and forwarded to downstream as-is. - Note, any existing headers will be overridden. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - headersToDownstreamOnDeny: - description: |- - List of headers from the authorization service that should be forwarded to downstream when the authorization - check result is not allowed (HTTP code other than 200). - If not specified, all the authorization response headers, except *Authority (Host)* will be in the response to - the downstream. - When a header is included in this list, *Path*, *Status*, *Content-Length*, *WWWAuthenticate* and *Location* are - automatically added. - Note, the body from the authorization service is always included in the response to downstream. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - headersToUpstreamOnAllow: - description: |- - List of headers from the authorization service that should be added or overridden in the original request and - forwarded to the upstream when the authorization check result is allowed (HTTP code 200). - If not specified, the original request will not be modified and forwarded to backend as-is. - Note, any existing headers will be overridden. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - includeAdditionalHeadersInCheck: - additionalProperties: - type: string - description: |- - Set of additional fixed headers that should be included in the authorization request sent to the authorization service. - Key is the header name and value is the header value. - Note that client request of the same key or headers specified in includeRequestHeadersInCheck will be overridden. - type: object - includeHeadersInCheck: - description: |- - DEPRECATED. Use includeRequestHeadersInCheck instead. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - items: - type: string - type: array - includeRequestBodyInCheck: - description: If set, the client request body will - be included in the authorization request sent - to the authorization service. - properties: - allowPartialMessage: - description: |- - When this field is true, ext-authz filter will buffer the message until maxRequestBytes is reached. - The authorization request will be dispatched and no 413 HTTP error will be returned by the filter. - A "x-envoy-auth-partial-body: false|true" metadata header will be added to the authorization request message - indicating if the body data is partial. - type: boolean - maxRequestBytes: - description: |- - Sets the maximum size of a message body that the ext-authz filter will hold in memory. - If maxRequestBytes is reached, and allowPartialMessage is false, Envoy will return a 413 (Payload Too Large). - Otherwise the request will be sent to the provider with a partial message. - Note that this setting will have precedence over the failOpen field, the 413 will be returned even when the - failOpen is set to true. - format: int32 - type: integer - packAsBytes: - description: |- - If true, the body sent to the external authorization service in the gRPC authorization request is set with raw bytes - in the [raw_body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L153). - Otherwise, it will be filled with UTF-8 string in the [body field](https://github.com/envoyproxy/envoy/blame/cffb095d59d7935abda12b9509bcd136808367bb/api/envoy/service/auth/v3/attribute_context.proto#L147). - This field only works with the envoyExtAuthzGrpc provider and has no effect for the envoyExtAuthzHttp provider. - type: boolean - type: object - includeRequestHeadersInCheck: - description: |- - List of client request headers that should be included in the authorization request sent to the authorization service. - Note that in addition to the headers specified here following headers are included by default: - 1. *Host*, *Method*, *Path* and *Content-Length* are automatically sent. - 2. *Content-Length* will be set to 0 and the request will not have a message body. However, the authorization - request can include the buffered client request body (controlled by includeRequestBodyInCheck setting), - consequently the value of Content-Length of the authorization request reflects the size of its payload size. - - Exact, prefix and suffix matches are supported (similar to the - [authorization policy rule syntax](https://istio.io/latest/docs/reference/config/security/authorization-policy/#Rule) - except the presence match): - - Exact match: "abc" will match on value "abc". - - Prefix match: "abc*" will match on value "abc" and "abcd". - - Suffix match: "*abc" will match on value "abc" and "xabc". - items: - type: string - type: array - pathPrefix: - description: |- - Sets a prefix to the value of authorization request header *Path*. - For example, setting this to "/check" for an original user request at path "/admin" will cause the - authorization check request to be sent to the authorization service at the path "/check/admin" instead of "/admin". - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ext_authz HTTP authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "my-ext-authz.foo.svc.cluster.local" or "bar/my-ext-authz.example.com". - type: string - statusOnError: - description: |- - Sets the HTTP status that is returned to the client when there is a network error to the authorization service. - The default status is "403" (HTTP Forbidden). - type: string - timeout: - description: |- - The maximum duration that the proxy will wait for a response from the provider (default timeout: 600s). - When this timeout condition is met, the proxy marks the communication to the authorization service as failure. - In this situation, the response sent back to the client will depend on the configured `failOpen` field. - type: string - required: - - port - - service - type: object - envoyFileAccessLog: - description: Configures an Envoy File Access Log provider. - properties: - logFormat: - description: Optional. Allows overriding of the - default access log format. - properties: - labels: - additionalProperties: - type: string - description: "JSON structured format for the - envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators)\ncan - be used as values for fields within the Struct. - Values are rendered\nas strings, numbers, - or boolean values, as appropriate\n(see: [format - dictionaries](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-dictionaries)). - Nested JSON is\nsupported for some command - operators (e.g. `FILTER_STATE` or `DYNAMIC_METADATA`).\nUse - `labels: {}` for default envoy JSON log format.\n\nExample:\n```\nlabels:\n\n\tstatus: - \"%RESPONSE_CODE%\"\n\tmessage: \"%LOCAL_REPLY_BODY%\"\n\n```" - type: object - text: - description: |- - Textual format for the envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators) may be - used in the format. The [format string documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-strings) - provides more information. - - NOTE: Istio will insert a newline ('\n') on all formats (if missing). - - Example: `text: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%"` - type: string - type: object - x-kubernetes-validations: - - message: At most one of [text labels] should be - set - rule: (has(self.text)?1:0) + (has(self.labels)?1:0) - <= 1 - path: - description: |- - Path to a local file to write the access log entries. - This may be used to write to streams, via `/dev/stderr` and `/dev/stdout` - If unspecified, defaults to `/dev/stdout`. - type: string - type: object - envoyHttpAls: - description: Configures an Envoy Access Logging Service - provider for HTTP traffic. - properties: - additionalRequestHeadersToLog: - description: Optional. Additional request headers - to log. - items: - type: string - type: array - additionalResponseHeadersToLog: - description: Optional. Additional response headers - to log. - items: - type: string - type: array - additionalResponseTrailersToLog: - description: Optional. Additional response trailers - to log. - items: - type: string - type: array - filterStateObjectsToLog: - description: Optional. Additional filter state objects - to log. - items: - type: string - type: array - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "http_envoy_accesslog" - - "listener_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - envoyOtelAls: - description: Configures an Envoy Open Telemetry Access - Logging Service provider. - properties: - logFormat: - description: |- - Optional. Format for the proxy access log - Empty value results in proxy's default access log format, following Envoy access logging formatting. - properties: - labels: - additionalProperties: - type: string - description: "Optional. Additional attributes - that describe the specific event occurrence.\nStructured - format for the envoy access logs. Envoy [command - operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators)\ncan - be used as values for fields within the Struct. - Values are rendered\nas strings, numbers, - or boolean values, as appropriate\n(see: [format - dictionaries](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-dictionaries)). - Nested JSON is\nsupported for some command - operators (e.g. FILTER_STATE or DYNAMIC_METADATA).\nAlias - to `attributes` field in [Open Telemetry](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/open_telemetry/v3/logs_service.proto)\n\nExample:\n```\nlabels:\n\n\tstatus: - \"%RESPONSE_CODE%\"\n\tmessage: \"%LOCAL_REPLY_BODY%\"\n\n```" - type: object - text: - description: |- - Textual format for the envoy access logs. Envoy [command operators](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#command-operators) may be - used in the format. The [format string documentation](https://www.envoyproxy.io/docs/envoy/latest/configuration/observability/access_log/usage#config-access-log-format-strings) - provides more information. - Alias to `body` field in [Open Telemetry](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/access_loggers/open_telemetry/v3/logs_service.proto) - Example: `text: "%LOCAL_REPLY_BODY%:%RESPONSE_CODE%:path=%REQ(:path)%"` - type: string - type: object - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "otel_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - envoyTcpAls: - description: Configures an Envoy Access Logging Service - provider for TCP traffic. - properties: - filterStateObjectsToLog: - description: Optional. Additional filter state objects - to log. - items: - type: string - type: array - logName: - description: |- - Optional. The friendly name of the access log. - Defaults: - - "tcp_envoy_accesslog" - - "listener_envoy_accesslog" - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that implements the Envoy ALS gRPC authorization service. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "envoy-als.foo.svc.cluster.local" or "bar/envoy-als.example.com". - type: string - required: - - port - - service - type: object - lightstep: - description: |- - Configures a Lightstep tracing provider. - Deprecated: For Istio 1.15+, please use an OpenTelemetryTracingProvider instead, more details can be found at https://github.com/istio/istio/issues/40027 - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - properties: - accessToken: - description: The Lightstep access token. - type: string - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the Lightstep collector. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "lightstep.default.svc.cluster.local" or "bar/lightstep.example.com". - type: string - required: - - port - - service - type: object - name: - description: REQUIRED. A unique name identifying the - extension provider. - type: string - opencensus: - description: |- - Configures an OpenCensusAgent tracing provider. - Deprecated: OpenCensus is deprecated, more details can be found at https://opentelemetry.io/blog/2023/sunsetting-opencensus/ - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - properties: - context: - description: |- - Specifies the set of context propagation headers used for distributed - tracing. Default is `["W3C_TRACE_CONTEXT"]`. If multiple values are specified, - the proxy will attempt to read each header for each request and will - write all headers. - items: - description: |- - TraceContext selects the context propagation headers used for - distributed tracing. - enum: - - UNSPECIFIED - - W3C_TRACE_CONTEXT - - GRPC_BIN - - CLOUD_TRACE_CONTEXT - - B3 - type: string - type: array - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the OpenCensusAgent. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "ocagent.default.svc.cluster.local" or "bar/ocagent.example.com". - type: string - required: - - port - - service - type: object - opentelemetry: - description: Configures an OpenTelemetry tracing provider. - properties: - dynatraceSampler: - description: |- - The Dynatrace adaptive traffic management (ATM) sampler. - - Example configuration: - - ```yaml - - name: otel-tracing - opentelemetry: - port: 443 - service: "{your-environment-id}.live.dynatrace.com" - http: - path: "/api/v2/otlp/v1/traces" - timeout: 10s - headers: - - name: "Authorization" - value: "Api-Token dt0c01." - resourceDetectors: - dynatrace: {} - dynatraceSampler: - tenant: "{your-environment-id}" - clusterId: 1234 - properties: - clusterId: - description: |- - REQUIRED. The identifier of the cluster in the Dynatrace platform. - The cluster here is Dynatrace-specific concept and not related to the cluster concept in Istio/Envoy. - - The value can be obtained from the Istio deployment page in Dynatrace. - format: int32 - type: integer - httpService: - description: |- - Optional. Dynatrace HTTP API to obtain sampling configuration. - - When not provided, the Dynatrace Sampler will re-use the configuration from the OpenTelemetryTracingProvider HTTP Exporter - (`service`, `port` and `http`), including the access token. - properties: - http: - description: REQUIRED. Specifies sampling - configuration URI. - properties: - headers: - description: |- - Optional. Allows specifying custom HTTP headers that will be added - to each HTTP request sent. - items: - properties: - name: - description: REQUIRED. The HTTP - header name. - type: string - value: - description: REQUIRED. The HTTP - header value. - type: string - required: - - name - - value - type: object - type: array - path: - description: REQUIRED. Specifies the - path on the service. - type: string - timeout: - description: |- - Optional. Specifies the timeout for the HTTP request. - If not specified, the default is 3s. - type: string - required: - - path - type: object - port: - description: REQUIRED. Specifies the port - of the service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the Dynatrace environment to obtain the sampling configuration. - The format is ``, where `` is the fully qualified Dynatrace environment - host name defined in the ServiceEntry. - - Example: "{your-environment-id}.live.dynatrace.com". - type: string - required: - - http - - port - - service - type: object - rootSpansPerMinute: - description: |- - Optional. Number of sampled spans per minute to be used - when the adaptive value cannot be obtained from the Dynatrace API. - - A default value of `1000` is used when: - - - `rootSpansPerMinute` is unset - - `rootSpansPerMinute` is set to 0 - format: int32 - type: integer - tenant: - description: |- - REQUIRED. The Dynatrace customer's tenant identifier. - - The value can be obtained from the Istio deployment page in Dynatrace. - type: string - required: - - clusterId - - tenant - type: object - grpc: - description: "Optional. Specifies the configuration - for exporting OTLP traces via GRPC.\nWhen empty, - traces will check whether HTTP is set.\nIf not, - traces will use default GRPC configurations.\n\nThe - following example shows how to configure the OpenTelemetry - ExtensionProvider to export via GRPC:\n\n1. Add/change - the OpenTelemetry extension provider in `MeshConfig`\n```yaml\n - \ - name: opentelemetry\n opentelemetry:\n - \ port: 8090\n service: tracing.example.com\n - \ grpc:\n timeout: 10s\n initialMetadata:\n - \ - name: \"Authentication\"\n value: \"token-xxxxx\"\n\n```\n\n2. - Deploy a `ServiceEntry` for the observability - back-end\n```yaml\napiVersion: networking.istio.io/v1alpha3\nkind: - ServiceEntry\nmetadata:\n\n\tname: tracing-grpc\n\nspec:\n\n\thosts:\n\t- - tracing.example.com\n\tports:\n\t- number: 8090\n\t - \ name: grpc-port\n\t protocol: GRPC\n\tresolution: - DNS\n\tlocation: MESH_EXTERNAL\n\n```" - properties: - initialMetadata: - description: |- - Optional. Additional metadata to include in streams initiated to the GrpcService. This can be used for - scenarios in which additional ad hoc authorization headers (e.g. “x-foo-bar: baz-key“) are to - be injected. - items: - properties: - name: - description: REQUIRED. The HTTP header - name. - type: string - value: - description: REQUIRED. The HTTP header - value. - type: string - required: - - name - - value - type: object - type: array - timeout: - description: Optional. Specifies the timeout - for the GRPC request. - type: string - type: object - http: - description: "Optional. Specifies the configuration - for exporting OTLP traces via HTTP.\nWhen empty, - traces will be exported via gRPC.\n\nThe following - example shows how to configure the OpenTelemetry - ExtensionProvider to export via HTTP:\n\n1. Add/change - the OpenTelemetry extension provider in `MeshConfig`\n```yaml\n - \ - name: otel-tracing\n opentelemetry:\n port: - 443\n service: my.olly-backend.com\n http:\n - \ path: \"/api/otlp/traces\"\n timeout: 10s\n - \ headers:\n - name: \"my-custom-header\"\n - \ value: \"some value\"\n\n```\n\n2. Deploy - a `ServiceEntry` for the observability back-end\n```yaml\napiVersion: - networking.istio.io/v1alpha3\nkind: ServiceEntry\nmetadata:\n\n\tname: - my-olly-backend\n\nspec:\n\n\thosts:\n\t- my.olly-backend.com\n\tports:\n\t- - number: 443\n\t name: https-port\n\t protocol: - HTTPS\n\tresolution: DNS\n\tlocation: MESH_EXTERNAL\n\n---\napiVersion: - networking.istio.io/v1alpha3\nkind: DestinationRule\nmetadata:\n\n\tname: - my-olly-backend\n\nspec:\n\n\thost: my.olly-backend.com\n\ttrafficPolicy:\n\t - \ portLevelSettings:\n\t - port:\n\t number: - 443\n\t tls:\n\t mode: SIMPLE\n\n```" - properties: - headers: - description: |- - Optional. Allows specifying custom HTTP headers that will be added - to each HTTP request sent. - items: - properties: - name: - description: REQUIRED. The HTTP header - name. - type: string - value: - description: REQUIRED. The HTTP header - value. - type: string - required: - - name - - value - type: object - type: array - path: - description: REQUIRED. Specifies the path on - the service. - type: string - timeout: - description: |- - Optional. Specifies the timeout for the HTTP request. - If not specified, the default is 3s. - type: string - required: - - path - type: object - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - resourceDetectors: - description: |- - Optional. Specifies [Resource Detectors](https://opentelemetry.io/docs/specs/otel/resource/sdk/) - to be used by the OpenTelemetry Tracer. When multiple resources are provided, they are merged - according to the OpenTelemetry [Resource specification](https://opentelemetry.io/docs/specs/otel/resource/sdk/#merge). - - The following example shows how to configure the Environment Resource Detector, that will - read the attributes from the environment variable `OTEL_RESOURCE_ATTRIBUTES`: - - ```yaml - - name: otel-tracing - opentelemetry: - port: 443 - service: my.olly-backend.com - resourceDetectors: - environment: {} - - ``` - properties: - dynatrace: - description: |- - Dynatrace Resource Detector. - The resource detector reads from the Dynatrace enrichment files - and adds host/process related attributes to the OpenTelemetry resource. - - See: [Enrich ingested data with Dynatrace-specific dimensions](https://docs.dynatrace.com/docs/shortlink/enrichment-files) - type: object - environment: - description: |- - OpenTelemetry Environment Resource Detector. - The resource detector reads attributes from the environment variable `OTEL_RESOURCE_ATTRIBUTES` - and adds them to the OpenTelemetry resource. - - See: [Resource specification](https://opentelemetry.io/docs/specs/otel/resource/sdk/#specifying-resource-information-via-an-environment-variable) - type: object - type: object - service: - description: |- - REQUIRED. Specifies the OpenTelemetry endpoint that will receive OTLP traces. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "otlp.default.svc.cluster.local" or "bar/otlp.example.com". - type: string - required: - - port - - service - type: object - x-kubernetes-validations: - - message: At most one of [dynatraceSampler] should - be set - rule: (has(self.dynatraceSampler)?1:0) <= 1 - prometheus: - description: Configures a Prometheus metrics provider. - type: object - skywalking: - description: Configures a Apache SkyWalking provider. - properties: - accessToken: - description: Optional. The SkyWalking OAP access - token. - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service for the SkyWalking receiver. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "skywalking.default.svc.cluster.local" or "bar/skywalking.example.com". - type: string - required: - - port - - service - type: object - stackdriver: - description: Configures a Stackdriver provider. - properties: - debug: - description: |- - debug enables trace output to stdout. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - type: boolean - logging: - description: Optional. Controls Stackdriver logging - behavior. - properties: - labels: - additionalProperties: - type: string - description: "Collection of tag names and tag - expressions to include in the log\nentry. - Conflicts are resolved by the tag name by - overriding previously\nsupplied values.\n\nExample:\n\n\tlabels:\n\t - \ path: request.url_path\n\t foo: request.headers['x-foo']" - type: object - type: object - maxNumberOfAnnotations: - description: |- - The global default max number of annotation events per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxNumberOfAttributes: - description: |- - The global default max number of attributes per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxNumberOfMessageEvents: - description: |- - The global default max number of message events per span. - default is 200. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - format: int64 - type: integer - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - type: object - zipkin: - description: Configures a tracing provider that uses - the Zipkin API. - properties: - enable64bitTraceId: - description: |- - Optional. A 128 bit trace id will be used in Istio. - If true, will result in a 64 bit trace id being used. - type: boolean - maxTagLength: - description: |- - Optional. Controls the overall path length allowed in a reported span. - NOTE: currently only controls max length of the path tag. - format: int32 - type: integer - path: - description: |- - Optional. Specifies the endpoint of Zipkin API. - The default value is "/api/v2/spans". - type: string - port: - description: REQUIRED. Specifies the port of the - service. - format: int32 - type: integer - service: - description: |- - REQUIRED. Specifies the service that the Zipkin API. - The format is `[/]`. The specification of `` is required only when it is insufficient - to unambiguously resolve a service in the service registry. The `` is a fully qualified host name of a - service defined by the Kubernetes service or ServiceEntry. - - Example: "zipkin.default.svc.cluster.local" or "bar/zipkin.example.com". - type: string - required: - - port - - service - type: object - required: - - name - type: object - x-kubernetes-validations: - - message: At most one of [envoyExtAuthzHttp envoyExtAuthzGrpc - zipkin lightstep datadog stackdriver opencensus skywalking - opentelemetry prometheus envoyFileAccessLog envoyHttpAls - envoyTcpAls envoyOtelAls] should be set - rule: (has(self.envoyExtAuthzHttp)?1:0) + (has(self.envoyExtAuthzGrpc)?1:0) - + (has(self.zipkin)?1:0) + (has(self.lightstep)?1:0) - + (has(self.datadog)?1:0) + (has(self.stackdriver)?1:0) - + (has(self.opencensus)?1:0) + (has(self.skywalking)?1:0) - + (has(self.opentelemetry)?1:0) + (has(self.prometheus)?1:0) - + (has(self.envoyFileAccessLog)?1:0) + (has(self.envoyHttpAls)?1:0) - + (has(self.envoyTcpAls)?1:0) + (has(self.envoyOtelAls)?1:0) - <= 1 - maxItems: 1000 - type: array - h2UpgradePolicy: - description: |- - Specify if http1.1 connections should be upgraded to http2 by default. - if sidecar is installed on all pods in the mesh, then this should be set to `UPGRADE`. - If one or more services or namespaces do not have sidecar(s), then this should be set to `DO_NOT_UPGRADE`. - It can be enabled by destination using the `destinationRule.trafficPolicy.connectionPool.http.h2UpgradePolicy` override. - enum: - - DO_NOT_UPGRADE - - UPGRADE - type: string - inboundClusterStatName: - description: |- - Name to be used while emitting statistics for inbound clusters. The same pattern is used while computing stat prefix for - network filters like TCP and Redis. - By default, Istio emits statistics with the pattern `inbound|||`. - For example `inbound|7443|grpc-reviews|reviews.prod.svc.cluster.local`. This can be used to override that pattern. - - A Pattern can be composed of various pre-defined variables. The following variables are supported. - - - `%SERVICE%` - Will be substituted with short hostname of the service. - - `%SERVICE_NAME%` - Will be substituted with name of the service. - - `%SERVICE_FQDN%` - Will be substituted with FQDN of the service. - - `%SERVICE_PORT%` - Will be substituted with port of the service. - - `%TARGET_PORT%` - Will be substituted with the target port of the service. - - `%SERVICE_PORT_NAME%` - Will be substituted with port name of the service. - - Following are some examples of supported patterns for reviews: - - - `%SERVICE_FQDN%_%SERVICE_PORT%` will use reviews.prod.svc.cluster.local_7443 as the stats name. - - `%SERVICE%` will use reviews.prod as the stats name. - type: string - inboundTrafficPolicy: - description: |- - Set the default behavior of the sidecar for handling inbound - traffic to the application. If your application listens on - localhost, you will need to set this to `LOCALHOST`. - properties: - mode: - enum: - - PASSTHROUGH - - LOCALHOST - type: string - type: object - ingressClass: - description: |- - Class of ingress resources to be processed by Istio ingress - controller. This corresponds to the value of - `kubernetes.io/ingress.class` annotation. - type: string - ingressControllerMode: - description: |- - Defines whether to use Istio ingress controller for annotated or all ingress resources. - Default mode is `STRICT`. - enum: - - UNSPECIFIED - - "OFF" - - DEFAULT - - STRICT - type: string - ingressSelector: - description: |- - Defines which gateway deployment to use as the Ingress controller. This field corresponds to - the Gateway.selector field, and will be set as `istio: INGRESS_SELECTOR`. - By default, `ingressgateway` is used, which will select the default IngressGateway as it has the - `istio: ingressgateway` labels. - It is recommended that this is the same value as ingressService. - type: string - ingressService: - description: |- - Name of the Kubernetes service used for the istio ingress controller. - If no ingress controller is specified, the default value `istio-ingressgateway` is used. - type: string - localityLbSetting: - description: |- - Locality based load balancing distribution or failover settings. - If unspecified, locality based load balancing will be enabled by default. - However, this requires outlierDetection to actually take effect for a particular - service, see https://istio.io/latest/docs/tasks/traffic-management/locality-load-balancing/failover/ - properties: - distribute: - description: |- - Optional: only one of distribute, failover or failoverPriority can be set. - Explicitly specify loadbalancing weight across different zones and geographical locations. - Refer to [Locality weighted load balancing](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/upstream/load_balancing/locality_weight) - If empty, the locality weight is set according to the endpoints number within it. - items: - description: |- - Describes how traffic originating in the 'from' zone or sub-zone is - distributed over a set of 'to' zones. Syntax for specifying a zone is - {region}/{zone}/{sub-zone} and terminal wildcards are allowed on any - segment of the specification. Examples: - - `*` - matches all localities - - `us-west/*` - all zones and sub-zones within the us-west region - - `us-west/zone-1/*` - all sub-zones within us-west/zone-1 - properties: - from: - description: Originating locality, '/' separated, - e.g. 'region/zone/sub_zone'. - type: string - to: - additionalProperties: - format: int32 - type: integer - description: |- - Map of upstream localities to traffic distribution weights. The sum of - all weights should be 100. Any locality not present will - receive no traffic. - type: object - type: object - type: array - enabled: - description: |- - enable locality load balancing, this is DestinationRule-level and will override mesh wide settings in entirety. - e.g. true means that turn on locality load balancing for this DestinationRule no matter what mesh wide settings is. - type: boolean - failover: - description: |- - Optional: only one of distribute, failover or failoverPriority can be set. - Explicitly specify the region traffic will land on when endpoints in local region becomes unhealthy. - Should be used together with OutlierDetection to detect unhealthy endpoints. - Note: if no OutlierDetection specified, this will not take effect. - items: - description: |- - Specify the traffic failover policy across regions. Since zone and sub-zone - failover is supported by default this only needs to be specified for - regions when the operator needs to constrain traffic failover so that - the default behavior of failing over to any endpoint globally does not - apply. This is useful when failing over traffic across regions would not - improve service health or may need to be restricted for other reasons - like regulatory controls. - properties: - from: - description: Originating region. - type: string - to: - description: |- - Destination region the traffic will fail over to when endpoints in - the 'from' region becomes unhealthy. - type: string - type: object - type: array - failoverPriority: - description: |- - failoverPriority is an ordered list of labels used to sort endpoints to do priority based load balancing. - This is to support traffic failover across different groups of endpoints. - Two kinds of labels can be specified: - - - Specify only label keys `[key1, key2, key3]`, istio would compare the label values of client with endpoints. - Suppose there are total N label keys `[key1, key2, key3, ...keyN]` specified: - - 1. Endpoints matching all N labels with the client proxy have priority P(0) i.e. the highest priority. - 2. Endpoints matching the first N-1 labels with the client proxy have priority P(1) i.e. second highest priority. - 3. By extension of this logic, endpoints matching only the first label with the client proxy has priority P(N-1) i.e. second lowest priority. - 4. All the other endpoints have priority P(N) i.e. lowest priority. - - - Specify labels with key and value `[key1=value1, key2=value2, key3=value3]`, istio would compare the labels with endpoints. - Suppose there are total N labels `[key1=value1, key2=value2, key3=value3, ...keyN=valueN]` specified: - - 1. Endpoints matching all N labels have priority P(0) i.e. the highest priority. - 2. Endpoints matching the first N-1 labels have priority P(1) i.e. second highest priority. - 3. By extension of this logic, endpoints matching only the first label has priority P(N-1) i.e. second lowest priority. - 4. All the other endpoints have priority P(N) i.e. lowest priority. - - Note: For a label to be considered for match, the previous labels must match, i.e. nth label would be considered matched only if first n-1 labels match. - - It can be any label specified on both client and server workloads. - The following labels which have special semantic meaning are also supported: - - - `topology.istio.io/network` is used to match the network metadata of an endpoint, which can be specified by pod/namespace label `topology.istio.io/network`, sidecar env `ISTIO_META_NETWORK` or MeshNetworks. - - `topology.istio.io/cluster` is used to match the clusterID of an endpoint, which can be specified by pod label `topology.istio.io/cluster` or pod env `ISTIO_META_CLUSTER_ID`. - - `topology.kubernetes.io/region` is used to match the region metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/region` or the deprecated label `failure-domain.beta.kubernetes.io/region`. - - `topology.kubernetes.io/zone` is used to match the zone metadata of an endpoint, which maps to Kubernetes node label `topology.kubernetes.io/zone` or the deprecated label `failure-domain.beta.kubernetes.io/zone`. - - `topology.istio.io/subzone` is used to match the subzone metadata of an endpoint, which maps to Istio node label `topology.istio.io/subzone`. - - `kubernetes.io/hostname` is used to match the current node of an endpoint, which maps to Kubernetes node label `kubernetes.io/hostname`. - - The below topology config indicates the following priority levels: - - ```yaml - failoverPriority: - - "topology.istio.io/network" - - "topology.kubernetes.io/region" - - "topology.kubernetes.io/zone" - - "topology.istio.io/subzone" - ``` - - 1. endpoints match same [network, region, zone, subzone] label with the client proxy have the highest priority. - 2. endpoints have same [network, region, zone] label but different [subzone] label with the client proxy have the second highest priority. - 3. endpoints have same [network, region] label but different [zone] label with the client proxy have the third highest priority. - 4. endpoints have same [network] but different [region] labels with the client proxy have the fourth highest priority. - 5. all the other endpoints have the same lowest priority. - - Suppose a service associated endpoints reside in multi clusters, the below example represents: - 1. endpoints in `clusterA` and has `version=v1` label have P(0) priority. - 2. endpoints not in `clusterA` but has `version=v1` label have P(1) priority. - 2. all the other endpoints have P(2) priority. - - ```yaml - failoverPriority: - - "version=v1" - - "topology.istio.io/cluster=clusterA" - ``` - - Optional: only one of distribute, failover or failoverPriority can be set. - And it should be used together with `OutlierDetection` to detect unhealthy endpoints, otherwise has no effect. - items: - type: string - type: array - type: object - meshMTLS: - description: "The below configuration parameters can be used - to specify TLSConfig for mesh traffic.\nFor example, a user - could enable min TLS version for ISTIO_MUTUAL traffic and - specify a curve for non ISTIO_MUTUAL traffic like below:\n```yaml\nmeshConfig:\n\n\tmeshMTLS:\n\t - \ minProtocolVersion: TLSV1_3\n\ttlsDefaults:\n\t Note: - applicable only for non ISTIO_MUTUAL scenarios\n\t ecdhCurves:\n\t - \ - P-256\n\t - P-512\n\n```\nConfiguration of mTLS - for traffic between workloads with ISTIO_MUTUAL TLS traffic.\n\nNote: - Mesh mTLS does not respect ECDH curves." - properties: - cipherSuites: - description: |- - Optional: If specified, the TLS connection will only support the specified cipher list when negotiating TLS 1.0-1.2. - If not specified, the following cipher suites will be used: - ``` - ECDHE-ECDSA-AES256-GCM-SHA384 - ECDHE-RSA-AES256-GCM-SHA384 - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES128-GCM-SHA256 - AES256-GCM-SHA384 - AES128-GCM-SHA256 - ``` - items: - type: string - type: array - ecdhCurves: - description: |- - Optional: If specified, the TLS connection will only support the specified ECDH curves for the DH key exchange. - If not specified, the default curves enforced by Envoy will be used. For details about the default curves, refer to - [Ecdh Curves](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto). - items: - type: string - type: array - minProtocolVersion: - description: |- - Optional: the minimum TLS protocol version. The default minimum - TLS version will be TLS 1.2. As servers may not be Envoy and be - set to TLS 1.2 (e.g., workloads using mTLS without sidecars), the - minimum TLS version for clients may also be TLS 1.2. - In the current Istio implementation, the maximum TLS protocol version - is TLS 1.3. - enum: - - TLS_AUTO - - TLSV1_2 - - TLSV1_3 - type: string - type: object - outboundClusterStatName: - description: |- - Name to be used while emitting statistics for outbound clusters. The same pattern is used while computing stat prefix for - network filters like TCP and Redis. - By default, Istio emits statistics with the pattern `outbound|||`. - For example `outbound|8080|v2|reviews.prod.svc.cluster.local`. This can be used to override that pattern. - - A Pattern can be composed of various pre-defined variables. The following variables are supported. - - - `%SERVICE%` - Will be substituted with short hostname of the service. - - `%SERVICE_NAME%` - Will be substituted with name of the service. - - `%SERVICE_FQDN%` - Will be substituted with FQDN of the service. - - `%SERVICE_PORT%` - Will be substituted with port of the service. - - `%SERVICE_PORT_NAME%` - Will be substituted with port name of the service. - - `%SUBSET_NAME%` - Will be substituted with subset. - - Following are some examples of supported patterns for reviews: - - - `%SERVICE_FQDN%_%SERVICE_PORT%` will use `reviews.prod.svc.cluster.local_7443` as the stats name. - - `%SERVICE%` will use reviews.prod as the stats name. - type: string - outboundTrafficPolicy: - description: |- - Set the default behavior of the sidecar for handling outbound - traffic from the application. - - Can be overridden at a Sidecar level by setting the `OutboundTrafficPolicy` in the - [Sidecar API](https://istio.io/docs/reference/config/networking/sidecar/#OutboundTrafficPolicy). - - Default mode is `ALLOW_ANY`, which means outbound traffic to unknown destinations will be allowed. - properties: - mode: - enum: - - REGISTRY_ONLY - - ALLOW_ANY - type: string - type: object - pathNormalization: - description: |- - ProxyPathNormalization configures how URL paths in incoming and outgoing HTTP requests are - normalized by the sidecars and gateways. - The normalized paths will be used in all aspects through the requests' lifetime on the - sidecars and gateways, which includes routing decisions in outbound direction (client proxy), - authorization policy match and enforcement in inbound direction (server proxy), and the URL - path proxied to the upstream service. - If not set, the NormalizationType.DEFAULT configuration will be used. - properties: - normalization: - enum: - - DEFAULT - - NONE - - BASE - - MERGE_SLASHES - - DECODE_AND_MERGE_SLASHES - type: string - type: object - protocolDetectionTimeout: - description: |- - Automatic protocol detection uses a set of heuristics to - determine whether the connection is using TLS or not (on the - server side), as well as the application protocol being used - (e.g., http vs tcp). These heuristics rely on the client sending - the first bits of data. For server first protocols like MySQL, - MongoDB, etc. Envoy will timeout on the protocol detection after - the specified period, defaulting to non mTLS plain TCP - traffic. Set this field to tweak the period that Envoy will wait - for the client to send the first bits of data. (MUST BE >=1ms or - 0s to disable). Default detection timeout is 0s (no timeout). - - Setting a timeout is not recommended nor safe. Even high timeouts (>5s) will be hit - occasionally, and when they occur the result is typically broken traffic that may not - recover on its own. Exceptionally high values might solve this, but injecting 60s delays - onto new connections is generally not tenable anyways. - type: string - proxyHttpPort: - description: Port on which Envoy should listen for HTTP PROXY - requests if set. - format: int32 - type: integer - proxyInboundListenPort: - description: |- - Port on which Envoy should listen for all inbound traffic to the pod/vm will be captured to. - Default port is 15006. - format: int32 - type: integer - proxyListenPort: - description: |- - Port on which Envoy should listen for all outbound traffic to other services. - Default port is 15001. - format: int32 - type: integer - rootNamespace: - description: |- - The namespace to treat as the administrative root namespace for - Istio configuration. When processing a leaf namespace Istio will search for - declarations in that namespace first and if none are found it will - search in the root namespace. Any matching declaration found in the root - namespace is processed as if it were declared in the leaf namespace. - - The precise semantics of this processing are documented on each resource - type. - type: string - serviceSettings: - description: Settings to be applied to select services. - items: - description: |- - Settings to be applied to select services. - - For example, the following configures all services in namespace "foo" as well as the - "bar" service in namespace "baz" to be considered cluster-local: - - ```yaml - serviceSettings: - - settings: - clusterLocal: true - hosts: - - "*.foo.svc.cluster.local" - - "bar.baz.svc.cluster.local" - - ``` - properties: - hosts: - description: |- - The services to which the Settings should be applied. Services are selected using the hostname - matching rules used by DestinationRule. - - For example: foo.bar.svc.cluster.local, *.baz.svc.cluster.local - items: - type: string - type: array - settings: - description: The settings to apply to the selected services. - properties: - clusterLocal: - description: |- - If true, specifies that the client and service endpoints must reside in the same cluster. - By default, in multi-cluster deployments, the Istio control plane assumes all service - endpoints to be reachable from any client in any of the clusters which are part of the - mesh. This configuration option limits the set of service endpoints visible to a client - to be cluster scoped. - - There are some common scenarios when this can be useful: - - - A service (or group of services) is inherently local to the cluster and has local storage - for that cluster. For example, the kube-system namespace (e.g. the Kube API Server). - - A mesh administrator wants to slowly migrate services to Istio. They might start by first - having services cluster-local and then slowly transition them to mesh-wide. They could do - this service-by-service (e.g. mysvc.myns.svc.cluster.local) or as a group - (e.g. *.myns.svc.cluster.local). - - By default Istio will consider kubernetes.default.svc (i.e. the API Server) as well as all - services in the kube-system namespace to be cluster-local, unless explicitly overridden here. - type: boolean - type: object - type: object - type: array - tcpKeepalive: - description: If set then set `SO_KEEPALIVE` on the socket - to enable TCP Keepalives. - properties: - interval: - description: |- - The time duration between keep-alive probes. - Default is to use the OS level configuration - (unless overridden, Linux defaults to 75s.) - type: string - probes: - description: |- - Maximum number of keepalive probes to send without response before - deciding the connection is dead. Default is to use the OS level configuration - (unless overridden, Linux defaults to 9.) - format: int32 - type: integer - time: - description: |- - The time duration a connection needs to be idle before keep-alive - probes start being sent. Default is to use the OS level configuration - (unless overridden, Linux defaults to 7200s (ie 2 hours.) - type: string - type: object - tlsDefaults: - description: |- - Configuration of TLS for all traffic except for ISTIO_MUTUAL mode. - Currently, this supports configuration of ecdhCurves and cipherSuites only. - For ISTIO_MUTUAL TLS settings, use meshMTLS configuration. - properties: - cipherSuites: - description: |- - Optional: If specified, the TLS connection will only support the specified cipher list when negotiating TLS 1.0-1.2. - If not specified, the following cipher suites will be used: - ``` - ECDHE-ECDSA-AES256-GCM-SHA384 - ECDHE-RSA-AES256-GCM-SHA384 - ECDHE-ECDSA-AES128-GCM-SHA256 - ECDHE-RSA-AES128-GCM-SHA256 - AES256-GCM-SHA384 - AES128-GCM-SHA256 - ``` - items: - type: string - type: array - ecdhCurves: - description: |- - Optional: If specified, the TLS connection will only support the specified ECDH curves for the DH key exchange. - If not specified, the default curves enforced by Envoy will be used. For details about the default curves, refer to - [Ecdh Curves](https://www.envoyproxy.io/docs/envoy/latest/api-v3/extensions/transport_sockets/tls/v3/common.proto). - items: - type: string - type: array - minProtocolVersion: - description: |- - Optional: the minimum TLS protocol version. The default minimum - TLS version will be TLS 1.2. As servers may not be Envoy and be - set to TLS 1.2 (e.g., workloads using mTLS without sidecars), the - minimum TLS version for clients may also be TLS 1.2. - In the current Istio implementation, the maximum TLS protocol version - is TLS 1.3. - enum: - - TLS_AUTO - - TLSV1_2 - - TLSV1_3 - type: string - type: object - trustDomain: - description: |- - The trust domain corresponds to the trust root of a system. - Refer to [SPIFFE-ID](https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE-ID.md#21-trust-domain) - type: string - trustDomainAliases: - description: |- - The trust domain aliases represent the aliases of `trustDomain`. - For example, if we have - ```yaml - trustDomain: td1 - trustDomainAliases: ["td2", "td3"] - ``` - Any service with the identity `td1/ns/foo/sa/a-service-account`, `td2/ns/foo/sa/a-service-account`, - or `td3/ns/foo/sa/a-service-account` will be treated the same in the Istio mesh. - items: - type: string - type: array - verifyCertificateAtClient: - description: |- - `VerifyCertificateAtClient` sets the mesh global default for peer certificate validation - at the client-side proxy when `SIMPLE` TLS or `MUTUAL` TLS (non `ISTIO_MUTUAL`) origination - modes are used. This setting can be overridden at the host level via DestinationRule API. - By default, `VerifyCertificateAtClient` is `true`. - - `CaCertificates`: If set, proxy verifies CA signature based on given CaCertificates. If unset, - and VerifyCertificateAtClient is true, proxy uses default System CA bundle. If unset and - `VerifyCertificateAtClient` is false, proxy will not verify the CA. - - `SubjectAltNames`: If set, proxy verifies subject alt names are present in the SAN. If unset, - and `VerifyCertificateAtClient` is true, proxy uses host in destination rule to verify the SANs. - If unset, and `VerifyCertificateAtClient` is false, proxy does not verify SANs. - - For SAN, client-side proxy will exact match host in `DestinationRule` as well as one level - wildcard if the specified host in DestinationRule doesn't contain a wildcard. - For example, if the host in `DestinationRule` is `x.y.com`, client-side proxy will - match either `x.y.com` or `*.y.com` for the SAN in the presented server certificate. - For wildcard host name in DestinationRule, client-side proxy will do a suffix match. For example, - if host is `*.x.y.com`, client-side proxy will verify the presented server certificate SAN matches - “.x.y.com` suffix. - - Deprecated: Marked as deprecated in mesh/v1alpha1/config.proto. - type: boolean - type: object - pilot: - description: Configuration for the Pilot component. - properties: - affinity: - description: K8s affinity to set on the Pilot Pods. - properties: - nodeAffinity: - description: Describes node affinity scheduling rules - for the pod. - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node matches the corresponding matchExpressions; the - node(s) with the highest sum are the most preferred. - items: - description: |- - An empty preferred scheduling term matches all objects with implicit weight 0 - (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). - properties: - preference: - description: A node selector term, associated - with the corresponding weight. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - weight: - description: Weight associated with matching - the corresponding nodeSelectorTerm, in the - range 1-100. - format: int32 - type: integer - required: - - preference - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to an update), the system - may or may not try to eventually evict the pod from its node. - properties: - nodeSelectorTerms: - description: Required. A list of node selector - terms. The terms are ORed. - items: - description: |- - A null or empty node selector term matches no objects. The requirements of - them are ANDed. - The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. - properties: - matchExpressions: - description: A list of node selector requirements - by node's labels. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchFields: - description: A list of node selector requirements - by node's fields. - items: - description: |- - A node selector requirement is a selector that contains values, a key, and an operator - that relates the key and values. - properties: - key: - description: The label key that the - selector applies to. - type: string - operator: - description: |- - Represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. - type: string - values: - description: |- - An array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. If the operator is Gt or Lt, the values - array must have a single element, which will be interpreted as an integer. - This array is replaced during a strategic merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - type: object - x-kubernetes-map-type: atomic - type: array - x-kubernetes-list-type: atomic - required: - - nodeSelectorTerms - type: object - x-kubernetes-map-type: atomic - type: object - podAffinity: - description: Describes pod affinity scheduling rules (e.g. - co-locate this pod in the same node, zone, etc. as some - other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched WeightedPodAffinityTerm - fields are added per-node to find the most preferred - node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - podAntiAffinity: - description: Describes pod anti-affinity scheduling rules - (e.g. avoid putting this pod in the same node, zone, - etc. as some other pod(s)). - properties: - preferredDuringSchedulingIgnoredDuringExecution: - description: |- - The scheduler will prefer to schedule pods to nodes that satisfy - the anti-affinity expressions specified by this field, but it may choose - a node that violates one or more of the expressions. The node that is - most preferred is the one with the greatest sum of weights, i.e. - for each node that meets all of the scheduling requirements (resource - request, requiredDuringScheduling anti-affinity expressions, etc.), - compute a sum by iterating through the elements of this field and adding - "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the - node(s) with the highest sum are the most preferred. - items: - description: The weights of all of the matched WeightedPodAffinityTerm - fields are added per-node to find the most preferred - node(s) - properties: - podAffinityTerm: - description: Required. A pod affinity term, - associated with the corresponding weight. - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - weight: - description: |- - weight associated with matching the corresponding podAffinityTerm, - in the range 1-100. - format: int32 - type: integer - required: - - podAffinityTerm - - weight - type: object - type: array - x-kubernetes-list-type: atomic - requiredDuringSchedulingIgnoredDuringExecution: - description: |- - If the anti-affinity requirements specified by this field are not met at - scheduling time, the pod will not be scheduled onto the node. - If the anti-affinity requirements specified by this field cease to be met - at some point during pod execution (e.g. due to a pod label update), the - system may or may not try to eventually evict the pod from its node. - When there are multiple elements, the lists of nodes corresponding to each - podAffinityTerm are intersected, i.e. all terms must be satisfied. - items: - description: |- - Defines a set of pods (namely those matching the labelSelector - relative to the given namespace(s)) that this pod should be - co-located (affinity) or not co-located (anti-affinity) with, - where co-located is defined as running on a node whose value of - the label with key matches that of any node on which - a pod of the set of pods is running - properties: - labelSelector: - description: |- - A label query over a set of resources, in this case pods. - If it's null, this PodAffinityTerm matches with no Pods. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both matchLabelKeys and labelSelector. - Also, matchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - mismatchLabelKeys: - description: |- - MismatchLabelKeys is a set of pod label keys to select which pods will - be taken into consideration. The keys are used to lookup values from the - incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` - to select the group of existing pods which pods will be taken into consideration - for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming - pod labels will be ignored. The default value is empty. - The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. - Also, mismatchLabelKeys cannot be set when labelSelector isn't set. - This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - namespaceSelector: - description: |- - A label query over the set of namespaces that the term applies to. - The term is applied to the union of the namespaces selected by this field - and the ones listed in the namespaces field. - null selector and null or empty namespaces list means "this pod's namespace". - An empty selector ({}) matches all namespaces. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The requirements - are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key - that the selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - namespaces: - description: |- - namespaces specifies a static list of namespace names that the term applies to. - The term is applied to the union of the namespaces listed in this field - and the ones selected by namespaceSelector. - null or empty namespaces list and null namespaceSelector means "this pod's namespace". - items: - type: string - type: array - x-kubernetes-list-type: atomic - topologyKey: - description: |- - This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching - the labelSelector in the specified namespaces, where co-located is defined as running on a node - whose value of the label with key topologyKey matches that of any node on which any of the - selected pods is running. - Empty topologyKey is not allowed. - type: string - required: - - topologyKey - type: object - type: array - x-kubernetes-list-type: atomic - type: object - type: object - autoscaleBehavior: - description: See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/#configurable-scaling-behavior - properties: - scaleDown: - description: |- - scaleDown is scaling policy for scaling Down. - If not set, the default value is to allow to scale down to minReplicas pods, with a - 300 second stabilization window (i.e., the highest recommendation for - the last 300sec is used). - properties: - policies: - description: |- - policies is a list of potential scaling polices which can be used during scaling. - At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - items: - description: HPAScalingPolicy is a single policy - which must hold true for a specified past interval. - properties: - periodSeconds: - description: |- - periodSeconds specifies the window of time for which the policy should hold true. - PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - format: int32 - type: integer - type: - description: type is used to specify the scaling - policy. - type: string - value: - description: |- - value contains the amount of change which is permitted by the policy. - It must be greater than zero - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - type: array - x-kubernetes-list-type: atomic - selectPolicy: - description: |- - selectPolicy is used to specify which policy should be used. - If not set, the default value Max is used. - type: string - stabilizationWindowSeconds: - description: |- - stabilizationWindowSeconds is the number of seconds for which past recommendations should be - considered while scaling up or scaling down. - StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - If not set, use the default values: - - For scale up: 0 (i.e. no stabilization is done). - - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - format: int32 - type: integer - type: object - scaleUp: - description: |- - scaleUp is scaling policy for scaling Up. - If not set, the default value is the higher of: - * increase no more than 4 pods per 60 seconds - * double the number of pods per 60 seconds - No stabilization is used. - properties: - policies: - description: |- - policies is a list of potential scaling polices which can be used during scaling. - At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid - items: - description: HPAScalingPolicy is a single policy - which must hold true for a specified past interval. - properties: - periodSeconds: - description: |- - periodSeconds specifies the window of time for which the policy should hold true. - PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). - format: int32 - type: integer - type: - description: type is used to specify the scaling - policy. - type: string - value: - description: |- - value contains the amount of change which is permitted by the policy. - It must be greater than zero - format: int32 - type: integer - required: - - periodSeconds - - type - - value - type: object - type: array - x-kubernetes-list-type: atomic - selectPolicy: - description: |- - selectPolicy is used to specify which policy should be used. - If not set, the default value Max is used. - type: string - stabilizationWindowSeconds: - description: |- - stabilizationWindowSeconds is the number of seconds for which past recommendations should be - considered while scaling up or scaling down. - StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). - If not set, use the default values: - - For scale up: 0 (i.e. no stabilization is done). - - For scale down: 300 (i.e. the stabilization window is 300 seconds long). - format: int32 - type: integer - type: object - type: object - autoscaleEnabled: - description: Controls whether a HorizontalPodAutoscaler is - installed for Pilot. - type: boolean - autoscaleMax: - description: Maximum number of replicas in the HorizontalPodAutoscaler - for Pilot. - format: int32 - type: integer - autoscaleMin: - description: Minimum number of replicas in the HorizontalPodAutoscaler - for Pilot. - format: int32 - type: integer - cni: - description: Configures whether to use an existing CNI installation - for workloads - properties: - enabled: - description: Controls whether CNI should be used. - type: boolean - provider: - description: |- - 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 - type: string - type: object - configMap: - description: |- - 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. - type: boolean - cpu: - description: |- - Target CPU utilization used in HorizontalPodAutoscaler. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - targetAverageUtilization: - description: |- - K8s utilization setting for HorizontalPodAutoscaler target. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - format: int32 - type: integer - type: object - deploymentLabels: - additionalProperties: - type: string - description: |- - Labels that are added to Pilot deployment. - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - enabled: - description: Controls whether Pilot is enabled. - type: boolean - env: - additionalProperties: - type: string - description: "Environment variables passed to the Pilot container.\n\nExamples:\nenv:\n\n\tENV_VAR_1: - value1\n\tENV_VAR_2: value2" - type: object - extraContainerArgs: - description: Additional container arguments for the Pilot - container. - items: - type: string - type: array - hub: - description: Hub to pull the container image from. Image will - be `Hub/Image:Tag-Variant`. - type: string - image: - description: |- - 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 - type: string - ipFamilies: - description: |- - 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 - items: - type: string - type: array - ipFamilyPolicy: - description: |- - 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 - type: string - istiodRemote: - description: Configuration for the istio-discovery chart when - istiod is running in a remote cluster (e.g. "remote control - plane"). - properties: - enabled: - description: Indicates if this cluster/install should - consume a "remote" istiod instance, - type: boolean - injectionCABundle: - description: injector ca bundle - type: string - injectionPath: - description: Path to use for the sidecar injector webhook - service. - type: string - injectionURL: - description: URL to use for sidecar injector webhook. - type: string - type: object - jwksResolverExtraRootCA: - description: |- - Specifies an extra root certificate in PEM format. This certificate will be trusted - by pilot when resolving JWKS URIs. - type: string - keepaliveMaxServerConnectionAge: - description: |- - 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 - type: string - memory: - description: |- - Target memory utilization used in HorizontalPodAutoscaler. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - targetAverageUtilization: - description: |- - K8s utilization setting for HorizontalPodAutoscaler target. - - See https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ - format: int32 - type: integer - type: object - nodeSelector: - additionalProperties: - type: string - description: |- - K8s node selector. - - See https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - podAnnotations: - additionalProperties: - type: string - description: |- - K8s annotations for pods. - - See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - type: object - podLabels: - additionalProperties: - type: string - description: |- - Labels that are added to Pilot pods. - - See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - type: object - replicaCount: - description: |- - Number of replicas in the Pilot Deployment. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - format: int32 - type: integer - resources: - description: |- - K8s resources settings. - - See https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/#resource-requests-and-limits-of-pod-and-container - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - properties: - claims: - description: |- - Claims lists the names of resources, defined in spec.resourceClaims, - that are used by this container. - - This is an alpha field and requires enabling the - DynamicResourceAllocation feature gate. - - This field is immutable. It can only be set for containers. - items: - description: ResourceClaim references one entry in PodSpec.ResourceClaims. - properties: - name: - description: |- - Name must match the name of one entry in pod.spec.resourceClaims of - the Pod where this field is used. It makes that resource available - inside a container. - type: string - request: - description: |- - Request is the name chosen for a request in the referenced claim. - If empty, everything from the claim is made available, otherwise - only the result of this request. - type: string - required: - - name - type: object - type: array - x-kubernetes-list-map-keys: - - name - x-kubernetes-list-type: map - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - rollingMaxSurge: - anyOf: - - type: integer - - type: string - description: |- - K8s rolling update strategy - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - x-kubernetes-int-or-string: true - rollingMaxUnavailable: - anyOf: - - type: integer - - type: string - description: |- - 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. - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - x-kubernetes-int-or-string: true - seccompProfile: - description: |- - The seccompProfile for the Pilot container. - - See: https://kubernetes.io/docs/tutorials/security/seccomp/ - properties: - localhostProfile: - description: |- - localhostProfile indicates a profile defined in a file on the node should be used. - The profile must be preconfigured on the node to work. - Must be a descending path, relative to the kubelet's configured seccomp profile location. - Must be set if type is "Localhost". Must NOT be set for any other type. - type: string - type: - description: |- - type indicates which kind of seccomp profile will be applied. - Valid options are: - - Localhost - a profile defined in a file on the node should be used. - RuntimeDefault - the container runtime default profile should be used. - Unconfined - no profile should be applied. - type: string - required: - - type - type: object - serviceAccountAnnotations: - additionalProperties: - type: string - description: K8s annotations for the service account - type: object - serviceAnnotations: - additionalProperties: - type: string - description: |- - K8s annotations for the Service. - - See: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/ - type: object - tag: - description: The container image tag to pull. Image will be - `Hub/Image:Tag-Variant`. - type: string - taint: - properties: - enabled: - description: |- - Enable the untaint controller for new nodes. This aims to solve a race for CNI installation on - new nodes. For this to work, the newly added nodes need to have the istio CNI taint as they are - added to the cluster. This is usually done by configuring the cluster infra provider. - type: boolean - namespace: - description: The namespace of the CNI daemonset, incase - it's not the same as istiod. - type: string - type: object - tolerations: - description: |- - 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 - - Deprecated: Marked as deprecated in pkg/apis/values_types.proto. - items: - description: |- - The pod this Toleration is attached to tolerates any taint that matches - the triple using the matching operator . - properties: - effect: - description: |- - Effect indicates the taint effect to match. Empty means match all taint effects. - When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. - type: string - key: - description: |- - Key is the taint key that the toleration applies to. Empty means match all taint keys. - If the key is empty, operator must be Exists; this combination means to match all values and all keys. - type: string - operator: - description: |- - Operator represents a key's relationship to the value. - Valid operators are Exists and Equal. Defaults to Equal. - Exists is equivalent to wildcard for value, so that a pod can - tolerate all taints of a particular category. - type: string - tolerationSeconds: - description: |- - TolerationSeconds represents the period of time the toleration (which must be - of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, - it is not set, which means tolerate the taint forever (do not evict). Zero and - negative values will be treated as 0 (evict immediately) by the system. - format: int64 - type: integer - value: - description: |- - Value is the taint value the toleration matches to. - If the operator is Exists, the value should be empty, otherwise just a regular string. - type: string - type: object - type: array - topologySpreadConstraints: - description: The k8s topologySpreadConstraints for the Pilot - pods. - items: - description: TopologySpreadConstraint specifies how to spread - matching pods among the given topology. - properties: - labelSelector: - description: |- - LabelSelector is used to find matching pods. - Pods that match this label selector are counted to determine the number of pods - in their corresponding topology domain. - properties: - matchExpressions: - description: matchExpressions is a list of label - selector requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the - selector applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - matchLabelKeys: - description: |- - MatchLabelKeys is a set of pod label keys to select the pods over which - spreading will be calculated. The keys are used to lookup values from the - incoming pod labels, those key-value labels are ANDed with labelSelector - to select the group of existing pods over which spreading will be calculated - for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. - MatchLabelKeys cannot be set when LabelSelector isn't set. - Keys that don't exist in the incoming pod labels will - be ignored. A null or empty list means only match against labelSelector. - - This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). - items: - type: string - type: array - x-kubernetes-list-type: atomic - maxSkew: - description: |- - MaxSkew describes the degree to which pods may be unevenly distributed. - When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference - between the number of matching pods in the target topology and the global minimum. - The global minimum is the minimum number of matching pods in an eligible domain - or zero if the number of eligible domains is less than MinDomains. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 2/2/1: - In this case, the global minimum is 1. - | zone1 | zone2 | zone3 | - | P P | P P | P | - - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; - scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) - violate MaxSkew(1). - - if MaxSkew is 2, incoming pod can be scheduled onto any zone. - When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence - to topologies that satisfy it. - It's a required field. Default value is 1 and 0 is not allowed. - format: int32 - type: integer - minDomains: - description: |- - MinDomains indicates a minimum number of eligible domains. - When the number of eligible domains with matching topology keys is less than minDomains, - Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. - And when the number of eligible domains with matching topology keys equals or greater than minDomains, - this value has no effect on scheduling. - As a result, when the number of eligible domains is less than minDomains, - scheduler won't schedule more than maxSkew Pods to those domains. - If value is nil, the constraint behaves as if MinDomains is equal to 1. - Valid values are integers greater than 0. - When value is not nil, WhenUnsatisfiable must be DoNotSchedule. - - For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same - labelSelector spread as 2/2/2: - | zone1 | zone2 | zone3 | - | P P | P P | P P | - The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. - In this situation, new pod with the same labelSelector cannot be scheduled, - because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, - it will violate MaxSkew. - format: int32 - type: integer - nodeAffinityPolicy: - description: |- - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector - when calculating pod topology spread skew. Options are: - - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. - - If this value is nil, the behavior is equivalent to the Honor policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - nodeTaintsPolicy: - description: |- - NodeTaintsPolicy indicates how we will treat node taints when calculating - pod topology spread skew. Options are: - - Honor: nodes without taints, along with tainted nodes for which the incoming pod - has a toleration, are included. - - Ignore: node taints are ignored. All nodes are included. - - If this value is nil, the behavior is equivalent to the Ignore policy. - This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. - type: string - topologyKey: - description: |- - TopologyKey is the key of node labels. Nodes that have a label with this key - and identical values are considered to be in the same topology. - We consider each as a "bucket", and try to put balanced number - of pods into each bucket. - We define a domain as a particular instance of a topology. - Also, we define an eligible domain as a domain whose nodes meet the requirements of - nodeAffinityPolicy and nodeTaintsPolicy. - e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. - And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. - It's a required field. - type: string - whenUnsatisfiable: - description: |- - WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy - the spread constraint. - - DoNotSchedule (default) tells the scheduler not to schedule it. - - ScheduleAnyway tells the scheduler to schedule the pod in any location, - but giving higher precedence to topologies that would help reduce the - skew. - A constraint is considered "Unsatisfiable" for an incoming pod - if and only if every possible node assignment for that pod would violate - "MaxSkew" on some topology. - For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 3/1/1: - | zone1 | zone2 | zone3 | - | P P P | P | P | - If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled - to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies - MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler - won't make it *more* imbalanced. - It's a required field. - type: string - required: - - maxSkew - - topologyKey - - whenUnsatisfiable - type: object - type: array - traceSampling: - description: |- - 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 - type: number - trustedZtunnelNamespace: - description: |- - If set, `istiod` will allow connections from trusted node proxy ztunnels - in the provided namespace. - type: string - variant: - description: The container image variant to pull. Options - are "debug" or "distroless". Unset will use the default - for the given version. - type: string - volumeMounts: - description: Additional volumeMounts to add to the Pilot container. - items: - description: VolumeMount describes a mounting of a Volume - within a container. - properties: - mountPath: - description: |- - Path within the container at which the volume should be mounted. Must - not contain ':'. - type: string - mountPropagation: - description: |- - mountPropagation determines how mounts are propagated from the host - to container and the other way around. - When not set, MountPropagationNone is used. - This field is beta in 1.10. - When RecursiveReadOnly is set to IfPossible or to Enabled, MountPropagation must be None or unspecified - (which defaults to None). - type: string - name: - description: This must match the Name of a Volume. - type: string - readOnly: - description: |- - Mounted read-only if true, read-write otherwise (false or unspecified). - Defaults to false. - type: boolean - recursiveReadOnly: - description: |- - RecursiveReadOnly specifies whether read-only mounts should be handled - recursively. - - If ReadOnly is false, this field has no meaning and must be unspecified. - - If ReadOnly is true, and this field is set to Disabled, the mount is not made - recursively read-only. If this field is set to IfPossible, the mount is made - recursively read-only, if it is supported by the container runtime. If this - field is set to Enabled, the mount is made recursively read-only if it is - supported by the container runtime, otherwise the pod will not be started and - an error will be generated to indicate the reason. - - If this field is set to IfPossible or Enabled, MountPropagation must be set to - None (or be unspecified, which defaults to None). - - If this field is not specified, it is treated as an equivalent of Disabled. - type: string - subPath: - description: |- - Path within the volume from which the container's volume should be mounted. - Defaults to "" (volume's root). - type: string - subPathExpr: - description: |- - Expanded path within the volume from which the container's volume should be mounted. - Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. - Defaults to "" (volume's root). - SubPathExpr and SubPath are mutually exclusive. - type: string - required: - - mountPath - - name - type: object - type: array - volumes: - description: Additional volumes to add to the Pilot Pod. - items: - description: Volume represents a named volume in a pod that - may be accessed by any container in the pod. - properties: - awsElasticBlockStore: - description: |- - awsElasticBlockStore represents an AWS Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - properties: - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: string - partition: - description: |- - partition is the partition in the volume that you want to mount. - If omitted, the default is to mount by volume name. - Examples: For volume /dev/sda1, you specify the partition as "1". - Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - format: int32 - type: integer - readOnly: - description: |- - readOnly value true will force the readOnly setting in VolumeMounts. - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: boolean - volumeID: - description: |- - volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). - More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore - type: string - required: - - volumeID - type: object - azureDisk: - description: azureDisk represents an Azure Data Disk - mount on the host and bind mount to the pod. - properties: - cachingMode: - description: 'cachingMode is the Host Caching mode: - None, Read Only, Read Write.' - type: string - diskName: - description: diskName is the Name of the data disk - in the blob storage - type: string - diskURI: - description: diskURI is the URI of data disk in - the blob storage - type: string - fsType: - default: ext4 - description: |- - fsType is Filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - kind: - description: 'kind expected values are Shared: multiple - blob disks per storage account Dedicated: single - blob disk per storage account Managed: azure - managed data disk (only in managed availability - set). defaults to shared' - type: string - readOnly: - default: false - description: |- - readOnly Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - required: - - diskName - - diskURI - type: object - azureFile: - description: azureFile represents an Azure File Service - mount on the host and bind mount to the pod. - properties: - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretName: - description: secretName is the name of secret that - contains Azure Storage Account Name and Key - type: string - shareName: - description: shareName is the azure share Name - type: string - required: - - secretName - - shareName - type: object - cephfs: - description: cephFS represents a Ceph FS mount on the - host that shares a pod's lifetime - properties: - monitors: - description: |- - monitors is Required: Monitors is a collection of Ceph monitors - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - items: - type: string - type: array - x-kubernetes-list-type: atomic - path: - description: 'path is Optional: Used as the mounted - root, rather than the full Ceph tree, default - is /' - type: string - readOnly: - description: |- - readOnly is Optional: Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: boolean - secretFile: - description: |- - secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: string - secretRef: - description: |- - secretRef is Optional: SecretRef is reference to the authentication secret for User, default is empty. - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - user: - description: |- - user is optional: User is the rados user name, default is admin - More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it - type: string - required: - - monitors - type: object - cinder: - description: |- - cinder represents a cinder volume attached and mounted on kubelets host machine. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: boolean - secretRef: - description: |- - secretRef is optional: points to a secret object containing parameters used to connect - to OpenStack. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - volumeID: - description: |- - volumeID used to identify the volume in cinder. - More info: https://examples.k8s.io/mysql-cinder-pd/README.md - type: string - required: - - volumeID - type: object - configMap: - description: configMap represents a configMap that should - populate this volume - properties: - defaultMode: - description: |- - defaultMode is optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - ConfigMap will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the ConfigMap, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a path within - a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional specify whether the ConfigMap - or its keys must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - csi: - description: csi (Container Storage Interface) represents - ephemeral storage that is handled by certain external - CSI drivers (Beta feature). - properties: - driver: - description: |- - driver is the name of the CSI driver that handles this volume. - Consult with your admin for the correct name as registered in the cluster. - type: string - fsType: - description: |- - fsType to mount. Ex. "ext4", "xfs", "ntfs". - If not provided, the empty value is passed to the associated CSI driver - which will determine the default filesystem to apply. - type: string - nodePublishSecretRef: - description: |- - nodePublishSecretRef is a reference to the secret object containing - sensitive information to pass to the CSI driver to complete the CSI - NodePublishVolume and NodeUnpublishVolume calls. - This field is optional, and may be empty if no secret is required. If the - secret object contains more than one secret, all secret references are passed. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - readOnly: - description: |- - readOnly specifies a read-only configuration for the volume. - Defaults to false (read/write). - type: boolean - volumeAttributes: - additionalProperties: - type: string - description: |- - volumeAttributes stores driver-specific properties that are passed to the CSI - driver. Consult your driver's documentation for supported values. - type: object - required: - - driver - type: object - downwardAPI: - description: downwardAPI represents downward API about - the pod that should populate this volume - properties: - defaultMode: - description: |- - Optional: mode bits to use on created files by default. Must be a - Optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: Items is a list of downward API volume - file - items: - description: DownwardAPIVolumeFile represents - information to create the file containing the - pod field - properties: - fieldRef: - description: 'Required: Selects a field of - the pod: only annotations, labels, name, - namespace and uid are supported.' - properties: - apiVersion: - description: Version of the schema the - FieldPath is written in terms of, defaults - to "v1". - type: string - fieldPath: - description: Path of the field to select - in the specified API version. - type: string - required: - - fieldPath - type: object - x-kubernetes-map-type: atomic - mode: - description: |- - Optional: mode bits used to set permissions on this file, must be an octal value - between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: 'Required: Path is the relative - path name of the file to be created. Must - not be absolute or contain the ''..'' path. - Must be utf-8 encoded. The first item of - the relative path must not start with ''..''' - type: string - resourceFieldRef: - description: |- - Selects a resource of the container: only resources limits and requests - (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - properties: - containerName: - description: 'Container name: required - for volumes, optional for env vars' - type: string - divisor: - anyOf: - - type: integer - - type: string - description: Specifies the output format - of the exposed resources, defaults to - "1" - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - resource: - description: 'Required: resource to select' - type: string - required: - - resource - type: object - x-kubernetes-map-type: atomic - required: - - path - type: object - type: array - x-kubernetes-list-type: atomic - type: object - emptyDir: - description: |- - emptyDir represents a temporary directory that shares a pod's lifetime. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - properties: - medium: - description: |- - medium represents what type of storage medium should back this directory. - The default is "" which means to use the node's default medium. - Must be an empty string (default) or Memory. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - type: string - sizeLimit: - anyOf: - - type: integer - - type: string - description: |- - sizeLimit is the total amount of local storage required for this EmptyDir volume. - The size limit is also applicable for memory medium. - The maximum usage on memory medium EmptyDir would be the minimum value between - the SizeLimit specified here and the sum of memory limits of all containers in a pod. - The default is nil which means that the limit is undefined. - More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - type: object - ephemeral: - description: |- - ephemeral represents a volume that is handled by a cluster storage driver. - The volume's lifecycle is tied to the pod that defines it - it will be created before the pod starts, - and deleted when the pod is removed. - - Use this if: - a) the volume is only needed while the pod runs, - b) features of normal volumes like restoring from snapshot or capacity - tracking are needed, - c) the storage driver is specified through a storage class, and - d) the storage driver supports dynamic volume provisioning through - a PersistentVolumeClaim (see EphemeralVolumeSource for more - information on the connection between this volume type - and PersistentVolumeClaim). - - Use PersistentVolumeClaim or one of the vendor-specific - APIs for volumes that persist for longer than the lifecycle - of an individual pod. - - Use CSI for light-weight local ephemeral volumes if the CSI driver is meant to - be used that way - see the documentation of the driver for - more information. - - A pod can use both types of ephemeral volumes and - persistent volumes at the same time. - properties: - volumeClaimTemplate: - description: |- - Will be used to create a stand-alone PVC to provision the volume. - The pod in which this EphemeralVolumeSource is embedded will be the - owner of the PVC, i.e. the PVC will be deleted together with the - pod. The name of the PVC will be `-` where - `` is the name from the `PodSpec.Volumes` array - entry. Pod validation will reject the pod if the concatenated name - is not valid for a PVC (for example, too long). - - An existing PVC with that name that is not owned by the pod - will *not* be used for the pod to avoid using an unrelated - volume by mistake. Starting the pod is then blocked until - the unrelated PVC is removed. If such a pre-created PVC is - meant to be used by the pod, the PVC has to updated with an - owner reference to the pod once the pod exists. Normally - this should not be necessary, but it may be useful when - manually reconstructing a broken cluster. - - This field is read-only and no changes will be made by Kubernetes - to the PVC after it has been created. - - Required, must not be nil. - properties: - metadata: - description: |- - May contain labels and annotations that will be copied into the PVC - when creating it. No other fields are allowed and will be rejected during - validation. - type: object - spec: - description: |- - The specification for the PersistentVolumeClaim. The entire content is - copied unchanged into the PVC that gets created from this - template. The same fields as in a PersistentVolumeClaim - are also valid here. - properties: - accessModes: - description: |- - accessModes contains the desired access modes the volume should have. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 - items: - type: string - type: array - x-kubernetes-list-type: atomic - dataSource: - description: |- - dataSource field can be used to specify either: - * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) - * An existing PVC (PersistentVolumeClaim) - If the provisioner or an external controller can support the specified data source, - it will create a new volume based on the contents of the specified data source. - When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. - If the namespace is specified, then dataSourceRef will not be copied to dataSource. - properties: - apiGroup: - description: |- - APIGroup is the group for the resource being referenced. - If APIGroup is not specified, the specified Kind must be in the core API group. - For any other third-party types, APIGroup is required. - type: string - kind: - description: Kind is the type of resource - being referenced - type: string - name: - description: Name is the name of resource - being referenced - type: string - required: - - kind - - name - type: object - x-kubernetes-map-type: atomic - dataSourceRef: - description: |- - dataSourceRef specifies the object from which to populate the volume with data, if a non-empty - volume is desired. This may be any object from a non-empty API group (non - core object) or a PersistentVolumeClaim object. - When this field is specified, volume binding will only succeed if the type of - the specified object matches some installed volume populator or dynamic - provisioner. - This field will replace the functionality of the dataSource field and as such - if both fields are non-empty, they must have the same value. For backwards - compatibility, when namespace isn't specified in dataSourceRef, - both fields (dataSource and dataSourceRef) will be set to the same - value automatically if one of them is empty and the other is non-empty. - When namespace is specified in dataSourceRef, - dataSource isn't set to the same value and must be empty. - There are three important differences between dataSource and dataSourceRef: - * While dataSource only allows two specific types of objects, dataSourceRef - allows any non-core object, as well as PersistentVolumeClaim objects. - * While dataSource ignores disallowed values (dropping them), dataSourceRef - preserves all values, and generates an error if a disallowed value is - specified. - * While dataSource only allows local objects, dataSourceRef allows objects - in any namespaces. - (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. - (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - properties: - apiGroup: - description: |- - APIGroup is the group for the resource being referenced. - If APIGroup is not specified, the specified Kind must be in the core API group. - For any other third-party types, APIGroup is required. - type: string - kind: - description: Kind is the type of resource - being referenced - type: string - name: - description: Name is the name of resource - being referenced - type: string - namespace: - description: |- - Namespace is the namespace of resource being referenced - Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. - (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. - type: string - required: - - kind - - name - type: object - resources: - description: |- - resources represents the minimum resources the volume should have. - If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements - that are lower than previous value but must still be higher than capacity recorded in the - status field of the claim. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources - properties: - limits: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Limits describes the maximum amount of compute resources allowed. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - requests: - additionalProperties: - anyOf: - - type: integer - - type: string - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - description: |- - Requests describes 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. Requests cannot exceed Limits. - More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ - type: object - type: object - selector: - description: selector is a label query over - volumes to consider for binding. - properties: - matchExpressions: - description: matchExpressions is a list - of label selector requirements. The - requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - storageClassName: - description: |- - storageClassName is the name of the StorageClass required by the claim. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 - type: string - volumeAttributesClassName: - description: |- - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. - If specified, the CSI driver will create or update the volume with the attributes defined - in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, - it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass - will be applied to the claim but it's not allowed to reset this field to empty string once it is set. - If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass - will be set by the persistentvolume controller if it exists. - If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be - set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource - exists. - More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ - (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). - type: string - volumeMode: - description: |- - volumeMode defines what type of volume is required by the claim. - Value of Filesystem is implied when not included in claim spec. - type: string - volumeName: - description: volumeName is the binding reference - to the PersistentVolume backing this claim. - type: string - type: object - required: - - spec - type: object - type: object - fc: - description: fc represents a Fibre Channel resource - that is attached to a kubelet's host machine and then - exposed to the pod. - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - lun: - description: 'lun is Optional: FC target lun number' - format: int32 - type: integer - readOnly: - description: |- - readOnly is Optional: Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - targetWWNs: - description: 'targetWWNs is Optional: FC target - worldwide names (WWNs)' - items: - type: string - type: array - x-kubernetes-list-type: atomic - wwids: - description: |- - wwids Optional: FC volume world wide identifiers (wwids) - Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. - items: - type: string - type: array - x-kubernetes-list-type: atomic - type: object - flexVolume: - description: |- - flexVolume represents a generic volume resource that is - provisioned/attached using an exec based plugin. - properties: - driver: - description: driver is the name of the driver to - use for this volume. - type: string - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. - type: string - options: - additionalProperties: - type: string - description: 'options is Optional: this field holds - extra command options if any.' - type: object - readOnly: - description: |- - readOnly is Optional: defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef is Optional: secretRef is reference to the secret object containing - sensitive information to pass to the plugin scripts. This may be - empty if no secret object is specified. If the secret object - contains more than one secret, all secrets are passed to the plugin - scripts. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - required: - - driver - type: object - flocker: - description: flocker represents a Flocker volume attached - to a kubelet's host machine. This depends on the Flocker - control service being running - properties: - datasetName: - description: |- - datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker - should be considered as deprecated - type: string - datasetUUID: - description: datasetUUID is the UUID of the dataset. - This is unique identifier of a Flocker dataset - type: string - type: object - gcePersistentDisk: - description: |- - gcePersistentDisk represents a GCE Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - properties: - fsType: - description: |- - fsType is filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: string - partition: - description: |- - partition is the partition in the volume that you want to mount. - If omitted, the default is to mount by volume name. - Examples: For volume /dev/sda1, you specify the partition as "1". - Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - format: int32 - type: integer - pdName: - description: |- - pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: string - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk - type: boolean - required: - - pdName - type: object - gitRepo: - description: |- - gitRepo represents a git repository at a particular revision. - DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an - EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir - into the Pod's container. - properties: - directory: - description: |- - directory is the target directory name. - Must not contain or start with '..'. If '.' is supplied, the volume directory will be the - git repository. Otherwise, if specified, the volume will contain the git repository in - the subdirectory with the given name. - type: string - repository: - description: repository is the URL - type: string - revision: - description: revision is the commit hash for the - specified revision. - type: string - required: - - repository - type: object - glusterfs: - description: |- - glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. - More info: https://examples.k8s.io/volumes/glusterfs/README.md - properties: - endpoints: - description: |- - endpoints is the endpoint name that details Glusterfs topology. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: string - path: - description: |- - path is the Glusterfs volume path. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: string - readOnly: - description: |- - readOnly here will force the Glusterfs volume to be mounted with read-only permissions. - Defaults to false. - More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod - type: boolean - required: - - endpoints - - path - type: object - hostPath: - description: |- - hostPath represents a pre-existing file or directory on the host - machine that is directly exposed to the container. This is generally - used for system agents or other privileged things that are allowed - to see the host machine. Most containers will NOT need this. - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - properties: - path: - description: |- - path of the directory on the host. - If the path is a symlink, it will follow the link to the real path. - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - type: string - type: - description: |- - type for HostPath Volume - Defaults to "" - More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath - type: string - required: - - path - type: object - image: - description: |- - image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. - The volume is resolved at pod startup depending on which PullPolicy value is provided: - - - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. - - The volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. - A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. - The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. - The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - The volume will be mounted read-only (ro) and non-executable files (noexec). - Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath). - The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - properties: - pullPolicy: - description: |- - Policy for pulling OCI objects. Possible values are: - Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails. - Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. - type: string - reference: - description: |- - Required: Image or artifact reference to be used. - Behaves in the same way as pod.spec.containers[*].image. - Pull secrets will be assembled in the same way as for the container image by looking up node credentials, SA image pull secrets, and pod spec image pull secrets. - More info: https://kubernetes.io/docs/concepts/containers/images - This field is optional to allow higher level config management to default or override - container images in workload controllers like Deployments and StatefulSets. - type: string - type: object - iscsi: - description: |- - iscsi represents an ISCSI Disk resource that is attached to a - kubelet's host machine and then exposed to the pod. - More info: https://examples.k8s.io/volumes/iscsi/README.md - properties: - chapAuthDiscovery: - description: chapAuthDiscovery defines whether support - iSCSI Discovery CHAP authentication - type: boolean - chapAuthSession: - description: chapAuthSession defines whether support - iSCSI Session CHAP authentication - type: boolean - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi - type: string - initiatorName: - description: |- - initiatorName is the custom iSCSI Initiator Name. - If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface - : will be created for the connection. - type: string - iqn: - description: iqn is the target iSCSI Qualified Name. - type: string - iscsiInterface: - default: default - description: |- - iscsiInterface is the interface Name that uses an iSCSI transport. - Defaults to 'default' (tcp). - type: string - lun: - description: lun represents iSCSI Target Lun number. - format: int32 - type: integer - portals: - description: |- - portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port - is other than default (typically TCP ports 860 and 3260). - items: - type: string - type: array - x-kubernetes-list-type: atomic - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - type: boolean - secretRef: - description: secretRef is the CHAP Secret for iSCSI - target and initiator authentication - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - targetPortal: - description: |- - targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port - is other than default (typically TCP ports 860 and 3260). - type: string - required: - - iqn - - lun - - targetPortal - type: object - name: - description: |- - name of the volume. - Must be a DNS_LABEL and unique within the pod. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - nfs: - description: |- - nfs represents an NFS mount on the host that shares a pod's lifetime - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - properties: - path: - description: |- - path that is exported by the NFS server. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: string - readOnly: - description: |- - readOnly here will force the NFS export to be mounted with read-only permissions. - Defaults to false. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: boolean - server: - description: |- - server is the hostname or IP address of the NFS server. - More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs - type: string - required: - - path - - server - type: object - persistentVolumeClaim: - description: |- - persistentVolumeClaimVolumeSource represents a reference to a - PersistentVolumeClaim in the same namespace. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - properties: - claimName: - description: |- - claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. - More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims - type: string - readOnly: - description: |- - readOnly Will force the ReadOnly setting in VolumeMounts. - Default false. - type: boolean - required: - - claimName - type: object - photonPersistentDisk: - description: photonPersistentDisk represents a PhotonController - persistent disk attached and mounted on kubelets host - machine - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - pdID: - description: pdID is the ID that identifies Photon - Controller persistent disk - type: string - required: - - pdID - type: object - portworxVolume: - description: portworxVolume represents a portworx volume - attached and mounted on kubelets host machine - properties: - fsType: - description: |- - fSType represents the filesystem type to mount - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - volumeID: - description: volumeID uniquely identifies a Portworx - volume - type: string - required: - - volumeID - type: object - projected: - description: projected items for all in one resources - secrets, configmaps, and downward API - properties: - defaultMode: - description: |- - defaultMode are the mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - sources: - description: |- - sources is the list of volume projections. Each entry in this list - handles one source. - items: - description: |- - Projection that may be projected along with other supported volume types. - Exactly one of these fields must be set. - properties: - clusterTrustBundle: - description: |- - ClusterTrustBundle allows a pod to access the `.spec.trustBundle` field - of ClusterTrustBundle objects in an auto-updating file. - - Alpha, gated by the ClusterTrustBundleProjection feature gate. - - ClusterTrustBundle objects can either be selected by name, or by the - combination of signer name and a label selector. - - Kubelet performs aggressive normalization of the PEM contents written - into the pod filesystem. Esoteric PEM features such as inter-block - comments and block headers are stripped. Certificates are deduplicated. - The ordering of certificates within the file is arbitrary, and Kubelet - may change the order over time. - properties: - labelSelector: - description: |- - Select all ClusterTrustBundles that match this label selector. Only has - effect if signerName is set. Mutually-exclusive with name. If unset, - interpreted as "match nothing". If set but empty, interpreted as "match - everything". - properties: - matchExpressions: - description: matchExpressions is a - list of label selector requirements. - The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label - key that the selector applies - to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - name: - description: |- - Select a single ClusterTrustBundle by object name. Mutually-exclusive - with signerName and labelSelector. - type: string - optional: - description: |- - If true, don't block pod startup if the referenced ClusterTrustBundle(s) - aren't available. If using name, then the named ClusterTrustBundle is - allowed not to exist. If using signerName, then the combination of - signerName and labelSelector is allowed to match zero - ClusterTrustBundles. - type: boolean - path: - description: Relative path from the volume - root to write the bundle. - type: string - signerName: - description: |- - Select all ClusterTrustBundles that match this signer name. - Mutually-exclusive with name. The contents of all selected - ClusterTrustBundles will be unified and deduplicated. - type: string - required: - - path - type: object - configMap: - description: configMap information about the - configMap data to project - properties: - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - ConfigMap will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the ConfigMap, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a - path within a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional specify whether - the ConfigMap or its keys must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - downwardAPI: - description: downwardAPI information about - the downwardAPI data to project - properties: - items: - description: Items is a list of DownwardAPIVolume - file - items: - description: DownwardAPIVolumeFile represents - information to create the file containing - the pod field - properties: - fieldRef: - description: 'Required: Selects - a field of the pod: only annotations, - labels, name, namespace and uid - are supported.' - properties: - apiVersion: - description: Version of the - schema the FieldPath is written - in terms of, defaults to "v1". - type: string - fieldPath: - description: Path of the field - to select in the specified - API version. - type: string - required: - - fieldPath - type: object - x-kubernetes-map-type: atomic - mode: - description: |- - Optional: mode bits used to set permissions on this file, must be an octal value - between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: 'Required: Path is the - relative path name of the file - to be created. Must not be absolute - or contain the ''..'' path. Must - be utf-8 encoded. The first item - of the relative path must not - start with ''..''' - type: string - resourceFieldRef: - description: |- - Selects a resource of the container: only resources limits and requests - (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. - properties: - containerName: - description: 'Container name: - required for volumes, optional - for env vars' - type: string - divisor: - anyOf: - - type: integer - - type: string - description: Specifies the output - format of the exposed resources, - defaults to "1" - pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ - x-kubernetes-int-or-string: true - resource: - description: 'Required: resource - to select' - type: string - required: - - resource - type: object - x-kubernetes-map-type: atomic - required: - - path - type: object - type: array - x-kubernetes-list-type: atomic - type: object - secret: - description: secret information about the - secret data to project - properties: - items: - description: |- - items if unspecified, each key-value pair in the Data field of the referenced - Secret will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the Secret, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a - path within a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - optional: - description: optional field specify whether - the Secret or its key must be defined - type: boolean - type: object - x-kubernetes-map-type: atomic - serviceAccountToken: - description: serviceAccountToken is information - about the serviceAccountToken data to project - properties: - audience: - description: |- - audience is the intended audience of the token. A recipient of a token - must identify itself with an identifier specified in the audience of the - token, and otherwise should reject the token. The audience defaults to the - identifier of the apiserver. - type: string - expirationSeconds: - description: |- - expirationSeconds is the requested duration of validity of the service - account token. As the token approaches expiration, the kubelet volume - plugin will proactively rotate the service account token. The kubelet will - start trying to rotate the token if the token is older than 80 percent of - its time to live or if the token is older than 24 hours.Defaults to 1 hour - and must be at least 10 minutes. - format: int64 - type: integer - path: - description: |- - path is the path relative to the mount point of the file to project the - token into. - type: string - required: - - path - type: object - type: object - type: array - x-kubernetes-list-type: atomic - type: object - quobyte: - description: quobyte represents a Quobyte mount on the - host that shares a pod's lifetime - properties: - group: - description: |- - group to map volume access to - Default is no group - type: string - readOnly: - description: |- - readOnly here will force the Quobyte volume to be mounted with read-only permissions. - Defaults to false. - type: boolean - registry: - description: |- - registry represents a single or multiple Quobyte Registry services - specified as a string as host:port pair (multiple entries are separated with commas) - which acts as the central registry for volumes - type: string - tenant: - description: |- - tenant owning the given Quobyte volume in the Backend - Used with dynamically provisioned Quobyte volumes, value is set by the plugin - type: string - user: - description: |- - user to map volume access to - Defaults to serivceaccount user - type: string - volume: - description: volume is a string that references - an already created Quobyte volume by name. - type: string - required: - - registry - - volume - type: object - rbd: - description: |- - rbd represents a Rados Block Device mount on the host that shares a pod's lifetime. - More info: https://examples.k8s.io/volumes/rbd/README.md - properties: - fsType: - description: |- - fsType is the filesystem type of the volume that you want to mount. - Tip: Ensure that the filesystem type is supported by the host operating system. - Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd - type: string - image: - description: |- - image is the rados image name. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - keyring: - default: /etc/ceph/keyring - description: |- - keyring is the path to key ring for RBDUser. - Default is /etc/ceph/keyring. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - monitors: - description: |- - monitors is a collection of Ceph monitors. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - items: - type: string - type: array - x-kubernetes-list-type: atomic - pool: - default: rbd - description: |- - pool is the rados pool name. - Default is rbd. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - readOnly: - description: |- - readOnly here will force the ReadOnly setting in VolumeMounts. - Defaults to false. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: boolean - secretRef: - description: |- - secretRef is name of the authentication secret for RBDUser. If provided - overrides keyring. - Default is nil. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - user: - default: admin - description: |- - user is the rados user name. - Default is admin. - More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it - type: string - required: - - image - - monitors - type: object - scaleIO: - description: scaleIO represents a ScaleIO persistent - volume attached and mounted on Kubernetes nodes. - properties: - fsType: - default: xfs - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". - Default is "xfs". - type: string - gateway: - description: gateway is the host address of the - ScaleIO API Gateway. - type: string - protectionDomain: - description: protectionDomain is the name of the - ScaleIO Protection Domain for the configured storage. - type: string - readOnly: - description: |- - readOnly Defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef references to the secret for ScaleIO user and other - sensitive information. If this is not provided, Login operation will fail. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - sslEnabled: - description: sslEnabled Flag enable/disable SSL - communication with Gateway, default false - type: boolean - storageMode: - default: ThinProvisioned - description: |- - storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. - Default is ThinProvisioned. - type: string - storagePool: - description: storagePool is the ScaleIO Storage - Pool associated with the protection domain. - type: string - system: - description: system is the name of the storage system - as configured in ScaleIO. - type: string - volumeName: - description: |- - volumeName is the name of a volume already created in the ScaleIO system - that is associated with this volume source. - type: string - required: - - gateway - - secretRef - - system - type: object - secret: - description: |- - secret represents a secret that should populate this volume. - More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - properties: - defaultMode: - description: |- - defaultMode is Optional: mode bits used to set permissions on created files by default. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values - for mode bits. Defaults to 0644. - Directories within the path are not affected by this setting. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - items: - description: |- - items If unspecified, each key-value pair in the Data field of the referenced - Secret will be projected into the volume as a file whose name is the - key and content is the value. If specified, the listed keys will be - projected into the specified paths, and unlisted keys will not be - present. If a key is specified which is not present in the Secret, - the volume setup will error unless it is marked optional. Paths must be - relative and may not contain the '..' path or start with '..'. - items: - description: Maps a string key to a path within - a volume. - properties: - key: - description: key is the key to project. - type: string - mode: - description: |- - mode is Optional: mode bits used to set permissions on this file. - Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. - YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. - If not specified, the volume defaultMode will be used. - This might be in conflict with other options that affect the file - mode, like fsGroup, and the result can be other mode bits set. - format: int32 - type: integer - path: - description: |- - path is the relative path of the file to map the key to. - May not be an absolute path. - May not contain the path element '..'. - May not start with the string '..'. - type: string - required: - - key - - path - type: object - type: array - x-kubernetes-list-type: atomic - optional: - description: optional field specify whether the - Secret or its keys must be defined - type: boolean - secretName: - description: |- - secretName is the name of the secret in the pod's namespace to use. - More info: https://kubernetes.io/docs/concepts/storage/volumes#secret - type: string - type: object - storageos: - description: storageOS represents a StorageOS volume - attached and mounted on Kubernetes nodes. - properties: - fsType: - description: |- - fsType is the filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - readOnly: - description: |- - readOnly defaults to false (read/write). ReadOnly here will force - the ReadOnly setting in VolumeMounts. - type: boolean - secretRef: - description: |- - secretRef specifies the secret to use for obtaining the StorageOS API - credentials. If not specified, default values will be attempted. - properties: - name: - default: "" - description: |- - Name of the referent. - This field is effectively required, but due to backwards compatibility is - allowed to be empty. Instances of this type with an empty value here are - almost certainly wrong. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names - type: string - type: object - x-kubernetes-map-type: atomic - volumeName: - description: |- - volumeName is the human-readable name of the StorageOS volume. Volume - names are only unique within a namespace. - type: string - volumeNamespace: - description: |- - volumeNamespace specifies the scope of the volume within StorageOS. If no - namespace is specified then the Pod's namespace will be used. This allows the - Kubernetes name scoping to be mirrored within StorageOS for tighter integration. - Set VolumeName to any name to override the default behaviour. - Set to "default" if you are not using namespaces within StorageOS. - Namespaces that do not pre-exist within StorageOS will be created. - type: string - type: object - vsphereVolume: - description: vsphereVolume represents a vSphere volume - attached and mounted on kubelets host machine - properties: - fsType: - description: |- - fsType is filesystem type to mount. - Must be a filesystem type supported by the host operating system. - Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. - type: string - storagePolicyID: - description: storagePolicyID is the storage Policy - Based Management (SPBM) profile ID associated - with the StoragePolicyName. - type: string - storagePolicyName: - description: storagePolicyName is the storage Policy - Based Management (SPBM) profile name. - type: string - volumePath: - description: volumePath is the path that identifies - vSphere volume vmdk - type: string - required: - - volumePath - type: object - required: - - name - type: object - type: array - type: object - profile: - description: Specifies which installation configuration profile - to apply. - type: string - revision: - description: Identifies the revision this installation is associated - with. - type: string - revisionTags: - description: |- - Specifies the aliases for the Istio control plane revision. A MutatingWebhookConfiguration - is created for each alias. - items: - type: string - type: array - sidecarInjectorWebhook: - description: Configuration for the sidecar injector webhook. - properties: - alwaysInjectSelector: - description: See NeverInjectSelector. - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - defaultTemplates: - description: 'defaultTemplates: ["sidecar", "hello"]' - items: - type: string - type: array - enableNamespacesByDefault: - description: Enables sidecar auto-injection in namespaces - by default. - type: boolean - injectedAnnotations: - additionalProperties: - type: string - description: |- - injectedAnnotations are additional annotations that will be added to the pod spec after injection - This is primarily to support PSP annotations. - type: object - injectionURL: - description: Configure the injection url for sidecar injector - webhook - type: string - neverInjectSelector: - description: |- - 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 - items: - description: |- - A label selector is a label query over a set of resources. The result of matchLabels and - matchExpressions are ANDed. An empty label selector matches all objects. A null - label selector matches no objects. - properties: - matchExpressions: - description: matchExpressions is a list of label selector - requirements. The requirements are ANDed. - items: - description: |- - A label selector requirement is a selector that contains values, a key, and an operator that - relates the key and values. - properties: - key: - description: key is the label key that the selector - applies to. - type: string - operator: - description: |- - operator represents a key's relationship to a set of values. - Valid operators are In, NotIn, Exists and DoesNotExist. - type: string - values: - description: |- - values is an array of string values. If the operator is In or NotIn, - the values array must be non-empty. If the operator is Exists or DoesNotExist, - the values array must be empty. This array is replaced during a strategic - merge patch. - items: - type: string - type: array - x-kubernetes-list-type: atomic - required: - - key - - operator - type: object - type: array - x-kubernetes-list-type: atomic - matchLabels: - additionalProperties: - type: string - description: |- - matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels - map is equivalent to an element of matchExpressions, whose key field is "key", the - operator is "In", and the values array contains only "value". The requirements are ANDed. - type: object - type: object - x-kubernetes-map-type: atomic - type: array - reinvocationPolicy: - description: 'Setting this to `IfNeeded` will result in the - sidecar injector being run again if additional mutations - occur. Default: Never' - type: string - rewriteAppHTTPProbe: - description: 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. - type: boolean - templates: - additionalProperties: - type: string - description: "Templates defines a set of custom injection - templates that can be used. For example, defining:\n\ntemplates:\n\n\thello: - |\n\t metadata:\n\t labels:\n\t hello: world\n\nThen - starting a pod with the `inject.istio.io/templates: hello` - annotation, will result in the pod\nbeing injected with - the hello=world labels.\nThis is intended for advanced configuration - only; most users should use the built in template" - type: object - type: object - telemetry: - description: Controls whether telemetry is exported for Pilot. - properties: - enabled: - description: Controls whether telemetry is exported for Pilot. - type: boolean - v2: - description: Configuration for Telemetry v2. - properties: - enabled: - description: Controls whether pilot will configure telemetry - v2. - type: boolean - prometheus: - description: Telemetry v2 settings for prometheus. - properties: - enabled: - description: Controls whether stats envoyfilter would - be enabled or not. - type: boolean - type: object - stackdriver: - description: Telemetry v2 settings for stackdriver. - properties: - enabled: - type: boolean - type: object - type: object - type: object - type: object - version: - default: v1.23.2 - description: |- - Defines the version of Istio to install. - Must be one of: v1.23.2, v1.22.5, v1.21.6, latest. - enum: - - v1.23.2 - - v1.22.5 - - v1.21.6 - - latest - type: string - required: - - namespace - - version - type: object - x-kubernetes-validations: - - message: spec.values.global.istioNamespace must match spec.namespace - rule: '!has(self.values) || !has(self.values.global) || !has(self.values.global.istioNamespace) - || self.values.global.istioNamespace == self.__namespace__' - status: - description: RemoteIstioStatus defines the observed state of RemoteIstio - properties: - activeRevisionName: - description: The name of the active revision. - type: string - conditions: - description: Represents the latest available observations of the object's - current state. - items: - description: RemoteIstioCondition represents a specific observation - of the RemoteIstioCondition object's state. - properties: - lastTransitionTime: - description: Last time the condition transitioned from one status - to another. - format: date-time - type: string - message: - description: Human-readable message indicating details about - the last transition. - type: string - reason: - description: Unique, single-word, CamelCase reason for the condition's - last transition. - type: string - status: - description: The status of this condition. Can be True, False - or Unknown. - type: string - type: - description: The type of this condition. - type: string - type: object - type: array - observedGeneration: - description: |- - ObservedGeneration is the most recent generation observed for this - RemoteIstio object. It corresponds to the object's generation, which is - updated on mutation by the API Server. The information in the status - pertains to this particular generation of the object. - format: int64 - type: integer - revisions: - description: Reports information about the underlying IstioRevisions. - properties: - inUse: - description: Number of IstioRevisions that are currently in use. - format: int32 - type: integer - ready: - description: Number of IstioRevisions that are Ready. - format: int32 - type: integer - total: - description: Total number of IstioRevisions currently associated - with this Istio. - format: int32 - type: integer - required: - - inUse - - ready - - total - type: object - state: - description: Reports the current state of the object. - type: string - type: object - type: object - served: true - storage: true - subresources: - status: {} diff --git a/chart/samples/remoteistio-sample.yaml b/chart/samples/remoteistio-sample.yaml deleted file mode 100644 index 66407f939..000000000 --- a/chart/samples/remoteistio-sample.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: sailoperator.io/v1alpha1 -kind: RemoteIstio -metadata: - name: default -spec: - version: latest - namespace: istio-system - updateStrategy: - type: InPlace - inactiveRevisionDeletionGracePeriodSeconds: 30 - values: - istiodRemote: - injectionPath: /inject/cluster/cluster2/net/network1 - global: - remotePilotAddress: 1.2.3.4 \ No newline at end of file diff --git a/cmd/main.go b/cmd/main.go index d713a8131..1d8b4cac2 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -23,7 +23,6 @@ import ( "github.com/istio-ecosystem/sail-operator/controllers/istio" "github.com/istio-ecosystem/sail-operator/controllers/istiocni" "github.com/istio-ecosystem/sail-operator/controllers/istiorevision" - "github.com/istio-ecosystem/sail-operator/controllers/remoteistio" "github.com/istio-ecosystem/sail-operator/controllers/webhook" "github.com/istio-ecosystem/sail-operator/pkg/config" "github.com/istio-ecosystem/sail-operator/pkg/enqueuelogger" @@ -144,13 +143,6 @@ func main() { os.Exit(1) } - err = remoteistio.NewReconciler(reconcilerCfg, mgr.GetClient(), mgr.GetScheme()). - SetupWithManager(mgr) - if err != nil { - setupLog.Error(err, "unable to create controller", "controller", "RemoteIstio") - os.Exit(1) - } - err = istiorevision.NewReconciler(reconcilerCfg, mgr.GetClient(), mgr.GetScheme(), chartManager). SetupWithManager(mgr) if err != nil { diff --git a/controllers/istio/istio_controller.go b/controllers/istio/istio_controller.go index 24043a2ec..b013c9bf1 100644 --- a/controllers/istio/istio_controller.go +++ b/controllers/istio/istio_controller.go @@ -115,7 +115,6 @@ func (r *Reconciler) reconcileActiveRevision(ctx context.Context, istio *v1alpha return revision.CreateOrUpdate(ctx, r.Client, getActiveRevisionName(istio), - v1alpha1.IstioRevisionTypeLocal, istio.Spec.Version, istio.Spec.Namespace, values, metav1.OwnerReference{ APIVersion: v1alpha1.GroupVersion.String(), @@ -324,6 +323,8 @@ func convertConditionReason(reason v1alpha1.IstioRevisionConditionReason) v1alph return v1alpha1.IstioReasonReadinessCheckFailed case v1alpha1.IstioRevisionReasonReconcileError: return v1alpha1.IstioReasonReconcileError + case v1alpha1.IstioRevisionReasonRemoteIstiodNotReady: + return v1alpha1.IstioReasonRemoteIstiodNotReady default: panic(fmt.Sprintf("can't convert IstioRevisionConditionReason: %s", reason)) } diff --git a/controllers/istiorevision/istiorevision_controller.go b/controllers/istiorevision/istiorevision_controller.go index 13d162684..fb022237c 100644 --- a/controllers/istiorevision/istiorevision_controller.go +++ b/controllers/istiorevision/istiorevision_controller.go @@ -31,6 +31,7 @@ import ( "github.com/istio-ecosystem/sail-operator/pkg/helm" "github.com/istio-ecosystem/sail-operator/pkg/kube" "github.com/istio-ecosystem/sail-operator/pkg/reconciler" + "github.com/istio-ecosystem/sail-operator/pkg/revision" "github.com/istio-ecosystem/sail-operator/pkg/validation" admissionv1 "k8s.io/api/admissionregistration/v1" appsv1 "k8s.io/api/apps/v1" @@ -61,8 +62,7 @@ const ( IstioRevLabel = "istio.io/rev" IstioSidecarInjectLabel = "sidecar.istio.io/inject" - istiodChartName = "istiod" - istiodRemoteChartName = "istiod-remote" + istiodChartName = "istiod" ) // Reconciler reconciles an IstioRevision object @@ -128,9 +128,6 @@ func (r *Reconciler) Finalize(ctx context.Context, rev *v1alpha1.IstioRevision) } func (r *Reconciler) validate(ctx context.Context, rev *v1alpha1.IstioRevision) error { - if rev.Spec.Type == "" { - return reconciler.NewValidationError("spec.type not set") - } if rev.Spec.Version == "" { return reconciler.NewValidationError("spec.version not set") } @@ -172,33 +169,22 @@ func (r *Reconciler) installHelmCharts(ctx context.Context, rev *v1alpha1.IstioR _, err := r.ChartManager.UpgradeOrInstallChart(ctx, r.getChartDir(rev), values, rev.Spec.Namespace, getReleaseName(rev), ownerReference) if err != nil { - return fmt.Errorf("failed to install/update Helm chart %q: %w", getChartName(rev), err) + return fmt.Errorf("failed to install/update Helm chart %q: %w", istiodChartName, err) } return nil } func getReleaseName(rev *v1alpha1.IstioRevision) string { - return fmt.Sprintf("%s-%s", rev.Name, getChartName(rev)) + return fmt.Sprintf("%s-%s", rev.Name, istiodChartName) } func (r *Reconciler) getChartDir(rev *v1alpha1.IstioRevision) string { - return path.Join(r.Config.ResourceDirectory, rev.Spec.Version, "charts", getChartName(rev)) -} - -func getChartName(rev *v1alpha1.IstioRevision) string { - switch rev.Spec.Type { - case v1alpha1.IstioRevisionTypeLocal: - return istiodChartName - case v1alpha1.IstioRevisionTypeRemote: - return istiodRemoteChartName - default: - panic(badIstioRevisionType(rev)) - } + return path.Join(r.Config.ResourceDirectory, rev.Spec.Version, "charts", istiodChartName) } func (r *Reconciler) uninstallHelmCharts(ctx context.Context, rev *v1alpha1.IstioRevision) error { if _, err := r.ChartManager.UninstallChart(ctx, getReleaseName(rev), rev.Spec.Namespace); err != nil { - return fmt.Errorf("failed to uninstall Helm chart %q: %w", getChartName(rev), err) + return fmt.Errorf("failed to uninstall Helm chart %q: %w", istiodChartName, err) } return nil } @@ -332,8 +318,7 @@ func (r *Reconciler) determineReadyCondition(ctx context.Context, rev *v1alpha1. Status: metav1.ConditionFalse, } - switch rev.Spec.Type { - case v1alpha1.IstioRevisionTypeLocal: + if !revision.IsUsingRemoteControlPlane(rev) { istiod := appsv1.Deployment{} if err := r.Client.Get(ctx, istiodDeploymentKey(rev), &istiod); err == nil { if istiod.Status.Replicas == 0 { @@ -354,7 +339,7 @@ func (r *Reconciler) determineReadyCondition(ctx context.Context, rev *v1alpha1. c.Message = fmt.Sprintf("failed to get readiness: %v", err) return c, fmt.Errorf("get failed: %w", err) } - case v1alpha1.IstioRevisionTypeRemote: + } else { webhook := admissionv1.MutatingWebhookConfiguration{} webhookKey := injectionWebhookKey(rev) if err := r.Client.Get(ctx, webhookKey, &webhook); err == nil { @@ -378,8 +363,6 @@ func (r *Reconciler) determineReadyCondition(ctx context.Context, rev *v1alpha1. c.Message = fmt.Sprintf("failed to get readiness: %v", err) return c, fmt.Errorf("get failed: %w", err) } - default: - panic(badIstioRevisionType(rev)) } return c, nil } @@ -610,10 +593,6 @@ func clearIgnoredFields(obj client.Object) { } } -func badIstioRevisionType(rev *v1alpha1.IstioRevision) string { - return fmt.Sprintf("unknown IstioRevisionType: %s", rev.Spec.Type) -} - func wrapEventHandler(logger logr.Logger, handler handler.EventHandler) handler.EventHandler { return enqueuelogger.WrapIfNecessary(v1alpha1.IstioRevisionKind, logger, handler) } diff --git a/controllers/istiorevision/istiorevision_controller_test.go b/controllers/istiorevision/istiorevision_controller_test.go index c27b76129..7c2f21b97 100644 --- a/controllers/istiorevision/istiorevision_controller_test.go +++ b/controllers/istiorevision/istiorevision_controller_test.go @@ -60,7 +60,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", Values: &v1alpha1.Values{ @@ -73,25 +72,6 @@ func TestValidate(t *testing.T) { objects: []client.Object{ns}, expectErr: "", }, - { - name: "no type", - rev: &v1alpha1.IstioRevision{ - ObjectMeta: metav1.ObjectMeta{ - Name: "default", - }, - Spec: v1alpha1.IstioRevisionSpec{ - Version: supportedversion.Default, - Namespace: "istio-system", - Values: &v1alpha1.Values{ - Global: &v1alpha1.GlobalConfig{ - IstioNamespace: ptr.Of("istio-system"), - }, - }, - }, - }, - objects: []client.Object{ns}, - expectErr: `spec.type not set`, - }, { name: "no version", rev: &v1alpha1.IstioRevision{ @@ -99,7 +79,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Namespace: "istio-system", }, }, @@ -113,7 +92,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, }, }, @@ -127,7 +105,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", }, @@ -142,7 +119,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", }, @@ -157,7 +133,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", Values: &v1alpha1.Values{ @@ -177,7 +152,6 @@ func TestValidate(t *testing.T) { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", Values: &v1alpha1.Values{ @@ -198,7 +172,6 @@ func TestValidate(t *testing.T) { Name: "my-revision", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: "istio-system", Values: &v1alpha1.Values{ @@ -293,7 +266,6 @@ func TestDetermineReadyCondition(t *testing.T) { testCases := []struct { name string - revType v1alpha1.IstioRevisionType values *v1alpha1.Values clientObjects []client.Object interceptors interceptor.Funcs @@ -418,9 +390,8 @@ func TestDetermineReadyCondition(t *testing.T) { expectErr: true, }, { - name: "Istiod-remote ready", - revType: v1alpha1.IstioRevisionTypeRemote, - values: nil, + name: "Istiod-remote ready", + values: &v1alpha1.Values{Profile: ptr.Of("remote")}, clientObjects: []client.Object{ &admissionv1.MutatingWebhookConfiguration{ ObjectMeta: metav1.ObjectMeta{ @@ -437,9 +408,8 @@ func TestDetermineReadyCondition(t *testing.T) { }, }, { - name: "Istiod-remote not ready", - revType: v1alpha1.IstioRevisionTypeRemote, - values: nil, + name: "Istiod-remote not ready", + values: &v1alpha1.Values{Profile: ptr.Of("remote")}, clientObjects: []client.Object{ &admissionv1.MutatingWebhookConfiguration{ ObjectMeta: metav1.ObjectMeta{ @@ -458,9 +428,8 @@ func TestDetermineReadyCondition(t *testing.T) { }, }, { - name: "Istiod-remote no readiness probe status annotation", - revType: v1alpha1.IstioRevisionTypeRemote, - values: nil, + name: "Istiod-remote no readiness probe status annotation", + values: &v1alpha1.Values{Profile: ptr.Of("remote")}, clientObjects: []client.Object{ &admissionv1.MutatingWebhookConfiguration{ ObjectMeta: metav1.ObjectMeta{ @@ -478,8 +447,7 @@ func TestDetermineReadyCondition(t *testing.T) { }, { name: "Istiod-remote webhook config not found", - revType: v1alpha1.IstioRevisionTypeRemote, - values: nil, + values: &v1alpha1.Values{Profile: ptr.Of("remote")}, clientObjects: []client.Object{}, expected: v1alpha1.IstioRevisionCondition{ Type: v1alpha1.IstioRevisionConditionReady, @@ -490,7 +458,7 @@ func TestDetermineReadyCondition(t *testing.T) { }, { name: "Istiod-remote client error on get", - revType: v1alpha1.IstioRevisionTypeRemote, + values: &v1alpha1.Values{Profile: ptr.Of("remote")}, clientObjects: []client.Object{}, interceptors: interceptor.Funcs{ Get: func(_ context.Context, _ client.WithWatch, _ client.ObjectKey, obj client.Object, _ ...client.GetOption) error { @@ -515,16 +483,12 @@ func TestDetermineReadyCondition(t *testing.T) { r := NewReconciler(cfg, cl, scheme.Scheme, nil) - if tt.revType == "" { - tt.revType = v1alpha1.IstioRevisionTypeLocal - } rev := &v1alpha1.IstioRevision{ ObjectMeta: metav1.ObjectMeta{ Name: "my-istio", }, Spec: v1alpha1.IstioRevisionSpec{ Namespace: "istio-system", - Type: tt.revType, Values: tt.values, }, } diff --git a/controllers/remoteistio/remoteistio_controller.go b/controllers/remoteistio/remoteistio_controller.go deleted file mode 100644 index fe92ebd00..000000000 --- a/controllers/remoteistio/remoteistio_controller.go +++ /dev/null @@ -1,315 +0,0 @@ -// 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. - -package remoteistio - -import ( - "context" - "errors" - "fmt" - "reflect" - "strings" - "time" - - "github.com/go-logr/logr" - "github.com/istio-ecosystem/sail-operator/api/v1alpha1" - "github.com/istio-ecosystem/sail-operator/pkg/config" - "github.com/istio-ecosystem/sail-operator/pkg/errlist" - "github.com/istio-ecosystem/sail-operator/pkg/kube" - "github.com/istio-ecosystem/sail-operator/pkg/reconciler" - "github.com/istio-ecosystem/sail-operator/pkg/revision" - apierrors "k8s.io/apimachinery/pkg/api/errors" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/runtime" - "k8s.io/apimachinery/pkg/types" - ctrl "sigs.k8s.io/controller-runtime" - "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/controller" - logf "sigs.k8s.io/controller-runtime/pkg/log" - "sigs.k8s.io/controller-runtime/pkg/reconcile" - - "istio.io/istio/pkg/ptr" -) - -// Reconciler reconciles a RemoteIstio object -type Reconciler struct { - Config config.ReconcilerConfig - client.Client - Scheme *runtime.Scheme -} - -func NewReconciler(cfg config.ReconcilerConfig, client client.Client, scheme *runtime.Scheme) *Reconciler { - return &Reconciler{ - Config: cfg, - Client: client, - Scheme: scheme, - } -} - -// +kubebuilder:rbac:groups=sailoperator.io,resources=remoteistios,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=sailoperator.io,resources=remoteistios/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=sailoperator.io,resources=remoteistios/finalizers,verbs=update - -// Reconcile is part of the main kubernetes reconciliation loop which aims to -// move the current state of the cluster closer to the desired state. -// -// For more details, check Reconcile and its Result here: -// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile -func (r *Reconciler) Reconcile(ctx context.Context, istio *v1alpha1.RemoteIstio) (ctrl.Result, error) { - log := logf.FromContext(ctx) - - log.Info("Reconciling") - result, reconcileErr := r.doReconcile(ctx, istio) - - log.Info("Reconciliation done. Updating status.") - statusErr := r.updateStatus(ctx, istio, reconcileErr) - - return result, errors.Join(reconcileErr, statusErr) -} - -// doReconcile is the function that actually reconciles the Istio object. Any error reported by this -// function should get reported in the status of the Istio object by the caller. -func (r *Reconciler) doReconcile(ctx context.Context, istio *v1alpha1.RemoteIstio) (result ctrl.Result, err error) { - if err := validate(istio); err != nil { - return ctrl.Result{}, err - } - - if err = r.reconcileActiveRevision(ctx, istio); err != nil { - return ctrl.Result{}, err - } - - return revision.PruneInactive(ctx, r.Client, istio.UID, getActiveRevisionName(istio), getPruningGracePeriod(istio)) -} - -func validate(istio *v1alpha1.RemoteIstio) error { - if istio.Spec.Version == "" { - return reconciler.NewValidationError("spec.version not set") - } - if istio.Spec.Namespace == "" { - return reconciler.NewValidationError("spec.namespace not set") - } - return nil -} - -func (r *Reconciler) reconcileActiveRevision(ctx context.Context, istio *v1alpha1.RemoteIstio) error { - values, err := revision.ComputeValues( - istio.Spec.Values, istio.Spec.Namespace, istio.Spec.Version, - r.Config.Platform, r.Config.DefaultProfile, istio.Spec.Profile, - r.Config.ResourceDirectory, getActiveRevisionName(istio)) - if err != nil { - return err - } - - return revision.CreateOrUpdate(ctx, r.Client, - getActiveRevisionName(istio), - v1alpha1.IstioRevisionTypeRemote, - istio.Spec.Version, istio.Spec.Namespace, values, - metav1.OwnerReference{ - APIVersion: v1alpha1.GroupVersion.String(), - Kind: v1alpha1.RemoteIstioKind, - Name: istio.Name, - UID: istio.UID, - Controller: ptr.Of(true), - BlockOwnerDeletion: ptr.Of(true), - }) -} - -func getPruningGracePeriod(istio *v1alpha1.RemoteIstio) time.Duration { - strategy := istio.Spec.UpdateStrategy - period := int64(v1alpha1.DefaultRevisionDeletionGracePeriodSeconds) - if strategy != nil && strategy.InactiveRevisionDeletionGracePeriodSeconds != nil { - period = *strategy.InactiveRevisionDeletionGracePeriodSeconds - } - if period < v1alpha1.MinRevisionDeletionGracePeriodSeconds { - period = v1alpha1.MinRevisionDeletionGracePeriodSeconds - } - return time.Duration(period) * time.Second -} - -func (r *Reconciler) getActiveRevision(ctx context.Context, istio *v1alpha1.RemoteIstio) (v1alpha1.IstioRevision, error) { - rev := v1alpha1.IstioRevision{} - err := r.Client.Get(ctx, getActiveRevisionKey(istio), &rev) - if err != nil { - return rev, fmt.Errorf("get failed: %w", err) - } - return rev, nil -} - -func getActiveRevisionKey(istio *v1alpha1.RemoteIstio) types.NamespacedName { - return types.NamespacedName{ - Name: getActiveRevisionName(istio), - } -} - -func getActiveRevisionName(istio *v1alpha1.RemoteIstio) string { - var strategy v1alpha1.UpdateStrategyType - if istio.Spec.UpdateStrategy != nil { - strategy = istio.Spec.UpdateStrategy.Type - } - - switch strategy { - default: - fallthrough - case v1alpha1.UpdateStrategyTypeInPlace: - return istio.Name - case v1alpha1.UpdateStrategyTypeRevisionBased: - return istio.Name + "-" + strings.ReplaceAll(istio.Spec.Version, ".", "-") - } -} - -func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error { - return ctrl.NewControllerManagedBy(mgr). - WithOptions(controller.Options{ - LogConstructor: func(req *reconcile.Request) logr.Logger { - log := mgr.GetLogger().WithName("ctrlr").WithName("remoteistio") - if req != nil { - log = log.WithValues("RemoteIstio", req.Name) - } - return log - }, - }). - For(&v1alpha1.RemoteIstio{}). - Owns(&v1alpha1.IstioRevision{}). - Complete(reconciler.NewStandardReconciler[*v1alpha1.RemoteIstio](r.Client, r.Reconcile)) -} - -func (r *Reconciler) determineStatus(ctx context.Context, istio *v1alpha1.RemoteIstio, reconcileErr error) (v1alpha1.RemoteIstioStatus, error) { - var errs errlist.Builder - status := *istio.Status.DeepCopy() - status.ObservedGeneration = istio.Generation - - // set Reconciled and Ready conditions - if reconcileErr != nil { - status.SetCondition(v1alpha1.RemoteIstioCondition{ - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonReconcileError, - Message: reconcileErr.Error(), - }) - status.SetCondition(v1alpha1.RemoteIstioCondition{ - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionUnknown, - Reason: v1alpha1.RemoteIstioReasonReconcileError, - Message: "cannot determine readiness due to reconciliation error", - }) - status.State = v1alpha1.RemoteIstioReasonReconcileError - } else { - status.ActiveRevisionName = getActiveRevisionName(istio) - rev, err := r.getActiveRevision(ctx, istio) - if apierrors.IsNotFound(err) { - revisionNotFound := func(conditionType v1alpha1.RemoteIstioConditionType) v1alpha1.RemoteIstioCondition { - return v1alpha1.RemoteIstioCondition{ - Type: conditionType, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - } - } - - status.SetCondition(revisionNotFound(v1alpha1.RemoteIstioConditionReconciled)) - status.SetCondition(revisionNotFound(v1alpha1.RemoteIstioConditionReady)) - status.State = v1alpha1.RemoteIstioReasonRevisionNotFound - } else if err == nil { - status.SetCondition(convertCondition(rev.Status.GetCondition(v1alpha1.IstioRevisionConditionReconciled))) - status.SetCondition(convertCondition(rev.Status.GetCondition(v1alpha1.IstioRevisionConditionReady))) - status.State = convertConditionReason(rev.Status.State) - } else { - activeRevisionGetFailed := func(conditionType v1alpha1.RemoteIstioConditionType) v1alpha1.RemoteIstioCondition { - return v1alpha1.RemoteIstioCondition{ - Type: conditionType, - Status: metav1.ConditionUnknown, - Reason: v1alpha1.RemoteIstioReasonFailedToGetActiveRevision, - Message: fmt.Sprintf("failed to get active IstioRevision: %s", err), - } - } - status.SetCondition(activeRevisionGetFailed(v1alpha1.RemoteIstioConditionReconciled)) - status.SetCondition(activeRevisionGetFailed(v1alpha1.RemoteIstioConditionReady)) - status.State = v1alpha1.RemoteIstioReasonFailedToGetActiveRevision - errs.Add(fmt.Errorf("failed to get active IstioRevision: %w", err)) - } - } - - // count the ready, in-use, and total revisions - if revs, err := revision.ListOwned(ctx, r.Client, istio.UID); err == nil { - status.Revisions.Total = int32(len(revs)) - status.Revisions.Ready = 0 - status.Revisions.InUse = 0 - for _, rev := range revs { - if rev.Status.GetCondition(v1alpha1.IstioRevisionConditionReady).Status == metav1.ConditionTrue { - status.Revisions.Ready++ - } - if rev.Status.GetCondition(v1alpha1.IstioRevisionConditionInUse).Status == metav1.ConditionTrue { - status.Revisions.InUse++ - } - } - } else { - status.Revisions.Total = -1 - status.Revisions.Ready = -1 - status.Revisions.InUse = -1 - errs.Add(err) - } - return status, errs.Error() -} - -func (r *Reconciler) updateStatus(ctx context.Context, istio *v1alpha1.RemoteIstio, reconcileErr error) error { - var errs errlist.Builder - status, err := r.determineStatus(ctx, istio, reconcileErr) - if err != nil { - errs.Add(fmt.Errorf("failed to determine status: %w", err)) - } - - if !reflect.DeepEqual(istio.Status, status) { - if err := r.Client.Status().Patch(ctx, istio, kube.NewStatusPatch(status)); err != nil { - errs.Add(fmt.Errorf("failed to patch status: %w", err)) - } - } - return errs.Error() -} - -func convertCondition(condition v1alpha1.IstioRevisionCondition) v1alpha1.RemoteIstioCondition { - return v1alpha1.RemoteIstioCondition{ - Type: convertConditionType(condition), - Status: condition.Status, - Reason: convertConditionReason(condition.Reason), - Message: condition.Message, - } -} - -func convertConditionType(condition v1alpha1.IstioRevisionCondition) v1alpha1.RemoteIstioConditionType { - switch condition.Type { - case v1alpha1.IstioRevisionConditionReconciled: - return v1alpha1.RemoteIstioConditionReconciled - case v1alpha1.IstioRevisionConditionReady: - return v1alpha1.RemoteIstioConditionReady - default: - panic(fmt.Sprintf("can't convert IstioRevisionConditionType: %s", condition.Type)) - } -} - -func convertConditionReason(reason v1alpha1.IstioRevisionConditionReason) v1alpha1.RemoteIstioConditionReason { - switch reason { - case "": - return "" - case v1alpha1.IstioRevisionReasonRemoteIstiodNotReady: - return v1alpha1.RemoteIstioReasonIstiodNotReady - case v1alpha1.IstioRevisionReasonHealthy: - return v1alpha1.RemoteIstioReasonHealthy - case v1alpha1.IstioRevisionReasonReadinessCheckFailed: - return v1alpha1.RemoteIstioReasonReadinessCheckFailed - case v1alpha1.IstioRevisionReasonReconcileError: - return v1alpha1.RemoteIstioReasonReconcileError - default: - panic(fmt.Sprintf("can't convert IstioRevisionConditionReason: %s", reason)) - } -} diff --git a/controllers/remoteistio/remoteistio_controller_test.go b/controllers/remoteistio/remoteistio_controller_test.go deleted file mode 100644 index 8b74879f2..000000000 --- a/controllers/remoteistio/remoteistio_controller_test.go +++ /dev/null @@ -1,927 +0,0 @@ -// 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. - -package remoteistio - -import ( - "context" - "fmt" - "runtime/debug" - "testing" - "time" - - "github.com/google/go-cmp/cmp" - "github.com/istio-ecosystem/sail-operator/api/v1alpha1" - "github.com/istio-ecosystem/sail-operator/pkg/config" - "github.com/istio-ecosystem/sail-operator/pkg/scheme" - "github.com/istio-ecosystem/sail-operator/pkg/test/testtime" - "github.com/istio-ecosystem/sail-operator/pkg/test/util/supportedversion" - . "github.com/onsi/gomega" - metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - "k8s.io/apimachinery/pkg/types" - "sigs.k8s.io/controller-runtime/pkg/client" - "sigs.k8s.io/controller-runtime/pkg/client/fake" - "sigs.k8s.io/controller-runtime/pkg/client/interceptor" - - "istio.io/istio/pkg/ptr" -) - -var ( - ctx = context.Background() - istioNamespace = "my-istio-namespace" - istioName = "my-istio" - istioKey = types.NamespacedName{ - Name: istioName, - } - istioUID = types.UID("my-istio-uid") - objectMeta = metav1.ObjectMeta{ - Name: istioKey.Name, - } -) - -func TestReconcile(t *testing.T) { - cfg := newReconcilerTestConfig(t) - - t.Run("returns error when Istio version not set", func(t *testing.T) { - istio := &v1alpha1.RemoteIstio{ - ObjectMeta: objectMeta, - } - - cl := newFakeClientBuilder(). - WithObjects(istio). - Build() - reconciler := NewReconciler(cfg, cl, scheme.Scheme) - - _, err := reconciler.Reconcile(ctx, istio) - if err == nil { - t.Errorf("Expected an error, but got nil") - } - - Must(t, cl.Get(ctx, istioKey, istio)) - - if istio.Status.State != v1alpha1.RemoteIstioReasonReconcileError { - t.Errorf("Expected status.state to be %q, but got %q", v1alpha1.RemoteIstioReasonReconcileError, istio.Status.State) - } - - reconciledCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReconciled) - if reconciledCond.Status != metav1.ConditionFalse { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionFalse, reconciledCond.Status) - } - - readyCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReady) - if readyCond.Status != metav1.ConditionUnknown { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionUnknown, readyCond.Status) - } - }) - - t.Run("returns error when computeIstioRevisionValues fails", func(t *testing.T) { - istio := &v1alpha1.RemoteIstio{ - ObjectMeta: objectMeta, - Spec: v1alpha1.RemoteIstioSpec{ - Version: "my-version", - }, - } - - cl := newFakeClientBuilder(). - WithStatusSubresource(&v1alpha1.RemoteIstio{}). - WithObjects(istio). - Build() - cfg := newReconcilerTestConfig(t) - cfg.DefaultProfile = "invalid-profile" - reconciler := NewReconciler(cfg, cl, scheme.Scheme) - - _, err := reconciler.Reconcile(ctx, istio) - if err == nil { - t.Errorf("Expected an error, but got nil") - } - - Must(t, cl.Get(ctx, istioKey, istio)) - - if istio.Status.State != v1alpha1.RemoteIstioReasonReconcileError { - t.Errorf("Expected status.state to be %q, but got %q", v1alpha1.RemoteIstioReasonReconcileError, istio.Status.State) - } - - reconciledCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReconciled) - if reconciledCond.Status != metav1.ConditionFalse { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionFalse, reconciledCond.Status) - } - - readyCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReady) - if readyCond.Status != metav1.ConditionUnknown { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionUnknown, readyCond.Status) - } - }) - - t.Run("returns error when reconcileActiveRevision fails", func(t *testing.T) { - istio := &v1alpha1.RemoteIstio{ - ObjectMeta: objectMeta, - Spec: v1alpha1.RemoteIstioSpec{ - Version: "my-version", - }, - } - - cl := newFakeClientBuilder(). - WithObjects(istio). - WithInterceptorFuncs(interceptor.Funcs{ - Create: func(_ context.Context, _ client.WithWatch, _ client.Object, _ ...client.CreateOption) error { - return fmt.Errorf("internal error") - }, - }). - Build() - reconciler := NewReconciler(cfg, cl, scheme.Scheme) - - _, err := reconciler.Reconcile(ctx, istio) - if err == nil { - t.Errorf("Expected an error, but got nil") - } - - Must(t, cl.Get(ctx, istioKey, istio)) - - if istio.Status.State != v1alpha1.RemoteIstioReasonReconcileError { - t.Errorf("Expected status.state to be %q, but got %q", v1alpha1.RemoteIstioReasonReconcileError, istio.Status.State) - } - - reconciledCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReconciled) - if reconciledCond.Status != metav1.ConditionFalse { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionFalse, reconciledCond.Status) - } - - readyCond := istio.Status.GetCondition(v1alpha1.RemoteIstioConditionReady) - if readyCond.Status != metav1.ConditionUnknown { - t.Errorf("Expected Reconciled condition status to be %q, but got %q", metav1.ConditionUnknown, readyCond.Status) - } - }) -} - -func TestValidate(t *testing.T) { - testCases := []struct { - name string - istio *v1alpha1.RemoteIstio - expectErr string - }{ - { - name: "success", - istio: &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: "default", - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: supportedversion.Default, - Namespace: "istio-system", - }, - }, - expectErr: "", - }, - { - name: "no version", - istio: &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: "default", - }, - Spec: v1alpha1.RemoteIstioSpec{ - Namespace: "istio-system", - }, - }, - expectErr: "spec.version not set", - }, - { - name: "no namespace", - istio: &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: "default", - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: supportedversion.Default, - }, - }, - expectErr: "spec.namespace not set", - }, - } - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - g := NewWithT(t) - - err := validate(tc.istio) - if tc.expectErr == "" { - g.Expect(err).ToNot(HaveOccurred()) - } else { - g.Expect(err).To(HaveOccurred()) - g.Expect(err.Error()).To(ContainSubstring(tc.expectErr)) - } - }) - } -} - -func TestDetermineStatus(t *testing.T) { - cfg := newReconcilerTestConfig(t) - - generation := int64(100) - - ownedByIstio := metav1.OwnerReference{ - APIVersion: v1alpha1.GroupVersion.String(), - Kind: v1alpha1.RemoteIstioKind, - Name: istioName, - UID: istioUID, - Controller: ptr.Of(true), - BlockOwnerDeletion: ptr.Of(true), - } - - ownedByAnotherIstio := metav1.OwnerReference{ - APIVersion: v1alpha1.GroupVersion.String(), - Kind: v1alpha1.RemoteIstioKind, - Name: "some-other-Istio", - UID: "some-other-uid", - Controller: ptr.Of(true), - BlockOwnerDeletion: ptr.Of(true), - } - - revision := func(name string, ownerRef metav1.OwnerReference, reconciled, ready, inUse bool) v1alpha1.IstioRevision { - return v1alpha1.IstioRevision{ - ObjectMeta: metav1.ObjectMeta{ - Name: name, - OwnerReferences: []metav1.OwnerReference{ownerRef}, - }, - Spec: v1alpha1.IstioRevisionSpec{Namespace: istioNamespace}, - Status: v1alpha1.IstioRevisionStatus{ - State: v1alpha1.IstioRevisionReasonHealthy, - Conditions: []v1alpha1.IstioRevisionCondition{ - {Type: v1alpha1.IstioRevisionConditionReconciled, Status: toConditionStatus(reconciled)}, - {Type: v1alpha1.IstioRevisionConditionReady, Status: toConditionStatus(ready)}, - {Type: v1alpha1.IstioRevisionConditionInUse, Status: toConditionStatus(inUse)}, - }, - }, - } - } - - testCases := []struct { - name string - reconciliationErr error - istio *v1alpha1.RemoteIstio - revisions []v1alpha1.IstioRevision - interceptorFuncs *interceptor.Funcs - wantErr bool - expectedStatus v1alpha1.RemoteIstioStatus - }{ - { - name: "reconciliation error", - reconciliationErr: fmt.Errorf("reconciliation error"), - wantErr: false, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonReconcileError, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonReconcileError, - Message: "reconciliation error", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionUnknown, - Reason: v1alpha1.RemoteIstioReasonReconcileError, - Message: "cannot determine readiness due to reconciliation error", - }, - }, - }, - }, - { - name: "mirrors status of active revision", - wantErr: false, - revisions: []v1alpha1.IstioRevision{ - { - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name, - OwnerReferences: []metav1.OwnerReference{ownedByIstio}, - }, - Spec: v1alpha1.IstioRevisionSpec{ - Namespace: istioNamespace, - }, - Status: v1alpha1.IstioRevisionStatus{ - State: v1alpha1.IstioRevisionReasonHealthy, - Conditions: []v1alpha1.IstioRevisionCondition{ - { - Type: v1alpha1.IstioRevisionConditionReconciled, - Status: metav1.ConditionTrue, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "reconciled message", - }, - { - Type: v1alpha1.IstioRevisionConditionReady, - Status: metav1.ConditionTrue, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "ready message", - }, - }, - }, - }, - { - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name + "-not-active", - OwnerReferences: []metav1.OwnerReference{ownedByIstio}, - }, - Spec: v1alpha1.IstioRevisionSpec{ - Namespace: istioNamespace, - }, - Status: v1alpha1.IstioRevisionStatus{ - State: v1alpha1.IstioRevisionReasonHealthy, - Conditions: []v1alpha1.IstioRevisionCondition{ - { - Type: v1alpha1.IstioRevisionConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "shouldn't mirror this revision", - }, - { - Type: v1alpha1.IstioRevisionConditionReady, - Status: metav1.ConditionFalse, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "shouldn't mirror this revision", - }, - }, - }, - }, - }, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonHealthy, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "reconciled message", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "ready message", - }, - }, - ActiveRevisionName: istioKey.Name, - Revisions: v1alpha1.RevisionSummary{ - Total: 2, - Ready: 1, - InUse: 0, - }, - }, - }, - { - name: "shows correct revision counts", - wantErr: false, - revisions: []v1alpha1.IstioRevision{ - // owned by the Istio under test; 3 todal, 2 ready, 1 in use - revision(istioKey.Name, ownedByIstio, true, true, true), - revision(istioKey.Name+"-old1", ownedByIstio, true, true, false), - revision(istioKey.Name+"-old2", ownedByIstio, true, false, false), - // not owned by the Istio being tested; shouldn't affect counts - revision("some-other-istio", ownedByAnotherIstio, true, true, true), - }, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonHealthy, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionTrue, - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionTrue, - }, - }, - ActiveRevisionName: istioKey.Name, - Revisions: v1alpha1.RevisionSummary{ - Total: 3, - Ready: 2, - InUse: 1, - }, - }, - }, - { - name: "active revision not found", - wantErr: false, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonRevisionNotFound, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - }, - ActiveRevisionName: istioKey.Name, - }, - }, - { - name: "get active revision error", - interceptorFuncs: &interceptor.Funcs{ - Get: func(_ context.Context, _ client.WithWatch, _ client.ObjectKey, obj client.Object, _ ...client.GetOption) error { - if _, ok := obj.(*v1alpha1.IstioRevision); ok { - return fmt.Errorf("simulated error") - } - return nil - }, - }, - wantErr: true, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonFailedToGetActiveRevision, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionUnknown, - Reason: v1alpha1.RemoteIstioReasonFailedToGetActiveRevision, - Message: "failed to get active IstioRevision: get failed: simulated error", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionUnknown, - Reason: v1alpha1.RemoteIstioReasonFailedToGetActiveRevision, - Message: "failed to get active IstioRevision: get failed: simulated error", - }, - }, - ActiveRevisionName: istioKey.Name, - Revisions: v1alpha1.RevisionSummary{}, - }, - }, - { - name: "list revisions error", - interceptorFuncs: &interceptor.Funcs{ - List: func(_ context.Context, _ client.WithWatch, list client.ObjectList, _ ...client.ListOption) error { - if _, ok := list.(*v1alpha1.IstioRevisionList); ok { - return fmt.Errorf("simulated error") - } - return nil - }, - }, - wantErr: true, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonRevisionNotFound, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - }, - ActiveRevisionName: istioKey.Name, - Revisions: v1alpha1.RevisionSummary{ - Total: -1, - Ready: -1, - InUse: -1, - }, - }, - }, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - var interceptorFuncs interceptor.Funcs - if tc.interceptorFuncs != nil { - interceptorFuncs = *tc.interceptorFuncs - } - - istio := tc.istio - if istio == nil { - istio = &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name, - UID: istioUID, - Generation: 100, - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: "my-version", - Namespace: istioNamespace, - }, - } - } - - initObjs := []client.Object{istio} - for _, rev := range tc.revisions { - rev := rev - initObjs = append(initObjs, &rev) - } - - cl := newFakeClientBuilder(). - WithObjects(initObjs...). - WithInterceptorFuncs(interceptorFuncs). - Build() - reconciler := NewReconciler(cfg, cl, scheme.Scheme) - - status, err := reconciler.determineStatus(ctx, istio, tc.reconciliationErr) - if (err != nil) != tc.wantErr { - t.Errorf("determineStatus() error = %v, wantErr %v", err, tc.wantErr) - } - - if diff := cmp.Diff(tc.expectedStatus, clearTimestamps(status)); diff != "" { - t.Errorf("returned status wasn't as expected; diff (-expected, +actual):\n%v", diff) - } - }) - } -} - -func TestUpdateStatus(t *testing.T) { - cfg := newReconcilerTestConfig(t) - - generation := int64(100) - oneMinuteAgo := testtime.OneMinuteAgo() - - testCases := []struct { - name string - reconciliationErr error - istio *v1alpha1.RemoteIstio - revisions []v1alpha1.IstioRevision - interceptorFuncs *interceptor.Funcs - disallowWrites bool - wantErr bool - expectedStatus v1alpha1.RemoteIstioStatus - - skipInterceptors bool // used internally by test implementation when it wants to get around the interceptor - }{ - { - name: "updates status even when determineStatus returns error", - interceptorFuncs: &interceptor.Funcs{ - List: func(_ context.Context, _ client.WithWatch, list client.ObjectList, _ ...client.ListOption) error { - if _, ok := list.(*v1alpha1.IstioRevisionList); ok { - return fmt.Errorf("simulated error") - } - return nil - }, - }, - wantErr: true, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonRevisionNotFound, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionFalse, - Reason: v1alpha1.RemoteIstioReasonRevisionNotFound, - Message: "active IstioRevision not found", - }, - }, - ActiveRevisionName: istioKey.Name, - Revisions: v1alpha1.RevisionSummary{ - Total: -1, - Ready: -1, - InUse: -1, - }, - }, - }, - { - name: "skips update when status unchanged", - istio: &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name, - UID: istioUID, - Generation: 100, - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: "my-version", - Namespace: istioNamespace, - }, - Status: v1alpha1.RemoteIstioStatus{ - ObservedGeneration: 100, - State: v1alpha1.RemoteIstioReasonHealthy, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "reconciled message", - LastTransitionTime: *oneMinuteAgo, - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "ready message", - LastTransitionTime: *oneMinuteAgo, - }, - }, - ActiveRevisionName: istioKey.Name, - }, - }, - revisions: []v1alpha1.IstioRevision{ - { - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name, - }, - Spec: v1alpha1.IstioRevisionSpec{ - Namespace: istioNamespace, - }, - Status: v1alpha1.IstioRevisionStatus{ - State: v1alpha1.IstioRevisionReasonHealthy, - Conditions: []v1alpha1.IstioRevisionCondition{ - { - Type: v1alpha1.IstioRevisionConditionReconciled, - Status: metav1.ConditionTrue, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "reconciled message", - LastTransitionTime: *oneMinuteAgo, - }, - { - Type: v1alpha1.IstioRevisionConditionReady, - Status: metav1.ConditionTrue, - Reason: v1alpha1.IstioRevisionReasonHealthy, - Message: "ready message", - LastTransitionTime: *oneMinuteAgo, - }, - }, - }, - }, - }, - expectedStatus: v1alpha1.RemoteIstioStatus{ - State: v1alpha1.RemoteIstioReasonHealthy, - ObservedGeneration: generation, - Conditions: []v1alpha1.RemoteIstioCondition{ - { - Type: v1alpha1.RemoteIstioConditionReconciled, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "reconciled message", - }, - { - Type: v1alpha1.RemoteIstioConditionReady, - Status: metav1.ConditionTrue, - Reason: v1alpha1.RemoteIstioReasonHealthy, - Message: "ready message", - }, - }, - ActiveRevisionName: istioKey.Name, - }, - disallowWrites: true, - wantErr: false, - }, - { - name: "returns status update error", - interceptorFuncs: &interceptor.Funcs{ - SubResourcePatch: func(_ context.Context, _ client.Client, _ string, _ client.Object, _ client.Patch, _ ...client.SubResourcePatchOption) error { - return fmt.Errorf("patch status error") - }, - }, - wantErr: true, - }, - } - - for _, tc := range testCases { - t.Run(tc.name, func(t *testing.T) { - var interceptorFuncs interceptor.Funcs - if tc.disallowWrites { - if tc.interceptorFuncs != nil { - panic("can't use disallowWrites and interceptorFuncs at the same time") - } - interceptorFuncs = noWrites(t) - } else if tc.interceptorFuncs != nil { - interceptorFuncs = *tc.interceptorFuncs - } - - istio := tc.istio - if istio == nil { - istio = &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: istioKey.Name, - UID: istioUID, - Generation: 100, - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: "my-version", - Namespace: istioNamespace, - }, - } - } - - initObjs := []client.Object{istio} - for _, rev := range tc.revisions { - rev := rev - initObjs = append(initObjs, &rev) - } - - cl := newFakeClientBuilder(). - WithObjects(initObjs...). - WithInterceptorFuncs(interceptorFuncs). - Build() - reconciler := NewReconciler(cfg, cl, scheme.Scheme) - - err := reconciler.updateStatus(ctx, istio, tc.reconciliationErr) - if (err != nil) != tc.wantErr { - t.Errorf("updateStatus() error = %v, wantErr %v", err, tc.wantErr) - } - - Must(t, cl.Get(ctx, istioKey, istio)) - if diff := cmp.Diff(tc.expectedStatus, clearTimestamps(istio.Status)); diff != "" { - t.Errorf("returned status wasn't as expected; diff (-expected, +actual):\n%v", diff) - } - }) - } -} - -func clearTimestamps(status v1alpha1.RemoteIstioStatus) v1alpha1.RemoteIstioStatus { - for i := range status.Conditions { - status.Conditions[i].LastTransitionTime = metav1.Time{} - } - return status -} - -func toConditionStatus(b bool) metav1.ConditionStatus { - if b { - return metav1.ConditionTrue - } - return metav1.ConditionFalse -} - -func TestGetActiveRevisionName(t *testing.T) { - tests := []struct { - name string - version string - updateStrategyType *v1alpha1.UpdateStrategyType - expectedRevisionName string - }{ - { - name: "No update strategy specified", - version: "1.0.0", - updateStrategyType: nil, - expectedRevisionName: "test-istio", - }, - { - name: "InPlace", - version: "1.0.0", - updateStrategyType: ptr.Of(v1alpha1.UpdateStrategyTypeInPlace), - expectedRevisionName: "test-istio", - }, - { - name: "RevisionBased v1.0.0", - version: "1.0.0", - updateStrategyType: ptr.Of(v1alpha1.UpdateStrategyTypeRevisionBased), - expectedRevisionName: "test-istio-1-0-0", - }, - { - name: "RevisionBased v2.0.0", - version: "2.0.0", - updateStrategyType: ptr.Of(v1alpha1.UpdateStrategyTypeRevisionBased), - expectedRevisionName: "test-istio-2-0-0", - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - istio := &v1alpha1.RemoteIstio{ - ObjectMeta: metav1.ObjectMeta{ - Name: "test-istio", - }, - Spec: v1alpha1.RemoteIstioSpec{ - Version: tt.version, - }, - } - if tt.updateStrategyType != nil { - istio.Spec.UpdateStrategy = &v1alpha1.IstioUpdateStrategy{ - Type: *tt.updateStrategyType, - } - } - actual := getActiveRevisionName(istio) - if actual != tt.expectedRevisionName { - t.Errorf("getActiveRevisionName() = %v, want %v", actual, tt.expectedRevisionName) - } - }) - } -} - -func newFakeClientBuilder() *fake.ClientBuilder { - return fake.NewClientBuilder(). - WithScheme(scheme.Scheme). - WithStatusSubresource(&v1alpha1.RemoteIstio{}) -} - -func TestGetPruningGracePeriod(t *testing.T) { - tests := []struct { - name string - updateStrategy *v1alpha1.IstioUpdateStrategy - expected time.Duration - }{ - { - name: "Nil update strategy", - updateStrategy: nil, - expected: v1alpha1.DefaultRevisionDeletionGracePeriodSeconds * time.Second, - }, - { - name: "Nil grace period", - updateStrategy: &v1alpha1.IstioUpdateStrategy{}, - expected: v1alpha1.DefaultRevisionDeletionGracePeriodSeconds * time.Second, - }, - { - name: "Grace period less than minimum", - updateStrategy: &v1alpha1.IstioUpdateStrategy{ - InactiveRevisionDeletionGracePeriodSeconds: ptr.Of(int64(v1alpha1.MinRevisionDeletionGracePeriodSeconds - 10)), - }, - expected: v1alpha1.MinRevisionDeletionGracePeriodSeconds * time.Second, - }, - { - name: "Grace period more than minimum", - updateStrategy: &v1alpha1.IstioUpdateStrategy{ - InactiveRevisionDeletionGracePeriodSeconds: ptr.Of(int64(v1alpha1.MinRevisionDeletionGracePeriodSeconds + 10)), - }, - expected: (v1alpha1.MinRevisionDeletionGracePeriodSeconds + 10) * time.Second, - }, - } - - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - istio := &v1alpha1.RemoteIstio{ - Spec: v1alpha1.RemoteIstioSpec{ - UpdateStrategy: tt.updateStrategy, - }, - } - got := getPruningGracePeriod(istio) - if got != tt.expected { - t.Errorf("getPruningGracePeriod() = %v, want %v", got, tt.expected) - } - }) - } -} - -func Must(t *testing.T, err error) { - t.Helper() - if err != nil { - t.Fatal(err) - } -} - -func noWrites(t *testing.T) interceptor.Funcs { - return interceptor.Funcs{ - Create: func(_ context.Context, _ client.WithWatch, _ client.Object, _ ...client.CreateOption) error { - t.Fatal("unexpected call to Create in", string(debug.Stack())) - return nil - }, - Update: func(_ context.Context, _ client.WithWatch, _ client.Object, _ ...client.UpdateOption) error { - t.Fatal("unexpected call to Update in", string(debug.Stack())) - return nil - }, - Delete: func(_ context.Context, _ client.WithWatch, _ client.Object, _ ...client.DeleteOption) error { - t.Fatal("unexpected call to Delete in", string(debug.Stack())) - return nil - }, - Patch: func(_ context.Context, _ client.WithWatch, _ client.Object, _ client.Patch, _ ...client.PatchOption) error { - t.Fatal("unexpected call to Patch in", string(debug.Stack())) - return nil - }, - DeleteAllOf: func(_ context.Context, _ client.WithWatch, _ client.Object, _ ...client.DeleteAllOfOption) error { - t.Fatal("unexpected call to DeleteAllOf in", string(debug.Stack())) - return nil - }, - SubResourceCreate: func(_ context.Context, _ client.Client, _ string, _ client.Object, _ client.Object, _ ...client.SubResourceCreateOption) error { - t.Fatal("unexpected call to SubResourceCreate in", string(debug.Stack())) - return nil - }, - SubResourceUpdate: func(_ context.Context, _ client.Client, _ string, _ client.Object, _ ...client.SubResourceUpdateOption) error { - t.Fatal("unexpected call to SubResourceUpdate in", string(debug.Stack())) - return nil - }, - SubResourcePatch: func(_ context.Context, _ client.Client, _ string, obj client.Object, _ client.Patch, _ ...client.SubResourcePatchOption) error { - t.Fatalf("unexpected call to SubResourcePatch with the object %+v: %v", obj, string(debug.Stack())) - return nil - }, - } -} - -func newReconcilerTestConfig(t *testing.T) config.ReconcilerConfig { - return config.ReconcilerConfig{ - ResourceDirectory: t.TempDir(), - Platform: config.PlatformKubernetes, - DefaultProfile: "", - } -} diff --git a/controllers/webhook/webhook_controller.go b/controllers/webhook/webhook_controller.go index fe6ef714b..142a60b44 100644 --- a/controllers/webhook/webhook_controller.go +++ b/controllers/webhook/webhook_controller.go @@ -30,6 +30,7 @@ import ( "github.com/istio-ecosystem/sail-operator/pkg/constants" "github.com/istio-ecosystem/sail-operator/pkg/enqueuelogger" "github.com/istio-ecosystem/sail-operator/pkg/reconciler" + "github.com/istio-ecosystem/sail-operator/pkg/revision" admissionv1 "k8s.io/api/admissionregistration/v1" "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" @@ -74,15 +75,21 @@ func NewReconciler(client client.Client, scheme *runtime.Scheme) *Reconciler { // For more details, check Reconcile and its Result here: // - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile func (r *Reconciler) Reconcile(ctx context.Context, webhook *admissionv1.MutatingWebhookConfiguration) (ctrl.Result, error) { + log := logf.FromContext(ctx) + isReady, err := r.probe(ctx, webhook) + reason := "" if err != nil { - isReady = false + log.V(3).Error(err, "Probe failed") + reason = err.Error() } if webhook.Annotations == nil { webhook.Annotations = make(map[string]string) } webhook.Annotations[constants.WebhookReadinessProbeStatusAnnotationKey] = strconv.FormatBool(isReady) + webhook.Annotations[constants.WebhookReadinessProbeStatusReasonAnnotationKey] = reason + err = r.Client.Update(ctx, webhook) if err != nil { return ctrl.Result{}, err @@ -91,7 +98,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, webhook *admissionv1.Mutatin } func doProbe(ctx context.Context, webhook *admissionv1.MutatingWebhookConfiguration) (bool, error) { - log := logf.FromContext(ctx).V(3) + log := logf.FromContext(ctx) if len(webhook.Webhooks) == 0 { return false, errors.New("mutatingwebhookconfiguration contains no webhooks") } @@ -129,13 +136,13 @@ func doProbe(ctx context.Context, webhook *admissionv1.MutatingWebhookConfigurat return false, err } - log.Info("Executing readiness probe on remote control plane", "url", req.URL.String()) + log.V(3).Info("Executing readiness probe on remote control plane", "url", req.URL.String()) resp, err := httpClient.Do(req) if err != nil { - log.Info("Probe failed", "error", err) + log.V(3).Info("Probe failed", "error", err) return false, err } - log.Info("Probe response", "response", resp.StatusCode) + log.V(3).Info("Probe response", "response", resp.StatusCode) return resp.StatusCode == http.StatusOK, nil } @@ -178,36 +185,37 @@ func (r *Reconciler) SetupWithManager(mgr ctrl.Manager) error { // we use the Watches function instead of For(), so that we can wrap the handler so that events that cause the object to be enqueued are logged // +lint-watches:ignore: IstioRevision (not found in charts, but this is the main resource watched by this controller) - Watches(&admissionv1.MutatingWebhookConfiguration{}, objectHandler, builder.WithPredicates(ownedByRemoteIstioPredicate(mgr.GetClient()))). + Watches(&admissionv1.MutatingWebhookConfiguration{}, objectHandler, builder.WithPredicates(ownedByRemoteIstioRevisionPredicate(mgr.GetClient()))). Named("mutatingwebhookconfiguration"). Complete(reconciler.NewStandardReconciler[*admissionv1.MutatingWebhookConfiguration](r.Client, r.Reconcile)) } -func ownedByRemoteIstioPredicate(cl client.Client) predicate.Predicate { +func ownedByRemoteIstioRevisionPredicate(cl client.Client) predicate.Predicate { return predicate.Funcs{ CreateFunc: func(e event.CreateEvent) bool { - return isOwnedByRemoteIstio(cl, e.Object) + return IsOwnedByRevisionWithRemoteControlPlane(cl, e.Object) }, UpdateFunc: func(e event.UpdateEvent) bool { - return isOwnedByRemoteIstio(cl, e.ObjectNew) + return IsOwnedByRevisionWithRemoteControlPlane(cl, e.ObjectNew) }, DeleteFunc: func(e event.DeleteEvent) bool { - return isOwnedByRemoteIstio(cl, e.Object) + return IsOwnedByRevisionWithRemoteControlPlane(cl, e.Object) }, GenericFunc: func(e event.GenericEvent) bool { - return isOwnedByRemoteIstio(cl, e.Object) + return IsOwnedByRevisionWithRemoteControlPlane(cl, e.Object) }, } } -func isOwnedByRemoteIstio(cl client.Client, obj client.Object) bool { +func IsOwnedByRevisionWithRemoteControlPlane(cl client.Client, obj client.Object) bool { for _, ownerRef := range obj.GetOwnerReferences() { if ownerRef.APIVersion == v1alpha1.GroupVersion.String() && ownerRef.Kind == v1alpha1.IstioRevisionKind { rev := &v1alpha1.IstioRevision{} err := cl.Get(context.Background(), client.ObjectKey{Name: ownerRef.Name}, rev) if err != nil { - // TODO log error - } else if rev.Spec.Type == v1alpha1.IstioRevisionTypeRemote { + return false + } + if revision.IsUsingRemoteControlPlane(rev) { return true } } diff --git a/controllers/webhook/webhook_controller_test.go b/controllers/webhook/webhook_controller_test.go index 2e2b98813..054c316cf 100644 --- a/controllers/webhook/webhook_controller_test.go +++ b/controllers/webhook/webhook_controller_test.go @@ -380,7 +380,7 @@ func TestDoProbe(t *testing.T) { } } -func TestIsOwnedByRemoteIstio(t *testing.T) { +func TestIsOwnedByRevisionWithRemoteControlPlane(t *testing.T) { tests := []struct { name string ownerRefs []metav1.OwnerReference @@ -431,7 +431,7 @@ func TestIsOwnedByRemoteIstio(t *testing.T) { expected: false, }, { - name: "IstioRevision type not remote", + name: "IstioRevision not using remote profile", ownerRefs: []metav1.OwnerReference{ { APIVersion: v1alpha1.GroupVersion.String(), @@ -444,15 +444,13 @@ func TestIsOwnedByRemoteIstio(t *testing.T) { ObjectMeta: metav1.ObjectMeta{ Name: "revision1", }, - Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, - }, + Spec: v1alpha1.IstioRevisionSpec{}, }, }, expected: false, }, { - name: "IstioRevision type is remote", + name: "IstioRevision uses remote profile", ownerRefs: []metav1.OwnerReference{ { APIVersion: v1alpha1.GroupVersion.String(), @@ -466,7 +464,9 @@ func TestIsOwnedByRemoteIstio(t *testing.T) { Name: "revision1", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeRemote, + Values: &v1alpha1.Values{ + Profile: ptr.Of("remote"), + }, }, }, }, @@ -489,7 +489,7 @@ func TestIsOwnedByRemoteIstio(t *testing.T) { }, } - result := isOwnedByRemoteIstio(cl, obj) + result := IsOwnedByRevisionWithRemoteControlPlane(cl, obj) g.Expect(result).To(Equal(tt.expected)) }) } diff --git a/docs/README.md b/docs/README.md index 367df9fe1..136954d3c 100644 --- a/docs/README.md +++ b/docs/README.md @@ -7,7 +7,6 @@ - [Istio resource](#istio-resource) - [IstioRevision resource](#istiorevision-resource) - [IstioCNI resource](#istiocni-resource) - - [RemoteIstio resource](#remoteistio-resource) - [API Reference documentation](#api-reference-documentation) - [Getting Started](#getting-started) - [Installation on OpenShift](#installation-on-openshift) @@ -107,32 +106,6 @@ spec: - kube-system ``` -### RemoteIstio resource -The `RemoteIstio` resource is used to connect the local cluster to an external Istio control plane. -When you create a `RemoteIstio` resource, the operator deploys the `istiod-remote` Helm chart. -Instead of deploying the entire Istio control plane, this chart deploys only the sidecar injector webhook, allowing you to inject the Istio proxy into your workloads and have this proxy managed by the Istio control plane running outside the cluster (typically in another Kubernetes cluster). - -The `RemoteIstio` resource is very similar to the `Istio` resource, with the most notable difference being the `istiodRemote` field in the `values` section, which allows you to configure the address of the remote Istio control plane: - -```yaml -apiVersion: sailoperator.io/v1alpha1 -kind: RemoteIstio -metadata: - name: default -spec: - version: v1.23.2 - namespace: istio-system - updateStrategy: - type: InPlace - values: - istiodRemote: - injectionPath: /inject/cluster/cluster2/net/network1 - global: - remotePilotAddress: 1.2.3.4 -``` - -For more information on how to use the `RemoteIstio` resource, refer to the [multi-cluster](#multi-cluster) section. - ## API Reference documentation The Sail Operator API reference documentation can be found [here](https://github.com/istio-ecosystem/sail-operator/tree/main/docs/api-reference/sailoperator.io.md). @@ -244,10 +217,6 @@ Sail Operator's Istio resource does not have a `spec.components` field. Instead, The CNI plugin's lifecycle is managed separately from the control plane. You will have to create a [IstioCNI resource](#istiocni-resource) to use CNI. -### istiod-remote - -The functionality of the istiod-remote chart is exposed through the [RemoteIstio resource](#remoteistio-resource). - ## Gateways [Gateways in Istio](https://istio.io/latest/docs/concepts/traffic-management/#gateways) are used to manage inbound and outbound traffic for the mesh. The Sail Operator does not deploy or manage Gateways. You can deploy a gateway either through [gateway-api](https://istio.io/latest/docs/tasks/traffic-management/ingress/gateway-api/) or through [gateway injection](https://istio.io/latest/docs/setup/additional-setup/gateway/#deploying-a-gateway). As you are following the gateway installation instructions, skip the step to install Istio since this is handled by the Sail Operator. @@ -877,17 +846,18 @@ In this setup there is a Primary cluster (`cluster1`) and a Remote cluster (`clu kubectl --context "${CTX_CLUSTER1}" apply -n istio-system -f https://raw.githubusercontent.com/istio-ecosystem/sail-operator/main/docs/multicluster/expose-services.yaml ``` -5. Create `RemoteIstio` resource on `cluster2`. +5. Create an `Istio` on `cluster2` with the `remote` profile. ```sh kubectl apply --context "${CTX_CLUSTER2}" -f - <1.0.0") + }) + + t.Run("invalid constraint", func(t *testing.T) { + defer func() { + if r := recover(); r == nil { + t.Error("Expected panic for invalid constraint") + } + }() + _ = Constraint("invalid_version") + }) +} diff --git a/resources/latest/profiles/remote.yaml b/resources/latest/profiles/remote.yaml new file mode 100644 index 000000000..fcd281aa0 --- /dev/null +++ b/resources/latest/profiles/remote.yaml @@ -0,0 +1,7 @@ +# The remote profile is used to configure a mesh cluster without a locally deployed control plane. +# Only the injector mutating webhook configuration is installed. +apiVersion: sailoperator.io/v1alpha1 +kind: Istio +spec: + values: + profile: remote diff --git a/resources/v1.21.6/profiles/remote.yaml b/resources/v1.21.6/profiles/remote.yaml new file mode 100644 index 000000000..d72fd66e4 --- /dev/null +++ b/resources/v1.21.6/profiles/remote.yaml @@ -0,0 +1,5 @@ +# The remote profile is used to configure a mesh cluster without a locally deployed control plane. +# Only the injector mutating webhook configuration is installed. +apiVersion: sailoperator.io/v1alpha1 +kind: Istio +spec: {} diff --git a/resources/v1.22.5/profiles/remote.yaml b/resources/v1.22.5/profiles/remote.yaml new file mode 100644 index 000000000..d72fd66e4 --- /dev/null +++ b/resources/v1.22.5/profiles/remote.yaml @@ -0,0 +1,5 @@ +# The remote profile is used to configure a mesh cluster without a locally deployed control plane. +# Only the injector mutating webhook configuration is installed. +apiVersion: sailoperator.io/v1alpha1 +kind: Istio +spec: {} diff --git a/resources/v1.23.2/profiles/remote.yaml b/resources/v1.23.2/profiles/remote.yaml new file mode 100644 index 000000000..d72fd66e4 --- /dev/null +++ b/resources/v1.23.2/profiles/remote.yaml @@ -0,0 +1,5 @@ +# The remote profile is used to configure a mesh cluster without a locally deployed control plane. +# Only the injector mutating webhook configuration is installed. +apiVersion: sailoperator.io/v1alpha1 +kind: Istio +spec: {} diff --git a/tests/e2e/multicluster/multicluster_primaryremote_test.go b/tests/e2e/multicluster/multicluster_primaryremote_test.go index 7ff6db158..92182f20f 100644 --- a/tests/e2e/multicluster/multicluster_primaryremote_test.go +++ b/tests/e2e/multicluster/multicluster_primaryremote_test.go @@ -25,6 +25,7 @@ import ( "github.com/istio-ecosystem/sail-operator/pkg/kube" . "github.com/istio-ecosystem/sail-operator/pkg/test/util/ginkgo" "github.com/istio-ecosystem/sail-operator/pkg/test/util/supportedversion" + "github.com/istio-ecosystem/sail-operator/pkg/version" "github.com/istio-ecosystem/sail-operator/tests/e2e/util/certs" "github.com/istio-ecosystem/sail-operator/tests/e2e/util/common" . "github.com/istio-ecosystem/sail-operator/tests/e2e/util/gomega" @@ -68,14 +69,14 @@ var _ = Describe("Multicluster deployment models", Ordered, func() { Describe("Primary-Remote - Multi-Network configuration", func() { // Test the Primary-Remote - Multi-Network configuration for each supported Istio version - for _, version := range supportedversion.List { - // The Primary-Remote - Multi-Network configuration is only supported in Istio 1.23, because that's the only - // version that has the istiod-remote chart. For 1.24, we need to rewrite the support for RemoteIstio. - if !(version.Version.Major() == 1 && version.Version.Minor() == 23) { + for _, v := range supportedversion.List { + // The Primary-Remote - Multi-Network configuration is only supported in Istio 1.24+. + if version.Constraint("<1.24").Check(v.Version) { + Log(fmt.Sprintf("Skipping test, because Istio version %s does not support Primary-Remote Multi-Network configuration", v.Version)) continue } - Context(fmt.Sprintf("Istio version %s", version.Version), func() { + Context(fmt.Sprintf("Istio version %s", v.Version), func() { When("Istio resources are created in both clusters", func() { BeforeAll(func(ctx SpecContext) { Expect(k1.CreateNamespace(controlPlaneNamespace)).To(Succeed(), "Namespace failed to be created") @@ -115,7 +116,7 @@ spec: multiCluster: clusterName: %s network: %s` - multiclusterPrimaryYAML := fmt.Sprintf(PrimaryYAML, version.Name, controlPlaneNamespace, "mesh1", "cluster1", "network1") + multiclusterPrimaryYAML := fmt.Sprintf(PrimaryYAML, v.Name, controlPlaneNamespace, "mesh1", "cluster1", "network1") Log("Istio CR Primary: ", multiclusterPrimaryYAML) Expect(k1.CreateFromString(multiclusterPrimaryYAML)).To(Succeed(), "Istio Resource creation failed on Primary Cluster") }) @@ -131,7 +132,7 @@ spec: Eventually(common.GetObject). WithArguments(ctx, clPrimary, kube.Key("istiod", controlPlaneNamespace), &appsv1.Deployment{}). Should(HaveCondition(appsv1.DeploymentAvailable, metav1.ConditionTrue), "Istiod is not Available on Primary; unexpected Condition") - Expect(common.GetVersionFromIstiod()).To(Equal(version.Version), "Unexpected istiod version") + Expect(common.GetVersionFromIstiod()).To(Equal(v.Version), "Unexpected istiod version") Success("Istiod is deployed in the namespace and Running on Primary Cluster") }) }) @@ -154,17 +155,18 @@ spec: }) }) - When("RemoteIstio is created in Remote cluster", func() { + When("Istio is created in Remote cluster", func() { BeforeAll(func(ctx SpecContext) { - RemoteYAML := ` + istioYAMLTemplate := ` apiVersion: sailoperator.io/v1alpha1 -kind: RemoteIstio +kind: Istio metadata: name: default spec: version: %s namespace: istio-system values: + profile: remote istiodRemote: injectionPath: /inject/cluster/remote/net/network2 global: @@ -173,10 +175,10 @@ spec: remotePilotAddress, err := common.GetSVCLoadBalancerAddress(ctx, clPrimary, controlPlaneNamespace, "istio-eastwestgateway") Expect(remotePilotAddress).NotTo(BeEmpty(), "Remote Pilot Address is empty") Expect(err).NotTo(HaveOccurred(), "Error getting Remote Pilot Address") - remoteIstioYAML := fmt.Sprintf(RemoteYAML, version.Name, remotePilotAddress) - Log("RemoteIstio CR: ", remoteIstioYAML) - By("Creating RemoteIstio CR on Remote Cluster") - Expect(k2.CreateFromString(remoteIstioYAML)).To(Succeed(), "RemoteIstio Resource creation failed on Remote Cluster") + istioYAML := fmt.Sprintf(istioYAMLTemplate, v.Name, remotePilotAddress) + Log("Istio CR: ", istioYAML) + By("Creating Istio CR on Remote Cluster") + Expect(k2.CreateFromString(istioYAML)).To(Succeed(), "Istio Resource creation failed on Remote Cluster") // Set the controlplane cluster and network for Remote namespace By("Patching the istio-system namespace on Remote Cluster") @@ -196,13 +198,13 @@ spec: To(Succeed(), "Error patching istio-system namespace") // To be able to access the remote cluster from the primary cluster, we need to create a secret in the primary cluster - // RemoteIstio resource will not be Ready until the secret is created + // Remote Istio resource will not be Ready until the secret is created // Get the internal IP of the control plane node in Remote cluster internalIPRemote, err := k2.GetInternalIP("node-role.kubernetes.io/control-plane") Expect(internalIPRemote).NotTo(BeEmpty(), "Internal IP is empty for Remote Cluster") Expect(err).NotTo(HaveOccurred()) - // Wait for the RemoteIstio CR to be created, this can be moved to a condition verification, but the resource it not will be Ready at this point + // Wait for the remote Istio CR to be created, this can be moved to a condition verification, but the resource it not will be Ready at this point time.Sleep(5 * time.Second) // Install a remote secret in Primary cluster that provides access to the Remote cluster API server. @@ -219,11 +221,11 @@ spec: Success("Remote secret is created in Primary cluster") }) - It("updates RemoteIstio CR status to Ready", func(ctx SpecContext) { + It("updates remote Istio CR status to Ready", func(ctx SpecContext) { Eventually(common.GetObject). - WithArguments(ctx, clRemote, kube.Key(istioName), &v1alpha1.RemoteIstio{}). + WithArguments(ctx, clRemote, kube.Key(istioName), &v1alpha1.Istio{}). Should(HaveCondition(v1alpha1.IstioConditionReady, metav1.ConditionTrue), "Istio is not Ready on Remote; unexpected Condition") - Success("RemoteIstio CR is Ready on Remote Cluster") + Success("Istio CR is Ready on Remote Cluster") }) }) @@ -244,7 +246,7 @@ spec: When("sample apps are deployed in both clusters", func() { BeforeAll(func(ctx SpecContext) { // Deploy the sample app in both clusters - deploySampleApp("sample", version) + deploySampleApp("sample", v) Success("Sample app is deployed in both clusters") }) @@ -279,11 +281,11 @@ spec: }) }) - When("Istio CR and RemoteIstio CR are deleted in both clusters", func() { + When("Istio CR is deleted in both clusters", func() { BeforeEach(func() { - Expect(k1.WithNamespace(controlPlaneNamespace).Delete("istio", istioName)).To(Succeed(), "Istio CR failed to be deleted") - Expect(k2.WithNamespace(controlPlaneNamespace).Delete("remoteistio", istioName)).To(Succeed(), "RemoteIstio CR failed to be deleted") - Success("Istio and RemoteIstio are deleted") + Expect(k1.WithNamespace(controlPlaneNamespace).Delete("istio", istioName)).To(Succeed(), "primary Istio CR failed to be deleted") + Expect(k2.WithNamespace(controlPlaneNamespace).Delete("istio", istioName)).To(Succeed(), "remote Istio CR failed to be deleted") + Success("Primary and Remote Istio resources are deleted") }) It("removes istiod on Primary", func(ctx SpecContext) { @@ -313,6 +315,10 @@ spec: Expect(k1.WaitNamespaceDeleted("sample")).To(Succeed()) Expect(k2.WaitNamespaceDeleted("sample")).To(Succeed()) Success("Sample app is deleted in both clusters") + + // Delete the resources created by istioctl create-remote-secret + Expect(k2.Delete("ClusterRoleBinding", "istiod-clusterrole-istio-system")).To(Succeed()) + Expect(k2.Delete("ClusterRole", "istiod-clusterrole-istio-system")).To(Succeed()) }) }) } diff --git a/tests/integration/api/istio_test.go b/tests/integration/api/istio_test.go index d939f9cd3..ce7254443 100644 --- a/tests/integration/api/istio_test.go +++ b/tests/integration/api/istio_test.go @@ -137,7 +137,6 @@ var _ = Describe("Istio resource", Ordered, func() { }).Should(Succeed()) Expect(rev.Spec).To(Equal(v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: istio.Spec.Version, Namespace: istio.Spec.Namespace, Values: &v1alpha1.Values{ @@ -174,7 +173,6 @@ var _ = Describe("Istio resource", Ordered, func() { Eventually(k8sClient.Get).WithArguments(ctx, revKey, rev).Should(Succeed()) Expect(rev.GetOwnerReferences()).To(ContainElement(NewOwnerReference(istio))) Expect(rev.Spec).To(Equal(v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: istio.Spec.Version, Namespace: istio.Spec.Namespace, Values: &v1alpha1.Values{ diff --git a/tests/integration/api/istiorevision_test.go b/tests/integration/api/istiorevision_test.go index 9b17e63ca..5ceeed326 100644 --- a/tests/integration/api/istiorevision_test.go +++ b/tests/integration/api/istiorevision_test.go @@ -98,7 +98,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: revName, }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ @@ -118,7 +117,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: revName, }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ @@ -138,7 +136,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ @@ -158,7 +155,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: "default", }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ @@ -182,7 +178,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: revName, }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: nsName, Values: &v1alpha1.Values{ @@ -249,7 +244,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: revName, }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ @@ -440,7 +434,6 @@ var _ = Describe("IstioRevision resource", Ordered, func() { Name: rev2Key.Name, }, Spec: v1alpha1.IstioRevisionSpec{ - Type: v1alpha1.IstioRevisionTypeLocal, Version: supportedversion.Default, Namespace: istioNamespace, Values: &v1alpha1.Values{ diff --git a/tests/integration/api/suite_test.go b/tests/integration/api/suite_test.go index f7cd9e7f4..662b9ea80 100644 --- a/tests/integration/api/suite_test.go +++ b/tests/integration/api/suite_test.go @@ -24,7 +24,6 @@ import ( "github.com/istio-ecosystem/sail-operator/controllers/istio" "github.com/istio-ecosystem/sail-operator/controllers/istiocni" "github.com/istio-ecosystem/sail-operator/controllers/istiorevision" - "github.com/istio-ecosystem/sail-operator/controllers/remoteistio" "github.com/istio-ecosystem/sail-operator/pkg/config" "github.com/istio-ecosystem/sail-operator/pkg/helm" "github.com/istio-ecosystem/sail-operator/pkg/scheme" @@ -83,7 +82,6 @@ var _ = BeforeSuite(func() { cl := mgr.GetClient() scheme := mgr.GetScheme() Expect(istio.NewReconciler(cfg, cl, scheme).SetupWithManager(mgr)).To(Succeed()) - Expect(remoteistio.NewReconciler(cfg, cl, scheme).SetupWithManager(mgr)).To(Succeed()) Expect(istiorevision.NewReconciler(cfg, cl, scheme, chartManager).SetupWithManager(mgr)).To(Succeed()) Expect(istiocni.NewReconciler(cfg, cl, scheme, chartManager).SetupWithManager(mgr)).To(Succeed()) From 0fa4f240316082a090f45d1152d68e00c4ffcd85 Mon Sep 17 00:00:00 2001 From: Sridhar Gaddam Date: Wed, 6 Nov 2024 00:14:42 +0530 Subject: [PATCH 4/4] Minor updates to Gateway docs (#466) This PR makes the following updates: 1. Updates the link to the gateway deployment to use istio.io instead of preliminary.istio.io 2. Removes the namespace reference to align with the recommendation that the gateway should be deployed in the same namespace as the application. Signed-off-by: Sridhar Gaddam --- docs/common/create-and-configure-gateways.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/common/create-and-configure-gateways.md b/docs/common/create-and-configure-gateways.md index 29e35bd75..c3db3523d 100644 --- a/docs/common/create-and-configure-gateways.md +++ b/docs/common/create-and-configure-gateways.md @@ -13,7 +13,7 @@ You can deploy gateways using either the Gateway API or Gateway Injection method Gateway Injection uses the same mechanisms as Istio sidecar injection to create a gateway from a `Deployment` resource that is paired with a `Service` resource that can be made accessible from outside the cluster. For more information, see -[Installing Gateways](https://preliminary.istio.io/latest/docs/setup/additional-setup/gateway/#deploying-a-gateway). +[Installing Gateways](https://istio.io/latest/docs/setup/additional-setup/gateway/#deploying-a-gateway). To configure gateway injection with the `bookinfo` application, we have provided a [sample gateway configuration](../../chart/samples/ingress-gateway.yaml?raw=1) that should be applied in the namespace @@ -22,7 +22,7 @@ where the application is installed: 1. Create the `istio-ingressgateway` deployment and service: ```sh - $ oc apply -f -n ingress-gateway.yaml + $ oc apply -f ingress-gateway.yaml ``` 2. Configure the `bookinfo` application with the new gateway: