To ensure connectivity, the control plane subnet and the node group subnet must belong to the same network. Their CIDR blocks, however, can be different.
A non-default network for clusters
To use a custom subnet for a cluster, get its ID and pass it to the--control-plane-subnet-id parameter when creating the cluster:
A non-default network for node groups
To use a custom subnet for a node group, get its ID and pass it in one of the following ways:-
Add the subnet ID to the node group creation command by using the
--template-network-interfacesCLI parameter: -
Pass the subnet ID to the
spec.template.network_interfaces.subnet_idfield of the node group configuration.