Network Configuration for Imported Clusters

Before import, the required connectivity path lets the global cluster access the target cluster. After import, platform components in the imported cluster may also need to access the global cluster. Add the platform URL annotation when bidirectional connectivity is required for components such as alerting and log collection.

Prerequisites

Prepare the domain name, the IP address that the domain name points to, and the corresponding valid certificate that the imported cluster can access.

Note:

  • This domain name must not be the same as the platform access address.

  • Ensure that the domain's port (HTTPS port, which is the same port as the platform access address) can forward traffic to all control nodes of the global cluster.

Add The Platform URL Annotation

Add the annotation to the imported cluster resource.

  1. In the left navigation bar, click Cluster Management > Clusters.

  2. Click global.

  3. Click Operations > CLI Tools, and replace the relevant parameters using the following command:

    kubectl annotate --overwrite -n cpaas-system clusters.cluster.x-k8s.io <imported cluster name> \
            cpaas.io/platform-url=<prepared domain address, e.g.: https://www.domain.cn>

    Code example:

    kubectl annotate --overwrite -n cpaas-system clusters.cluster.x-k8s.io cluster-imported \
            cpaas.io/platform-url=https://www.domain.cn