aliyun-ack-en translated

Signed-off-by: adakisme <serenashe@yunify.com>
This commit is contained in:
adakisme 2021-03-25 14:40:20 +08:00
parent 12aa23cb54
commit 52efedde58
8 changed files with 31 additions and 31 deletions

View File

@ -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`。您需要等待一段时间使更改生效。
{{</ notice >}}
### 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)
![ack-cluster-imported](/images/docs/zh-cn/multicluster-management/import-cloud-hosted-k8s/import-ack/ack-cluster-imported.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB