Pre-provisioned Use Alternate Pod or Service Subnets
In Konvoy, the default pod subnet is 192.168.0.0/16, and the default service subnet is 10.96.0.0/12. If you wish to change the subnets you can do so with the following steps:
Generate the YAML manifests for the cluster using the
--dry-runand-o yamlflags, along with the desireddkp cluster createcommand:CODEdkp create cluster preprovisioned --cluster-name ${CLUSTER_NAME} --control-plane-endpoint-host <control plane endpoint host> --control-plane-endpoint-port <control plane endpoint port, if different than 6443> --dry-run -o yaml > cluster.yamlTo modify the service subnet, add or edit the
spec.clusterNetwork.services.cidrBlocksfield of theClusterobject:CODEkind: Cluster spec: clusterNetwork: services: cidrBlocks: - 10.0.0.0/18To modify the pod subnet, edit the
Clusterand calico-cniConfigMapresources:Cluster: Add or edit the
spec.clusterNetwork.pods.cidrBlocksfield:CODEkind: Cluster spec: clusterNetwork: pods: cidrBlocks: - 172.16.0.0/16ConfigMap: Edit the
data."custom-resources.yaml".spec.calicoNetwork.ipPools.cidrfield with your desired pod subnet:CODEapiVersion: v1 data: custom-resources.yaml: | apiVersion: operator.tigera.io/v1 kind: Installation metadata: name: default spec: # Configures Calico networking. calicoNetwork: # Note: The ipPools section cannot be modified post-install. ipPools: - blockSize: 26 cidr: 172.16.0.0/16 kind: ConfigMap metadata: name: calico-cni-<cluter-name>
When you provision the cluster, the configured pod and service subnets will be applied.