diff --git a/content/zh/docs/multicluster-management/import-cloud-hosted-k8s/import-aliyun-ack.md b/content/zh/docs/multicluster-management/import-cloud-hosted-k8s/import-aliyun-ack.md index 2f9aab9fb..6190bf450 100644 --- a/content/zh/docs/multicluster-management/import-cloud-hosted-k8s/import-aliyun-ack.md +++ b/content/zh/docs/multicluster-management/import-cloud-hosted-k8s/import-aliyun-ack.md @@ -1,45 +1,45 @@ --- -title: "Import an Aliyun ACK Cluster" -keywords: 'Kubernetes, KubeSphere, multicluster, Aliyun ACK' -description: 'How to import an Aliyun ACK Cluster' -titleLink: "Import an Aliyun ACK Cluster" +title: "导入阿里云 ACK 集群" +keywords: 'Kubernetes, KubeSphere, 多集群, 阿里云 ACK' +description: '如何导入阿里云 ACK 集群' +titleLink: "导入阿里云 ACK 集群" weight: 5310 --- -This tutorial demonstrates how to import an Aliyun ACK cluster through the [direct connection](../../../multicluster-management/enable-multicluster/direct-connection/) method. If you want to use the agent connection method, refer to [Agent Connection](../../../multicluster-management/enable-multicluster/agent-connection/). +本教程演示如何使用[直接连接](../../../multicluster-management/enable-multicluster/direct-connection/)方法导入阿里云 ACK 集群。如果您想使用代理连接方法,请参考[代理连接](../../../multicluster-management/enable-multicluster/agent-connection/)。 -## Prerequisites +## 准备工作 -- You have a Kubernetes cluster with KubeSphere installed, and prepared this cluster as the Host Cluster. For more information about how to prepare a Host Cluster, refer to [Prepare a Host Cluster](../../../multicluster-management/enable-multicluster/direct-connection/#prepare-a-host-cluster). -- You have an ACK cluster with KubeSphere installed to be used as the Member Cluster. +- 您需要准备已安装 KubeSphere 的 Kubernetes 集群,并将该集群设置为 Host 集群。有关如何准备 Host 集群的更多信息,请参考[准备 Host 集群](../../../multicluster-management/enable-multicluster/direct-connection/#准备-host-集群)。 +- 您需要准备已安装 KubeSphere 的 ACK 集群,用作 Member 集群。 -## Import an ACK Cluster +## 导入 ACK 集群 -### Step 1: Prepare the ACK Member Cluster +### 步骤 1:准备 ACK Member 集群 -1. In order to manage the Member Cluster from the Host Cluster, you need to make `jwtSecret` the same between them. Therefore, get it first by executing the following command on your Host Cluster. +1. 为了通过 Host 集群管理 Member 集群,您需要使它们之间的 `jwtSecret` 相同。因此,首先需要在 Host 集群上执行以下命令获取 `jwtSecret`。 ```bash kubectl -n kubesphere-system get cm kubesphere-config -o yaml | grep -v "apiVersion" | grep jwtSecret ``` - The output is similar to the following: + 输出类似如下: ```yaml jwtSecret: "QVguGh7qnURywHn2od9IiOX6X8f8wK8g" ``` -2. Log in to the KubeSphere console of the ACK cluster as `admin`. Click **Platform** in the upper left corner and then select **Clusters Management**. +2. 以 `admin` 身份登录 ACK 集群的 KubeSphere 控制台。点击左上角的**平台管理**,选择**集群管理**。 -3. Go to **CRDs**, input `ClusterConfiguration` in the search bar, and then press **Enter** on your keyboard. Click **ClusterConfiguration** to go to its detail page. +3. 访问**自定义资源 CRD**,在搜索栏输入 `ClusterConfiguration`,然后按下键盘上的**回车键**。点击 **ClusterConfiguration** 访问其详情页。 - ![search-config](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/search-config.png) + ![search-config](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/search-config.png) -4. Click the three dots on the right and then select **Edit YAML** to edit `ks-installer`. +4. 点击右侧的三个点,选择**编辑配置文件**来编辑 `ks-installer`。 - ![click-edit](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/click-edit.png) + ![click-edit](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-edit.png) -5. In the YAML file of `ks-installer`, change the value of `jwtSecret` to the corresponding value shown above and set the value of `clusterRole` to `member`. Click **Update** to save your changes. +5. 在 `ks-installer` 的 YAML 文件中,将 `jwtSecret` 的值修改为如上所示的相应值,将 `clusterRole` 的值设置为 `member`。点击**更新**保存更改。 ```yaml authentication: @@ -53,30 +53,30 @@ This tutorial demonstrates how to import an Aliyun ACK cluster through the [dire {{< notice note >}} - Make sure you use the value of your own `jwtSecret`. You need to wait for a while so that the changes can take effect. + 请确保您使用自己的 `jwtSecret`。您需要等待一段时间使更改生效。 {{}} -### Step 2: Get the kubeconfig file +### 步骤 2:获取 kubeconfig 文件 -Log in to the web console of Aliyun. Go to **Clusters** under **Container Service - Kubernetes**, click your cluster to go to its detail page, and then select the **Connection Information** tab. You can see the kubeconfig file under the **Public Access** tab. Copy the contents of the kubeconfig file. +登录阿里云的控制台。访问**容器服务 - Kubernetes** 下的**集群**,点击您的集群访问其详情页,然后选择**连接信息**选项卡。您可以看到**公网访问**选项卡下的 kubeconfig 文件。复制 kubeconfig 文件的内容。 -![kubeconfig](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/kubeconfig.png) +![kubeconfig](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/kubeconfig.png) -### Step 3: Import the ACK Member Cluster +### 步骤 3:导入 ACK Member 集群 -1. Log in to the KubeSphere console on your Host Cluster as `admin`. Click **Platform** in the upper left corner and then select **Clusters Management**. On the **Clusters Management** page, click **Add Cluster**. +1. 以 `admin` 身份登录 Host 集群的 KubeSphere Web 控制台。点击左上角的**平台管理**,选择**集群管理**。在**集群管理**页面,点击**添加集群**。 - ![click-add-cluster](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/click-add-cluster.png) + ![click-add-cluster](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-add-cluster.png) -2. Input the basic information based on your needs and click **Next**. +2. 按需填写基本信息,然后点击**下一步**。 - ![input-info](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/input-info.png) + ![input-info](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/input-info.png) -3. In **Connection Method**, select **Direct connection to Kubernetes cluster**. Fill in the kubeconfig file of the ACK Member Cluster and then click **Import**. +3. **连接方式**选择**直接连接 Kubernetes 集群**。填写 ACK Member 集群的 KubeConfig,然后点击**导入**。 - ![select-method](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/select-method.png) + ![select-method](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/select-method.png) -4. Wait for cluster initialization to finish. +4. 等待集群初始化完成。 - ![ack-cluster-imported](/images/docs/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png) \ No newline at end of file + ![ack-cluster-imported](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png) \ No newline at end of file diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png new file mode 100644 index 000000000..b68f19b65 Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-add-cluster.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-add-cluster.png new file mode 100644 index 000000000..bf4130ed2 Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-add-cluster.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-edit.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-edit.png new file mode 100644 index 000000000..bede8f3c4 Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/click-edit.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/input-info.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/input-info.png new file mode 100644 index 000000000..9ab9cd397 Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/input-info.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/kubeconfig.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/kubeconfig.png new file mode 100644 index 000000000..a0d8ba10e Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/kubeconfig.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/search-config.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/search-config.png new file mode 100644 index 000000000..9d682081d Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/search-config.png differ diff --git a/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/select-method.png b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/select-method.png new file mode 100644 index 000000000..e119a5e98 Binary files /dev/null and b/static/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/select-method.png differ