Replace usage of meshExpansion flag with istiod gateway code sample (#7869)

* Replace usage of meshExpansion flag with istiod gateway code sample

As part of https://github.com/istio/istio/issues/25933

* Update content/en/docs/setup/install/virtual-machine/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/setup/install/virtual-machine/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

* Update content/en/docs/setup/install/multicluster/shared/index.md

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>

Co-authored-by: Frank Budinsky <frankb@ca.ibm.com>
This commit is contained in:
Taylor Barrella 2020-08-24 14:53:55 -07:00 committed by GitHub
parent e050591d55
commit ed20b3745f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 18 deletions

View File

@ -154,10 +154,6 @@ spec:
gateways:
- registry_service_name: istio-ingressgateway.istio-system.svc.cluster.local
port: 443
# Use the existing istio-ingressgateway.
meshExpansion:
enabled: true
EOF
{{< /text >}}
@ -216,6 +212,12 @@ Apply the primary cluster's configuration.
$ istioctl install -f istio-main-cluster.yaml --context=${MAIN_CLUSTER_CTX}
{{< /text >}}
If you selected the `istio-ingressgateway` option, expose the control plane using the provided sample configuration.
{{< text bash >}}
$ kubectl apply -f @samples/istiod-gateway/istiod-gateway.yaml@
{{< /text >}}
Wait for the control plane to be ready before proceeding.
{{< text bash >}}
@ -533,6 +535,7 @@ $ rm istio-remote0-cluster.yaml
To uninstall the primary cluster, run the following command:
{{< text bash >}}
$ kubectl delete --ignore-not-found=true -f @samples/istiod-gateway/istiod-gateway.yaml@
$ istioctl manifest generate -f istio-main-cluster.yaml --context=${MAIN_CLUSTER_CTX} | \
kubectl delete -f - --context=${MAIN_CLUSTER_CTX}
$ kubectl delete namespace sample --context=${MAIN_CLUSTER_CTX}

View File

@ -46,26 +46,18 @@ and `SERVICE_ACCOUNT`
## Install the Istio control plane
Install Istio with the installation setting `values.global.meshExpansion.enabled: true`.
Install Istio and expose the control plane so that your virtual machine can access it.
1. Create the `IstioOperator` custom resource:
1. Install Istio.
{{< text bash >}}
$ cat <<EOF> "${WORK_DIR}"/vmintegration.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
values:
global:
meshExpansion:
enabled: true
EOF
$ istioctl install
{{< /text >}}
1. Install or upgrade Istio with virtual machine integration features enabled.
1. Expose the control plane using the provided sample configuration.
{{< text bash >}}
$ istioctl install -f "${WORK_DIR}"/vmintegration.yaml
$ kubectl apply -f @samples/istiod-gateway/istiod-gateway.yaml@
{{< /text >}}
## Configure the VM namespace
@ -257,7 +249,8 @@ Then, remove the Istio-sidecar package:
To uninstall Istio, run the following command:
{{< text bash >}}
$ istioctl manifest generate -f "${WORK_DIR}"/vmintegration.yaml | kubectl delete -f -
$ kubectl delete -f @samples/istiod-gateway/istiod-gateway.yaml@
$ istioctl manifest generate | kubectl delete -f -
{{< /text >}}
The control plane namespace (e.g., `istio-system`) is not removed by default.