Skip to main content

Manage organization VPC peering with UpCloud Limited availability

Set up a peering connection between your Aiven organization VPC and an UpCloud SDN network.

Establishing a peering connection between an Aiven VPC and an UpCloud SDN network requires creating the peering both from the VPC in Aiven and from the SDN network in UpCloud.

Limitations

  • Peering connections are only supported between networks of type private.
  • You cannot initiate a peering between two networks with overlapping CIDR ranges.
  • The networks to be peered need to be in the same cloud zone.
important

Make sure you only create peerings between accounts, platforms, or networks you trust. There is no limit on what traffic can flow between the peered components. The server firewall has no effect on private type networks.

Prerequisites

Create a peering connection

Collect data from UpCloud

To create a peering connection in Aiven, first collect the required data from UpCloud using either the UpCloud Control Panel or the UpCloud API:

  1. Log in to the UpCloud Control Panel, and go to Network > Private networks.
  2. Find the network to peer, and copy its UUID located under its name.

Create the peering in Aiven

With the data collected from UpCloud, create an organization VPC peering connection using a tool of your choice:

  1. Log in to the Aiven Console, and click Admin in the top navigation bar.

  2. Click VPCs in the sidebar.

  3. On the Virtual private clouds page, select an organization VPC to peer.

  4. On the VPC details page, go to the VPC peering connections section and click Create peering request.

  5. In the Create peering request window.

    1. Enter your UpCloud SDN network UUID in the UpCloud Network UUID field.

    2. Click Create.

      This adds a connection with the Pending peer status in the Aiven Console.

  6. While still on the VPC details page, make a note of the ID of your Aiven VPC.

Create the peering in UpCloud

Use the Aiven VPC network ID collected in the Aiven Console to create the VPC peering connection in UpCloud either in the UpCloud Control Panel or through the UpCloud API:

  1. Log in to the UpCloud Control Panel, and go to Network > Peering.
  2. Click Create network peering, and in the Create network peering window:
    1. Specify the peering name.
    2. Select the source peer network (your UpCloud SDN network).
    3. Provide the UUID of the target peer network (the ID of your Aiven VPC).
    4. Click Create.

This creates the peering connection between your Aiven VPC and your UpCloud SDN network.

Renew a DHCP lease

You only need to perform this step if any of your VMs have been created before setting up the network peering. In this case, refresh the Dynamic Host Configuration Protocol (DHCP) lease for a relevant network interface to get new routes.

warning

A peering connection between an Aiven VPC and VMs created before the peering setup won't work unless you refresh the DHCP lease for a relevant network interface.

To refresh the DHCP lease for a network interface, run the following commands:

  1. To clear the existing DHCP lease

    dhclient -r NETWORK_INTERFACE_NAME
  2. To request a renewal of the DHCP lease

    dhclient NETWORK_INTERFACE_NAME

Delete the peering

important

Once you delete your VPC peering on the Aiven Platform, the cloud-provider side of the peering connection becomes inactive or deleted, and the traffic between the disconnected VPCs is terminated.

Delete an organization VPC peering using a tool of your choice:

  1. Log in to the Aiven Console, and click Admin in the top navigation bar.
  2. Click VPCs in the sidebar.
  3. On the Virtual private clouds page, select an organization VPC.
  4. On the VPC details page, go to the VPC peering connections section, find the peering to be deleted, and click Actions > Delete.
  5. In the Confirmation window, click Delete VPC peering.