All Products
Search
Document Center

Alibaba Cloud Service Mesh:Add a Kubernetes cluster by importing kubeconfig

Last Updated:Mar 11, 2026

Alibaba Cloud Service Mesh (ASM) manages applications across any Kubernetes cluster, regardless of where the cluster runs. Import a kubeconfig file into your ASM instance to add an external cluster and extend mesh capabilities -- such as traffic management and observability -- across cluster boundaries.

Prerequisites

Before you begin, make sure that you have:

  • An ASM instance running version 1.22 or later. To create one, see Create an ASM instance

  • Public network access enabled for the ASM control plane. To enable it, see Attach or detach an EIP for the ASM control plane

  • A Kubernetes cluster with public network access capability

  • A kubeconfig file that meets the following conditions:

    RequirementDescription
    Public endpointThe kubeconfig contains a public network access address, not an internal or VPC-only endpoint
    Administrator permissionsThe kubeconfig grants cluster administrator permissions for the target Kubernetes cluster

Add the cluster

  1. Log on to the ASM console.

  2. In the left-side navigation pane, choose Service Mesh > Mesh Management.

  3. On the Mesh Management page, click the name of the target ASM instance.

  4. In the left-side navigation pane, choose Cluster & Workload Management > Kubernetes Clusters.

  5. Click Add.

  6. On the Add Kubernetes Cluster page, click the Add Kubernetes Cluster by Using Kubeconfig tab.

  7. Configure the following parameters:

    ParameterDescription
    NameA name for the cluster
    Cluster KubeconfigThe kubeconfig content with administrator permissions
  8. Click OK.

  9. In the confirmation dialog box, click OK.

Verify the result

After you add the cluster, the ASM instance enters the Updating state. The update typically takes a few seconds, depending on the number of clusters in the mesh.

  1. In the left-side navigation pane, click Basic Information.

  2. Confirm that the Status of the ASM instance changes to Running. Click Refresh in the upper-right corner if the status has not updated.

  3. In the left-side navigation pane, choose Cluster & Workload Management > Kubernetes Clusters and confirm that the imported cluster appears in the list.

Limitations for imported clusters

When you add a cluster by importing kubeconfig, certain ASM console features are unavailable. The following table lists these limitations and their workarounds.

Features with CRD workarounds

FeatureLimitationWorkaround
LoadBalancer ingress gatewaysCannot create LoadBalancer type ingress gateways through the ASM consoleUse the ASM Gateway Custom Resource Definition (CRD). The target Kubernetes cluster must support LoadBalancer type Services. See ASM Gateway CRD Description
Traffic lanesCannot configure traffic lanes through the ASM consoleUse the ASM SwimLaneGroup and ASM SwimLane CRDs. See ASM SwimLaneGroup and ASM SwimLane CRD Description
Workload-level plug-in bindingCannot bind plug-ins to specific workloads in the plug-in centerUse the EnvoyFilterTemplate CRD. See EnvoyFilterTemplate and EnvoyFilterTemplateBinding CRD Description

Observability limitations

FeatureLimitationWorkaround
Log collectionGateway and mesh proxy logs cannot be collected to Simple Log Service (SLS)Collect the standard output of the istio-proxy container with your own log collection solution
Metrics collectionMonitoring metrics cannot be collected to Managed Service for PrometheusUse a self-managed Prometheus instance. See Integrate self-built Prometheus for mesh monitoring

Unavailable console features

The following ASM console features are not supported for clusters imported by kubeconfig:

  • Service discovery selectors

  • ASM CNI Plug-in

  • Kubernetes Service Management

  • Sync Sidecar Auto-Injection from Kubernetes Cluster

Note

Sync Automatic Sidecar Injection to Kubernetes Cluster and Enable/Disable Automatic Sidecar Proxy Injection work normally for imported clusters.