Network to Other Selectel Services
Network to Dedicated Servers
Use the Selectel Global Router to establish network connectivity between Managed Kubernetes clusters and the dedicated server.
-
Create a network and subnet on the router. When creating, select Cloud Platform in the Service box.
-
Create a cloud router. When creating, check the Connect router to external-network checkbox.
-
Connect the created subnet of the global router to the cloud router. Open the router card in the Control panel ⟶ click Add subnet ⟶ select the previously created global router subnet ⟶ specify the IP address of the router other than the IP address of the global router and the service addresses .253 and .254 ⟶ click Add subnet.
-
For the created global router subnet, see the allocated address pool (the
allocation_pool
parameter in the command output):openstack subnet show <subnet_ID>
Specify
<subnet_ID>
— the global router’s subnet ID, can be viewed withopenstack subnet list
-
Exclude the IP address of the cloud router from the address pool. To do this, delete the address pool allocated for the global router’s subnet and add a new pool without the cloud router’s IP address:
openstack subnet set --no-allocation-pool \ --allocation-pool start=<first_pool_IP>,end=<last_pool_IP> \ <subnet_ID>
Specify:
<first_new_pool_IP>
— the first IP address from the new pool;<last_new_pool_IP>
— the last IP address from the new pool;- you can add multiple pools, each pool is added with
--allocation-pool start=<first_pool_IP>,end=<last_pool_IP>
-
Assign an IP address of the cloud router as the default gateway so that traffic is sent to the cloud router:
openstack subnet set --gateway <cloud_router_IP> <subnet_ID>
Specify
<cloud_router_IP>
— the IP address of the cloud router. -
Make sure that the
gateway_ip
parameter in the output of the command matches the IP address of the cloud router:openstack subnet show <subnet_ID>
Please note that the subnet will show the old gateway in the Control panel under Network services ⟶ Global Selectel Router.
-
To configure connectivity with the dedicated server, add static routes. To do this, create a ticket and specify the following:
- project ID — open the projects menu (current project name) and copy the project ID in the Control panel;
- Global router’s subnet ID — you can view it with
openstack network list
; - destination subnet CIDR with a dedicated server.
- Create a Managed Kubernetes cluster. When creating it, select the created subnet of the global router in the Network block.
- Connect the cluster nodes to the Internet via a public IP address. Internet access is needed to install packages on the nodes and to get special metadata from OpenStack.
Network to Cloud Servers
Within One Project
If the Managed Kubernetes cluster and Cloud platform virtual machines are in the same project and need to be connected, then follow these steps in the Control panel:
- Create a private network.
- Connect the network to the router.
- When creating a Managed Kubernetes cluster, select the created private network.
- Add virtual machines to the network.
Between Projects
If the cluster and cloud servers are in different projects, you need to make the private network of one project available to another project — such a network is called cross-project.
To do this, from the Control panel:
- Create a private network in the current project.
- Connect the network to the router.
- When creating a Managed Kubernetes cluster, select the created private network.
- Make your private network cross-project.
- Add virtual machines to the cross-project network in the target project.
Network to DBaaS
A Managed Kubernetes cluster and a Managed Databases cluster are networked in the same way as networking with cloud servers — in one project and between projects.