Overview
Currently, a container cluster can communicate with your IDC mainly through two methods: Direct Connect and IPsec VPN.
Note:
Make sure that the VPC where TKE resides is successfully connected to your IDC through Direct Connect or VPN Connections. If no tunnel is established, you can establish one as instructed in Features. Directions
Communication over Direct Connect
4. Verify that the container node can communicate with the IDC.
Note:
When performing this step, please make sure that the container node can communicate with the IDC and the verification is successful.
5. Prepare information such as the region, appID
, cluster ID, vpcID
, and Direct Connect gateway ID and submit a ticket to open up the container network. 6. Select the mode of operation based on the type of protocol used by the IDC.
If the IDC uses the BGP protocol, the container IP address range route will be automatically synchronized.
If other protocols are used, you need to configure the next hop of the container IP address range in the IDC to be routed to the Direct Connect gateway.
7. Verify that the container can communicate with the IDC.
Communication over VPN
Configuring an SPD Policy
2. On the left sidebar, click VPN Connections > VPN Tunnel to enter the VPN tunnel management page. 3. On the VPN tunnel details page, click Edit in the SPD Policy column to add the container IP address range.
4. Click Save.
5. Repeat step 3 to step 5 to configure the SPD policy for the opposite VPN tunnel. Adding a Container IP Address Range
Note:
One subnet can be bound to only one routing table. If multiple routing tables are associated, they will be replaced with the last bound one.
1. On the left sidebar, click Route Table to enter the route table management page. 3. Click + New routing policies to add the container IP range.
4. Select the Associated Subnets tab and click Create Associated Subnet to associate with the subnet where the CVM instance is.
5. Repeat step 2 to step 4 to add the IP address range where the Tencent Cloud container is located to the opposite routing device. Expected Result
Containers can communicate with the peer CVM instance as shown below:
Containers can communicate with VPN opposite servers. Note:
If you want your cloud containers to communicate with your IDC over an IPsec VPN, you need to set the SPD policy and routing table.
Was this page helpful?