Updated on 2025-01-24 GMT+08:00

Enabling Cluster Federation

Enabling Cluster Federation

You can enable cluster federation for a fleet with just a few clicks.

Enabling cluster federation involves two phases: enabling cluster federation and adding clusters to the federation. Enabling cluster federation for a fleet will federate the registered clusters in the fleet.

There is a quota limit for enabling cluster federation, and there are constraints on clusters in a fleet. Before enabling cluster federation, read the following constraints to avoid failures.

Table 1 Cluster constraints

Item

Constraint

Cluster version

The versions of all clusters in the fleet must be 1.19 or later.

Cluster status

All clusters in the fleet must be in the Running status.

Cluster network

  • CCE clusters and CCE Turbo clusters: If a CCE cluster is located in AP-Singapore, UCS automatically creates a VPC endpoint in the VPC that the cluster belongs to when the federation is enabled. If a CCE cluster is not located in that region, nodes in the cluster must be able to access the public network. For example, associate a public network address with a node to pull a public network image.
  • Other clusters: Ensure that the clusters connect to UCS.

Quota

The cluster federation quota is 1. This means cluster federation can be enabled only for one fleet.

  1. Log in to the UCS console. In the navigation pane, choose Fleets.
  2. On the Fleets tab, locate the target fleet displayed with Federation not enabled. Click Enable.

    Figure 1 Enabling cluster federation

  3. In the displayed dialog box, click OK. Then, wait until cluster federation is enabled.

    If the clusters in the fleet do not meet the constraints, an error message will be displayed. Modify the clusters as prompted and enable cluster federation again.

    It takes about 10 minutes to enable cluster federation. You can click the federation status to view the detailed enabling progress. After cluster federation is enabled, a message will be displayed.

Adding Clusters

After cluster federation is enabled for a fleet, you can continue to add clusters to the fleet. The new clusters are automatically connected to the federation of the fleet. A federation can have up to 20 clusters.

  1. Log in to the UCS console. In the navigation pane, choose Fleets.
  2. In the card view of the target fleet, click Add Cluster, or click in the upper right corner.

    You can also click the fleet name to access the fleet console. In the navigation pane, choose Container Clusters. On the displayed page, click Add Cluster in the upper right corner.

  3. Select one or more existing clusters. A cluster can only be added to one fleet. The clusters displayed in the list are those that have not been added to any fleets.

    Ensure that the selected clusters meet the constraints described in Table 1, or they can be added to the fleet but cannot be connected to the federation. If any clusters fail to be connected to a federation, see What Can I Do If Clusters Fail to Be Connected to a Federation?

  4. Click OK.

Managing Federation

After cluster federation is enabled for a fleet, the Federation module on the fleet console is automatically unlocked.

Figure 2 Managing federation

Next, you can create federated resources such as federated workloads, Services, and storage for deploying your service. You can also perform advanced operations such as multi-active DR and auto scaling for multi-cluster applications.

Disabling Cluster Federation

If you do not need to use cluster federation, you can disable it. After cluster federation is disabled, services running on the workloads are not affected.

  1. Log in to the UCS console. In the navigation pane, choose Fleets.
  2. On the Fleets tab page, locate the target fleet and click Disable Federation in the upper right corner.

    Figure 3 Disabling cluster federation

  3. In the displayed dialog box, click OK.