@@ -217,15 +217,16 @@ Webhook、ConfigMap 和 Secret,以便使用外部控制平面。
217
217
218
218
{{< text bash >}}
219
219
$ kubectl create namespace external-istiod --context="${CTX_REMOTE_CLUSTER}"
220
- $ istioctl manifest generate -f remote-config-cluster.yaml --set values.defaultRevision=default | kubectl apply --context="${CTX_REMOTE_CLUSTER}" -f -
220
+ $ istioctl install -f remote-config-cluster.yaml --set values.defaultRevision=default --context="${CTX_REMOTE_CLUSTER}"
221
221
{{< /text >}}
222
222
223
223
1 . 确认从集群的注入 Webhook 配置已经安装:
224
224
225
225
{{< text bash >}}
226
226
$ kubectl get mutatingwebhookconfiguration --context="${CTX_REMOTE_CLUSTER}"
227
- NAME WEBHOOKS AGE
228
- istio-sidecar-injector-external-istiod 4 6m24s
227
+ NAME WEBHOOKS AGE
228
+ istio-revision-tag-default-external-istiod 4 2m2s
229
+ istio-sidecar-injector-external-istiod 4 2m5s
229
230
{{< /text >}}
230
231
231
232
1 . 确认已安装从集群的验证 Webhook 配置:
@@ -754,7 +755,7 @@ $ export SECOND_CLUSTER_NAME=<您的第二个从集群名称>
754
755
1 . 在从集群上安装配置:
755
756
756
757
{{< text bash >}}
757
- $ istioctl manifest generate -f second-remote-cluster.yaml | kubectl apply --context="${CTX_SECOND_CLUSTER}" -f -
758
+ $ istioctl install -f second-remote-cluster.yaml --context="${CTX_SECOND_CLUSTER}"
758
759
{{< /text >}}
759
760
760
761
1 . 确认从集群的注入 Webhook 配置已经安装:
@@ -872,7 +873,7 @@ $ export SECOND_CLUSTER_NAME=<您的第二个从集群名称>
872
873
873
874
{{< text bash >}}
874
875
$ kubectl delete -f external-istiod-gw.yaml --context="${CTX_EXTERNAL_CLUSTER}"
875
- $ istioctl uninstall -y --purge --context="${CTX_EXTERNAL_CLUSTER}"
876
+ $ istioctl uninstall -y --purge -f external-istiod.yaml - -context="${CTX_EXTERNAL_CLUSTER}"
876
877
$ kubectl delete ns istio-system external-istiod --context="${CTX_EXTERNAL_CLUSTER}"
877
878
$ rm controlplane-gateway.yaml external-istiod.yaml external-istiod-gw.yaml
878
879
{{< /text >}}
@@ -881,7 +882,7 @@ $ rm controlplane-gateway.yaml external-istiod.yaml external-istiod-gw.yaml
881
882
882
883
{{< text bash >}}
883
884
$ kubectl delete ns sample --context="${CTX_REMOTE_CLUSTER}"
884
- $ istioctl manifest generate - f remote-config-cluster.yaml --set values.defaultRevision=default | kubectl delete --context="${CTX_REMOTE_CLUSTER}" -f -
885
+ $ istioctl uninstall -y --purge - f remote-config-cluster.yaml --set values.defaultRevision=default --context="${CTX_REMOTE_CLUSTER}"
885
886
$ kubectl delete ns external-istiod --context="${CTX_REMOTE_CLUSTER}"
886
887
$ rm remote-config-cluster.yaml istio-ingressgateway.yaml
887
888
$ rm istio-egressgateway.yaml eastwest-gateway-1.yaml || true
@@ -891,7 +892,7 @@ $ rm istio-egressgateway.yaml eastwest-gateway-1.yaml || true
891
892
892
893
{{< text bash >}}
893
894
$ kubectl delete ns sample --context="${CTX_SECOND_CLUSTER}"
894
- $ istioctl manifest generate - f second-remote-cluster.yaml | kubectl delete --context="${CTX_SECOND_CLUSTER}" -f -
895
+ $ istioctl uninstall -y --purge - f second-remote-cluster.yaml --context="${CTX_SECOND_CLUSTER}"
895
896
$ kubectl delete ns external-istiod --context="${CTX_SECOND_CLUSTER}"
896
897
$ rm second-remote-cluster.yaml eastwest-gateway-2.yaml
897
898
{{< /text >}}
0 commit comments