Clarify env variable values (#8677)

* Clarify env variable values

* regen

* also update MC doc
This commit is contained in:
Frank Budinsky 2020-12-16 16:58:58 -05:00 committed by GitHub
parent 8137dcacd7
commit 7107324d0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 23 deletions

View File

@ -62,10 +62,10 @@ Variable | Description
Set the `CTX_EXTERNAL_CLUSTER`, `CTX_REMOTE_CLUSTER`, and `REMOTE_CLUSTER_NAME` now. You will set the others later.
{{< text bash >}}
$ export CTX_EXTERNAL_CLUSTER=external_cluster
$ export CTX_REMOTE_CLUSTER=remote_cluster
$ export REMOTE_CLUSTER_NAME=remote_cluster
{{< text syntax=bash snip_id=none >}}
$ export CTX_EXTERNAL_CLUSTER=<your external cluster context>
$ export CTX_REMOTE_CLUSTER=<your remote cluster context>
$ export REMOTE_CLUSTER_NAME=<your remote cluster name>
{{< /text >}}
## Cluster configuration
@ -110,9 +110,9 @@ You may notice an istiod deployment created in the `istio-system` namespace. Thi
Configure your environment to expose the Istio ingress gateway service using a public hostname with TLS. Set the `EXTERNAL_ISTIOD_ADDR` environment variable to the hostname and `SSL_SECRET_NAME` environment variable to the secret that holds the TLS certs:
{{< text bash >}}
$ export EXTERNAL_ISTIOD_ADDR=myexternal-istiod.cloud.com
$ export SSL_SECRET_NAME=myexternal-istiod-secret
{{< text syntax=bash snip_id=none >}}
$ export EXTERNAL_ISTIOD_ADDR=<your external istiod host>
$ export SSL_SECRET_NAME=<your external istiod secret>
{{< /text >}}
Create the Istio `Gateway`, `VirtualService`, and `DestinationRule` configuration for the **yet to be installed** external

View File

@ -20,12 +20,6 @@
# docs/setup/additional-setup/external-controlplane/index.md
####################################################################################################
snip_environment_variables_1() {
export CTX_EXTERNAL_CLUSTER=external_cluster
export CTX_REMOTE_CLUSTER=remote_cluster
export REMOTE_CLUSTER_NAME=remote_cluster
}
snip_set_up_a_gateway_in_the_external_cluster_1() {
cat <<EOF > controlplane-gateway.yaml
apiVersion: install.istio.io/v1alpha1
@ -56,11 +50,6 @@ snip_set_up_a_gateway_in_the_external_cluster_2() {
istioctl install -f controlplane-gateway.yaml --context="${CTX_EXTERNAL_CLUSTER}"
}
snip_set_up_a_gateway_in_the_external_cluster_3() {
export EXTERNAL_ISTIOD_ADDR=myexternal-istiod.cloud.com
export SSL_SECRET_NAME=myexternal-istiod-secret
}
snip_set_up_a_gateway_in_the_external_cluster_4() {
cat <<EOF > external-istiod-gw.yaml
apiVersion: networking.istio.io/v1beta1

View File

@ -32,7 +32,7 @@ to enable access to the API Server.
## Environment Variables
This guide will refer to two clusters named `cluster1` and `cluster2`. The following
This guide will refer to two clusters: `cluster1` and `cluster2`. The following
environment variables will be used throughout to simplify the instructions:
Variable | Description
@ -40,11 +40,11 @@ Variable | Description
`CTX_CLUSTER1` | The context name in the default [Kubernetes configuration file](https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/) used for accessing the `cluster1` cluster.
`CTX_CLUSTER2` | The context name in the default [Kubernetes configuration file](https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/) used for accessing the `cluster2` cluster.
For example:
Set the two variables before proceeding:
{{< text bash >}}
$ export CTX_CLUSTER1=cluster1
$ export CTX_CLUSTER2=cluster2
{{< text syntax=bash snip_id=none >}}
$ export CTX_CLUSTER1=<your cluster1 context>
$ export CTX_CLUSTER2=<your cluster2 context>
{{< /text >}}
## Configure Trust