Connecting a hybrid cloud node pool to an on-premises data center creates complex network topologies and cross-domain routing requirements beyond the capabilities of standard container network plugins. Terway Hybrid is designed for hybrid cloud node pools, so pods on cloud and on-premises nodes communicate within the cluster.
How it works
The following figure shows the overall network architecture of an ACK hybrid cloud node pool. The architecture consists of two main network domains: an Alibaba Cloud Virtual Private Cloud (VPC) and an on-premises data center. If you have multiple on-premises data centers or connect to third-party clouds, you may have more network domains. These network domains use a dedicated connection to establish Layer 3 private network connectivity. The ACK cluster in the VPC can use a standard network plugin, such as Flannel or Terway. The nodes in the on-premises data center must use the Terway Hybrid network plugin.
Prerequisites
An ACK managed Pro cluster that runs Kubernetes 1.33 or later.
If your cluster uses the Flannel network plugin, its version must be v0.15.1.23 or later.
A hybrid cloud node pool requires Elastic Compute Service (ECS) nodes in the cluster to deploy certain ACK management components. Three or more ECS nodes are recommended to ensure high availability.
Procedure
Step 1: Establish cross-cloud connectivity
Before you install the Terway Hybrid plugin, ensure that the network path between your cloud and on-premises environments is fully connected:
Using Express Connect to create a dedicated connection is recommended to establish connectivity between the host networks of your VPC and on-premises data center. Also, configure route entries in the VPC route table and the Express Connect Router.
If your on-premises data center needs to access Alibaba Cloud services, add a route for the Alibaba Cloud service Classless Inter-Domain Routing (CIDR) block
100.64.0.0/10to your data center's core switch. For more information, see Configure a private connection over an Express Connect circuit.If resources in the cloud need to access pods in your on-premises data center, the core switch must support BGP. For more information, see Step 3: Expose pods to external networks.
Step 2: Install the plugin
-
Log on to the ACK console. In the left navigation pane, click Clusters.
-
On the Clusters page, click the name of your cluster. In the left navigation pane, click Components and Add-ons .
Install the terway-hybrid-controlplanecontrol plane component of the Terway Hybrid network solution. This component manages the network lifecycle of hybrid nodes.
Parameter
Description
RemoteContainerCIDR
The pod CIDR block for the hybrid cloud node pool. It cannot overlap with the existing service CIDR block, pod CIDR block, cloud node CIDR block, or on-premises node CIDR block.
RemoteContainerCIDRMaskSize
The subnet mask size for the pod CIDR block that is allocated to each node in the hybrid cloud node pool. For example, if you set this to 24, each node is allocated a /24 CIDR block, such as
xxx.xxx.xxx.0/24, which provides 256 pod IP addresses.Enable Source Network Address Translation
Specifies whether to translate the source IP address of pods in the hybrid cloud node pool to the node's IP address when they access addresses outside the cluster.
If you disable this option, ensure that external network devices can resolve pod IP addresses. For more information, see Step 3: Expose pods to external networks.
Install the terway-hybriddata plane component. No parameter configuration is required. The plugin automatically installs on new nodes that you add to the hybrid cloud node pool.
Step 3: Expose pods to external networks
If external network devices, such as those in the VPC or outside the cluster, need to directly access pods, configure BGP to dynamically advertise pod routes to your switches.