Incorporate a container cluster

If your organization has multiple clusters, you can select one of them as the central cluster and incorporate all remaining clusters into the central cluster for centralized management.

For example, if you have one cluster at the headquarters and one cluster at each branch. You can incorporate the clusters into the cluster at the headquarters for centralized management.

To use an incorporated cluster, you must add that cluster into a container AZ as a shared cluster. You can add only worker nodes to an incorporated cluster.

To incorporate a container cluster:

  1. Move images from the cluster to be incorporated to the central cluster

  1. Incorporate a container cluster

Move images from the cluster to be incorporated to the central cluster

About this task

After you incorporate a cluster into the central cluster, the system pulls images from the image repository of the central cluster when you deploy applications on the incorporated cluster.

To prevent losses of images and ensure that all existing applications on the incorporated cluster can operate correctly, move all its images to the central cluster before incorporation.

Restrictions and guidelines

If you move only some of the images, make sure you understand the impact of the action on services.

Procedure

To move an image from one cluster to another, for example, from OS-B to OS-A:

  1. In the command shell of any one of the nodes in cluster OS-B:

  1. Execute the following command to pull the image to move:

docker pull image_name:tag

  1. Execute the following command to export the image as a .tar file:

docker save  image_name:tag  -o  image_name.tar

  1. In the command shell of any one of the nodes in cluster OS-A:

  1. Execute the following command to load the .tart image you have exported from cluster cloudos-B:

docker load  -i   image_name.tar

  1. Execute the following command to push the image to the image repository of cluster OS-A:

docker push image_name:tag

Incorporate a container cluster into the central cluster

Restrictions and guidelines

To use an incorporated cluster, you must add that cluster into a container AZ as a shared cluster.

Procedure

  1. On the top navigation bar, click Resources.

  1. From the left navigation pane, select Containers.

  1. Click Incorporate Cluster.

  1. Configure parameters:

Parameter

Description

Cluster Name

Assign a name to the incorporated cluster for the ease of identification.

Description

Enter a description of the cluster for the ease of management.

VIP

Assign a virtual IP address to the incorporated cluster. An administrator can access the incorporated cluster at that IP address.

Controller Node

Specify the IP address of any one of the controller nodes in the incorporated cluster.

Protocol

You can set this parameter only to HTTPS.

Username

Password

Set the username and password for accessing the incorporated cluster.

The default username and password are both admin.

Port Number

The service port number. By default, the port number is 8443.

 

  1. Click OK.

The incorporated cluster will operate as part of the central cluster. The alarm rules on the incorporated cluster will be overwritten by the alarm rules on the central cluster (default cluster) and cannot automatically restore after the incorporated cluster is removed from the central cluster.