From ca466baecd589ee6efdc6e3955701856b38eb256 Mon Sep 17 00:00:00 2001 From: Wilson Wu Date: Tue, 8 Apr 2025 17:06:46 +0800 Subject: [PATCH] Sync #15828 clusterLocal docs to allow for exceptions when using wide clusterLocal configs into Chinese (#16381) --- .../traffic-management/multicluster/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/content/zh/docs/ops/configuration/traffic-management/multicluster/index.md b/content/zh/docs/ops/configuration/traffic-management/multicluster/index.md index febd6c959d..b4f67f7715 100644 --- a/content/zh/docs/ops/configuration/traffic-management/multicluster/index.md +++ b/content/zh/docs/ops/configuration/traffic-management/multicluster/index.md @@ -62,6 +62,21 @@ serviceSettings: {{< /tabset >}} +您还可以通过设置全局集群本地规则并添加显式例外(可以是特定例外或通配符)来细化服务访问。 +在以下示例中,集群中的所有服务都将保持集群本地,但 `myns` 命名空间中的任何服务除外: + +{{< text yaml >}} +serviceSettings: +- settings: + clusterLocal: true + hosts: + - "*" +- settings: + clusterLocal: false + hosts: + - "*.myns.svc.cluster.local" +{{< /text >}} + ## 分区服务 {#partitioning-services} [`DestinationRule.subsets`](/zh/docs/reference/config/networking/destination-rule/#Subset)