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 when creating the cluster:- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Pass the subnet ID to the
--control-plane-subnet-id parameter:A non-default network for node groups
To use a custom subnet for a node group, get its ID and pass it when creating the node group:- CLI
- Go SDK
- Python SDK
- JavaScript SDK
Add the subnet ID to the node group creation command by using the Alternatively, pass the subnet ID to the
--template-network-interfaces parameter:spec.template.network_interfaces.subnet_id parameter of the node group configuration.