Create and manage hybrid cloud node pools

更新时间:
复制 MD 格式

To incorporate on-premises servers into an ACK cluster for unified management, create a hybrid cloud node pool in an ACK managed Pro cluster. This enables elastic scheduling and cost optimization across cloud and on-premises environments, letting you add existing hybrid cloud nodes to the cluster. This approach maximizes your IT asset utilization while maintaining a consistent orchestration platform.

Billing

When you use a hybrid cloud node pool in an ACK managed cluster (Pro), the total cost consists of three parts: a cluster management fee, a hybrid cloud node management fee (currently free during the invitational preview), and cloud product resource fees.

Prerequisites

Before you create a hybrid cloud node pool, ensure you meet the following requirements:

Impact assessment

To avoid affecting existing workloads, ACK automatically configures nodes in a hybrid cloud node pool with the following label and taint:

apiVersion: v1
kind: Node
metadata:
  labels:
    alibabacloud.com/nodepool-type: hybridcloud
...
spec:
  taints:
  - effect: NoSchedule
    key: nodepool-type
    value: "hybridcloud"
...

To schedule pods on hybrid cloud nodes, add a toleration for this taint to the pod specification. If your applications do not need to distinguish between cloud and on-premises nodes, you can also remove the taint. However, do not remove the default label alibabacloud.com/nodepool-type: hybridcloud. Removing this label disrupts product functionality.

Create a hybrid cloud node pool

You can configure the node pool on the console, including its basic and network settings. You cannot change some settings, especially those related to availability and networking, after creating the node pool. Creating a node pool does not affect existing node pools or workloads.
  1. Log on to the ACK console. In the left navigation pane, click Clusters.

  2. On the Clusters page, click the name of your cluster. In the left navigation pane, click Nodes > Node Pools.

  3. On the Node Pools page, click the ... icon next to Create Node Pool and select Create Hybrid Cloud Node Pool. In the dialog box, configure the parameters for the hybrid cloud node pool.

    • Node Pool Name: For example, hybrid-nodepool-mexxSA

    • Zone: Specify a custom logical Zone name, for example, idc-zone-1. The name must be unique within the cluster.

    • Network Plug-in:

      • Use CNI (Terway-Hybrid): Designed for hybrid cloud node pools to ensure network connectivity between pods (in an IDC or in the cloud) within the cluster.

        If the Terway-Hybrid CNI component is not installed in your cluster, go to the Add-ons page to install the Terway Hybrid network plugin.
      • Configure CNI: Select this option if you want to install and use a custom CNI plugin with specific features.

    • Network Type:

      • underlay: This mode provides high performance and low network latency by eliminating the overhead of Virtual Extensible LAN (VXLAN) encapsulation. Performance is approximately 20% higher than in overlay mode.

      • overlay: This mode offers a simple configuration and flexible deployment, with no special requirements for the underlying network.

    • CoreDNS: Specifies whether to enable a dedicated CoreDNS resolution service for the hybrid cloud node pool. This feature is implemented based on the cluster's yurt-coredns-controlplane add-on.

      If you use CoreDNS, you must also install the yurt-hub-controlplane cluster add-on and the yurt-hub node component.
  4. After the node pool is created, you can change its settings on the Modify a node pool page.

Add hybrid cloud nodes

You can add on-premises or third-party cloud servers to an ACK cluster as worker nodes and then manage them on the Container Service console.

Add existing

  1. Register the nodes that you want to add as Alibaba Cloud managed instances.

    Important

    The instance must be registered in the same region as the cluster.

  2. On the Node Pools page, find the target node pool. In the Actions column, click the image icon and select Add Existing Node.

  3. For Select Upload Method, select Add Existing.

  4. Select the instances that you want to add to the ACK cluster.

Manual

  1. On the Node Pools page, find the target node pool. In the Actions column, click the image icon and select Add Existing Node.

  2. For Select Upload Method, select Manual.

  3. Configure the activation ID and activation code. To generate an activation ID and code, go to the Alibaba Cloud managed instances page.

  4. Click OK to generate a script for manual registration.

  5. Copy and run the script on each hybrid cloud node that you want to add.

Remove hybrid cloud nodes

Important

Removing a node from a hybrid cloud node pool does not unregister the underlying third-party server. To unregister the server, see Unregister a third-party server.

  1. On the Clusters page, click the name of your cluster. In the left navigation pane, click Nodes > Node Pools.

  2. Click the name of the node pool. On the node pool details page, select the nodes to remove and click Batch Remove.