Import an Alibaba Cloud Kubernetes (ACK) Cluster
- 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.
- You have an ACK cluster with KubeSphere installed to be used as the member cluster.
Import an ACK Cluster
In order to manage the member cluster from the host cluster, you need to make the same between them. Therefore, get it first by executing the following command on your host cluster.
The output is similar to the following:
Log in to the KubeSphere console of the ACK cluster as
admin
. Click Platform in the upper-left corner and then select Cluster Management.In the YAML file of
ks-installer
, change the value ofjwtSecret
to the corresponding value shown above and set the value of tomember
. Click Update to save your changes.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.
Log in to the web console of Alibaba Cloud. 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.
Log in to the KubeSphere console on your host cluster as . Click Platform in the upper-left corner and then select Cluster Management. On the Cluster Management page, click Add Cluster.
Enter the basic information based on your needs and click Next.
Wait for cluster initialization to finish.