mirror of https://github.com/istio/istio.io.git
parent
cb70a40db3
commit
3e864baa36
|
@ -351,7 +351,7 @@ and installing the sidecar injector webhook configuration on the remote cluster
|
|||
1. Apply the Istio configuration on the external cluster:
|
||||
|
||||
{{< text bash >}}
|
||||
$ istioctl manifest generate -f external-istiod.yaml | kubectl apply --context="${CTX_EXTERNAL_CLUSTER}" -f -
|
||||
$ istioctl install -f external-istiod.yaml --context="${CTX_EXTERNAL_CLUSTER}"
|
||||
{{< /text >}}
|
||||
|
||||
1. Confirm that the external istiod has been successfully deployed:
|
||||
|
|
|
@ -215,7 +215,7 @@ sed -i'.bk' \
|
|||
}
|
||||
|
||||
snip_set_up_the_control_plane_in_the_external_cluster_5() {
|
||||
istioctl manifest generate -f external-istiod.yaml | kubectl apply --context="${CTX_EXTERNAL_CLUSTER}" -f -
|
||||
istioctl install -f external-istiod.yaml --context="${CTX_EXTERNAL_CLUSTER}"
|
||||
}
|
||||
|
||||
snip_set_up_the_control_plane_in_the_external_cluster_6() {
|
||||
|
|
|
@ -22,8 +22,11 @@ set -u
|
|||
set -o pipefail
|
||||
|
||||
kubectl_get_egress_gateway_for_remote_cluster() {
|
||||
response=$(kubectl get pod -l app=istio-egressgateway -n external-istiod --context="${CTX_REMOTE_CLUSTER}" -o jsonpath="{.items[*].status.phase}")
|
||||
echo "$response"
|
||||
kubectl get pod -l app=istio-egressgateway -n external-istiod --context="${CTX_REMOTE_CLUSTER}" -o jsonpath="{.items[*].status.phase}"
|
||||
}
|
||||
|
||||
kubectl_get_external_cluster_webhooks() {
|
||||
kubectl get mutatingwebhookconfiguration --context="${CTX_EXTERNAL_CLUSTER}"
|
||||
}
|
||||
|
||||
# Set the CTX_EXTERNAL_CLUSTER, CTX_REMOTE_CLUSTER, and REMOTE_CLUSTER_NAME env variables.
|
||||
|
@ -65,6 +68,8 @@ snip_set_up_the_control_plane_in_the_external_cluster_4
|
|||
|
||||
echo y | snip_set_up_the_control_plane_in_the_external_cluster_5
|
||||
|
||||
_verify_not_contains kubectl_get_external_cluster_webhooks "external-istiod" # external istiod install should not affect local webhooks
|
||||
|
||||
_verify_like snip_set_up_the_control_plane_in_the_external_cluster_6 "$snip_set_up_the_control_plane_in_the_external_cluster_6_out"
|
||||
|
||||
snip_get_external_istiod_gateway_config
|
||||
|
|
Loading…
Reference in New Issue