如何为集群设置地域

TIP

通常,公有云集群自带地域属性。本文档说明如何为平台上的自建集群或接入平台的私有部署集群设置地域属性。

  • 如果您需要为即将添加到 mesh 的 cluster 设置地域,请参阅 为集群设置地域

  • 如果您需要为已添加到 mesh 的 cluster 设置地域,请按以下步骤操作:

    1. 执行 为集群设置地域

    2. 登录到集群的任一控制节点,并执行以下命令以重启部署在集群中的 Istiod 组件:

      # If the version number of Istiod is 1.18, the default name of the Istiod Deployment is “istiod-1-18”; Istiod is deployed in the istio-system namespace by default.
      kubectl rollout restart deployment <Istiod Deployment Name> --namespace=<Istiod Namespace>
    3. 执行以下命令以重启集群中所有已注入 Sidecar 的服务:

      kubectl rollout restart deployment <Service Deployment Name> --namespace=<Service Namespace>