如何为集群设置地域

TIP

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

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

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

    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>