Create subnets for a managed cluster using web UI¶
Before creating an L2 template, create the required subnets to use in the L2 template to allocate IP addresses for the managed cluster nodes.
To create subnets for a managed cluster using web UI:
Log in to the Container Cloud web UI with the
operator
permissions.Switch to the required non-
default
project using the Switch Project action icon located on top of the main left-side navigation panel.To create a project, refer to Create a project for managed clusters.
In the Clusters tab, click the required cluster and scroll down to the Subnets section.
Click Add Subnet.
Fill out the Add new subnet form as required:
- Subnet Name
Subnet name.
- CIDR
A valid IPv4 CIDR, for example, 10.11.0.0/24.
- Include Ranges Optional
A list of IP address ranges within the given CIDR that should be used in the allocation of IPs for nodes. The gateway, network, broadcast, and DNS addresses will be excluded (protected) automatically if they intersect with one of the range. The IPs outside the given ranges will not be used in the allocation. Each element of the list can be either an interval
10.11.0.5-10.11.0.70
or a single address10.11.0.77
. TheincludeRanges
parameter is mutually exclusive withexcludeRanges
.
- Exclude Ranges Optional
A list of IP address ranges within the given CIDR that should not be used in the allocation of IPs for nodes. The IPs within the given CIDR but outside the given ranges will be used in the allocation. The gateway, network, broadcast, and DNS addresses will be excluded (protected) automatically if they are included in the CIDR. Each element of the list can be either an interval
10.11.0.5-10.11.0.70
or a single address10.11.0.77
. TheexcludeRanges
parameter is mutually exclusive withincludeRanges
.
- Gateway Optional
A valid gateway address, for example, 10.11.0.9.
Click Create.