mirror of https://github.com/istio/istio.io.git
update mirrioing-index content (#2495)
* update content * update content
This commit is contained in:
parent
43f9e070d9
commit
fddfc08f68
|
|
@ -119,6 +119,8 @@ keywords: [流量管理,镜像]
|
||||||
|
|
||||||
1. 创建一个默认路由规则,将所有流量路由到服务的 `v1` :
|
1. 创建一个默认路由规则,将所有流量路由到服务的 `v1` :
|
||||||
|
|
||||||
|
> 如果你已安装/配置 Istio,启用了双向 TLS 认证,在应用前必须将 TLS 流量策略 `mode: ISTIO_MUTUAL` 添加到 `DestinationRule`。否则,请求将发生 503 错误,[规则配置导致的 503 错误描述,请参阅](/zh/help/ops/traffic-management/deploy-guidelines/#重新配置服务路由时出现-503-错误)。
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ cat <<EOF | istioctl create -f -
|
$ cat <<EOF | istioctl create -f -
|
||||||
apiVersion: networking.istio.io/v1alpha3
|
apiVersion: networking.istio.io/v1alpha3
|
||||||
|
|
@ -151,8 +153,6 @@ keywords: [流量管理,镜像]
|
||||||
EOF
|
EOF
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
> 注意:如果您已经安装/配置 Istio 并启用 TLS 双向认证,您必须增加 [TLSSettings.TLSmode](/docs/reference/config/istio.networking.v1alpha3/#TLSSettings-TLSmode), `mode: ISTIO_MUTUAL` 。如 [TLSSettings](/docs/reference/config/istio.networking.v1alpha3/#TLSSettings) 参考中所述。
|
|
||||||
|
|
||||||
现在所有流量已经都转到 `httpbin v1` 服务。
|
现在所有流量已经都转到 `httpbin v1` 服务。
|
||||||
|
|
||||||
1. 向服务发送一些流量:
|
1. 向服务发送一些流量:
|
||||||
|
|
@ -238,19 +238,18 @@ keywords: [流量管理,镜像]
|
||||||
|
|
||||||
## 清理
|
## 清理
|
||||||
|
|
||||||
1. 删除规则:
|
1. 删除规则:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ istioctl delete virtualservice httpbin
|
$ istioctl delete virtualservice httpbin
|
||||||
$ istioctl delete destinationrule httpbin
|
$ istioctl delete destinationrule httpbin
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
1. 关闭 [httpbin]({{< github_tree >}}/samples/httpbin) 服务和客户端:
|
1. 关闭 [httpbin]({{< github_tree >}}/samples/httpbin) 服务和客户端:
|
||||||
|
|
||||||
{{< text bash >}}
|
{{< text bash >}}
|
||||||
$ kubectl delete deploy httpbin-v1 httpbin-v2 sleep
|
$ kubectl delete deploy httpbin-v1 httpbin-v2 sleep
|
||||||
$ kubectl delete svc httpbin
|
$ kubectl delete svc httpbin
|
||||||
{{< /text >}}
|
{{< /text >}}
|
||||||
|
|
||||||
1. 如果您不打算探索任何后续任务,请参阅
|
1. 如果您不打算探索任何后续任务,请参阅 [Bookinfo 清理](/zh/docs/examples/bookinfo/#清理) 的说明去关闭应用程序。
|
||||||
[Bookinfo 清理](/zh/docs/examples/bookinfo/#清理) 的说明去关闭应用程序。
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue