Import Alibaba Cloud ACK Cluster
Import existing Alibaba Cloud ACK managed clusters (Managed Kubernetes) or Alibaba Cloud ACK dedicated clusters (Dedicated Kubernetes) for unified platform management.
For product information about ACK managed clusters (Managed Kubernetes) or Alibaba Cloud ACK dedicated clusters (Dedicated Kubernetes), refer to the official documentation.
TOC
Prerequisites
- The Kubernetes version and parameters on the cluster meet the component version and parameter requirements for importing standard Kubernetes clusters.
Get Image Registry Address
-
To use the platform-deployed image registry from the global cluster deployment, execute the following command on the control node of the global cluster to get the address:
-
To use an external image registry, manually set the REGISTRY variable.
Determine if Image Registry Requires Additional Configuration
-
Execute the following command to determine if the specified image registry supports HTTPS access and uses certificates issued by trusted CA authorities:
-
If the test fails, refer to the FAQ How to trust insecure image registries?.
Get KubeConfig
-
Log in to the Alibaba Cloud Container Service management platform.
-
In the left navigation bar of the console, click Clusters.
-
On the Cluster List page, click the target cluster name or Details under the Actions column on the right side of the target cluster.
-
On the Cluster Information page, click the Connection Information tab, then click Generate Temporary KubeConfig.
-
In the Temporary KubeConfig dialog, set the validity period of the temporary credentials and the method to access the cluster (including public network access and internal network access).
-
Click Generate Temporary KubeConfig, then click Copy to copy the content and save it to the KubeConfig file on your local computer.
-
After the cluster is successfully imported, you can revoke the temporary credentials.
Import Cluster
-
In the left navigation bar, click Cluster Management > Clusters.
-
Click Import Cluster.
-
Configure the relevant parameters according to the following instructions.
-
Click Check Connectivity to check network connectivity with the cluster to be imported and automatically identify the type of cluster to be imported. The cluster type will be displayed as a badge in the upper right corner of the form.
-
After connectivity check passes, click Import and confirm.
TIP- Click the Details icon on the right side of a cluster in Importing status to view the cluster's execution progress (status.conditions) in the popup Execution Progress dialog.
- After the cluster is successfully imported, you can view the cluster's key information in the cluster list. The cluster status shows as normal and you can perform cluster-related operations.
Network Configuration
Ensure network connectivity between the global cluster and the cluster to be imported. See Network Configuration for Imported Clusters.
FAQ
How to handle port conflicts between Alibaba Cloud monitoring and platform monitoring components?
When Alibaba Cloud's built-in monitoring and platform monitoring components coexist, port conflicts will occur. It is recommended to uninstall Alibaba Cloud monitoring and keep only platform monitoring.
How to use public network access for Alibaba Cloud clusters?
If using public network access for Alibaba Cloud clusters, you can bind a public IP on Alibaba Cloud.
After importing a cluster, the add node button is grayed out. How to add nodes?
Both Alibaba Cloud ACK managed clusters and ACK dedicated clusters do not support adding nodes through the platform interface. Please add them in the backend or contact the cluster provider to add them.
Which certificates are supported by the certificate management function for imported clusters?
-
Kubernetes Certificates: All imported clusters only support viewing APIServer certificate information in the platform certificate management interface. They do not support viewing other Kubernetes certificates and do not support automatic rotation.
-
Platform Component Certificates: All imported clusters can view platform component certificate information in the platform certificate management interface and support automatic rotation.
What other features are not supported for imported Alibaba Cloud ACK managed clusters and ACK dedicated clusters?
-
Alibaba Cloud ACK managed clusters do not support obtaining audit data.
-
Alibaba Cloud ACK managed clusters do not support ETCD, Scheduler, Controller Manager related monitoring information, but support some APIServer monitoring charts.
-
Both Alibaba Cloud ACK managed clusters and ACK dedicated clusters do not support obtaining cluster certificate-related information except for Kubernetes APIServer certificates.