OpsPane

Max nodes and Pods per node from --node-cidr-mask-size, Service CIDR limits, kube-dns IP and overlaps for IPv4, IPv6 and dual-stack clusters.

Platform defaults:

kubeadm serviceSubnet default 10.96.0.0/12; Flannel asks for --pod-network-cidr=10.244.0.0/16; node mask 24 and maxPods 110 are the upstream defaults. Node network: an example LAN.

IPv6 and dual-stack: write one range, or an IPv4 and an IPv6 range separated by a comma as in --cluster-cidr=10.42.0.0/16,2001:db8:42::/56.

Amazon EKS with the VPC CNI gives Pods VPC addresses instead of a cluster CIDR:EKS max Pods VPC subnet planner

256 nodes × 110 Pods = 28,160 Pods · no overlaps

Max nodes
256
2^(24 − 16) /24 blocks
Pod IPs per node
253
/24 = 256 addresses − 3
Pods per node
110
kubelet maxPods binds
Max Pods
28,160
nodes × Pods per node
Service ClusterIPs
1,048,574
/12 − network and broadcast

kubelet's maxPods (110) binds: the /24 block has 253 Pod addresses, so 143 per node are never used.

GKE would give each node a /24 for 110 max Pods — 256 addresses, at least twice the Pods, the same as yours.

Overlaps

The Pod CIDR, Service CIDR, node network and Docker's 172.17.0.0/16 share no address.

    Number line, one per address family — each separate group of addresses gets equal width; gaps between groups are collapsed (dashed). Hatched red bars overlap another range.
    Pod CIDR 10.244.0.0/16
    Service CIDR 10.96.0.0/12
    Node network 192.168.1.0/24
    docker0 172.17.0.0/16

    Node blocks

    kube-controller-manager hands each new node the next free block of the cluster CIDR as its spec.podCIDR — one block per family in a dual-stack cluster (spec.podCIDRs).

    BlockCIDRAddressesPod IPs
    Node 110.244.0.0/2410.244.0.0 – 10.244.0.25510.244.0.2 – 10.244.0.254
    Node 210.244.1.0/2410.244.1.0 – 10.244.1.25510.244.1.2 – 10.244.1.254
    Node 25610.244.255.0/2410.244.255.0 – 10.244.255.25510.244.255.2 – 10.244.255.254

    Inside 10.244.0.0/24: 10.244.0.0 network · 10.244.0.1 bridge gateway / CNI router · 10.244.0.2 – 10.244.0.254 Pods · 10.244.0.255 broadcast.

    Service range

    Range
    10.96.0.0 – 10.111.255.255
    Usable ClusterIPs
    1,048,574
    kubernetes.default (first usable)
    10.96.0.1
    kube-dns (10th; kubeadm, k3s, AKS)
    10.96.0.10
    Static band (preferred for fixed IPs)
    10.96.0.1 – 10.96.1.0 · 256
    Dynamic band
    10.96.1.1 – 10.111.255.254 · 1,048,318

    Configuration

    The same ranges as kubeadm init configuration and as k3s server flags.

    kubeadm-config.yaml
    k3s server
    Updated Runs locally in your browser

    Quick answer

    • Max nodes = 2^(mask − prefix): a /16 cluster CIDR with the default /24 node mask holds 256 nodes, with /25 blocks 512.
    • Pods per node = the smaller of the block's addresses minus 3 and kubelet's maxPods (110 by default): a /24 has 253 Pod IPs, so 110 Pods run.
    • Service CIDR: at most a /12 for IPv4, and a /n holds 2^(32 − n) − 2 ClusterIPs: kubeadm's 10.96.0.0/12 holds 1,048,574, with kube-dns on the 10th address.
    • The Pod CIDR, Service CIDR, node network and Docker's 172.17.0.0/16 must not share addresses.

    How to size Pod and Service CIDRs

    1. Pick your platform to load its defaults, or type your own cluster (Pod) CIDR, node CIDR mask size, Service CIDR and kubelet maxPods. Add the node subnet or VPC to check it too.
    2. Read the tiles: how many nodes the cluster CIDR holds, how many Pod addresses each node block has, and whether kubelet's maxPods or the block is the limit that binds.
    3. Check the overlaps. The Pod CIDR, Service CIDR, node network and Docker's 172.17.0.0/16 must not share addresses; Apply fixes moves the range at fault to the nearest free private block.
    4. Copy the kubeadm configuration or the k3s flags, or copy the link to share the exact plan.

    This planner is for clusters whose Pods get addresses from a cluster CIDR: kubeadm and other kube-controller-manager setups, k3s, GKE VPC-native, AKS kubenet and Azure CNI Overlay, Cilium cluster-pool — IPv4, IPv6 or dual-stack. On Amazon EKS with the VPC CNI, Pods take addresses from VPC subnets instead — size those with the EKS max Pods calculator and the VPC subnet planner.

    How node CIDR blocks are carved

    kube-controller-manager cuts the cluster CIDR into equal blocks of --node-cidr-mask-size and gives each node the next free one: 2^(mask − prefix) blocks in all. Inside a block, host-local IPAM keeps the network address, the bridge gateway and the broadcast address, so a block of 2^(32 − mask) addresses holds that many minus 3 Pods. With the default maxPods of 110:

    Node maskAddressesPod IPsPods per nodeBindsNodes in a /16Pods in a /16Nodes in a /14Pods in a /14GKE max Pods
    /204,0964,093110maxPods161,760647,0402,048
    /212,0482,045110maxPods323,52012814,0801,024
    /221,0241,021110maxPods647,04025628,160512
    /23512509110maxPods12814,08051256,320256
    /24256253110maxPods25628,1601,024112,640128
    /25128125110maxPods51256,3202,048225,28064
    /26646161addresses1,02462,4644,096249,85632
    /27322929addresses2,04859,3928,192237,56816
    /28161313addresses4,09653,24816,384212,9928

    GKE sizes the other way round: each node's range has at least twice as many addresses as its maximum Pods, rounded up to a power of two (/24 for 110 Pods, /26 for 32), so addresses freed by a deleted Pod are not reused immediately. The last column is the most Pods GKE allows for that block size.

    kubeadm also refuses a node mask more than 16 bits longer than the Pod CIDR prefix (a /8 with /25 blocks). kube-controller-manager only enforces that limit for IPv6; for IPv4 it accepts any mask from the cluster prefix to /32.

    Platform defaults

    PlatformPod CIDRNode maskService CIDRmaxPodsNodesPods per nodekube-dns
    kubeadm + Flannel10.244.0.0/16/2410.96.0.0/1211025611010.96.0.10
    k3s10.42.0.0/16/2410.43.0.0/1611025611010.43.0.10
    Dual-stack10.42.0.0/16,2001:db8:42::/56/2410.43.0.0/16,2001:db8:43::/11211025611010.43.0.10
    GKE VPC-native10.4.0.0/14/2434.118.224.0/201101,02411034.118.224.10
    AKS CNI Overlay10.244.0.0/16/2410.0.0.0/1625025625010.0.0.10
    Cilium cluster-pool10.0.0.0/8/2410.96.0.0/1211061,44011010.96.0.10

    Service CIDR rules

    Service CIDRClusterIPskubernetes.defaultkube-dns (10th)Static bandDynamic
    10.96.0.0/121,048,57410.96.0.110.96.0.102561,048,318
    10.96.0.0/1665,53410.96.0.110.96.0.1025665,278
    10.96.0.0/204,09410.96.0.110.96.0.102563,838
    10.96.0.0/2425410.96.0.110.96.0.1016238
    10.96.0.0/281410.96.0.110.96.0.10014

    IPv6 and dual-stack clusters

    Range fields take one CIDR or an IPv4 and an IPv6 CIDR separated by a comma, as the flags do — --cluster-cidr with 10.42.0.0/16,2001:db8:42::/56. kube-controller-manager accepts at most two, one per family, and gives each node a block of each (spec.podCIDRs). The IPv6 node mask is --node-cidr-mask-size-ipv6, default /64; on a dual-stack cluster the plain --node-cidr-mask-size is refused in favour of the -ipv4 and -ipv6 flags.

    For IPv6, and only for IPv6, the node mask may be at most 16 bits longer than the cluster prefix — so with /64 blocks the cluster CIDR must be a /48 or longer:

    IPv6 cluster CIDR/64 node blocksPods at maxPods 110
    /44refusedkube-controller-manager won't start
    /4865,5367,208,960
    /524,096450,560
    /5625628,160
    /60161,760
    /641110

    Inside an IPv6 block, CNI host-local IPAM keeps only the network address and the gateway — IPv6 has no broadcast address — so a /64 has 264 − 2 Pod addresses.

    IPv6 Service CIDR rules

    IPv6 Service CIDRClusterIPs (1.34+)Before 1.3410th address (kube-dns)Static band
    fd00:10:96::/1081,048,57565,535fd00:10:96::a256
    fd00:10:96::/11265,53565,535fd00:10:96::a256
    fd00:10:96::/1164,0954,095fd00:10:96::a256
    fd00:10:96::/120255255fd00:10:96::a16
    fd00:10:96::/1241515fd00:10:96::a0

    Unique local ranges (fd00::/8, RFC 4193) are the usual choice for Pods and Services; a global prefix makes Pods directly routable, which is a feature only with a firewall in front. Amazon EKS IPv6 clusters are single-stack: Pods take addresses from the subnet's /64 and EKS assigns the Service CIDR from fc00::/7 itself.

    Overlaps that break clusters

    A Pod or Service range that shares addresses with something you route to wins locally: nodes send that traffic into the overlay or to kube-proxy instead of the real host. The usual collisions, each computed by the planner with its suggested fix:

    CasePod · Service · NodeFirst overlapFix
    Pod CIDR on Docker's bridge172.17.0.0/16 · 10.96.0.0/12 · 10.0.0.0/16Pod CIDR / docker0: 172.17.0.0/16 (65,536 addresses)Pod CIDR → 172.18.0.0/16
    Cilium's default pool on a 10.x VPC10.0.0.0/8 · 10.96.0.0/12 · 10.10.0.0/16Pod CIDR / Node network: 10.10.0.0/16 (65,536 addresses)Pod CIDR → 10.128.0.0/9
    Service CIDR equal to a peered VPC10.244.0.0/16 · 10.100.0.0/16 · 10.100.0.0/16Service CIDR / Node network: 10.100.0.0/16 (65,536 addresses)Service CIDR → 10.101.0.0/16
    Calico's 192.168.0.0/16 on an office network192.168.0.0/16 · 10.96.0.0/12 · 192.168.1.0/24Pod CIDR / Node network: 192.168.1.0/24 (256 addresses)Pod CIDR → 10.0.0.0/16

    Verification

    FAQ

    How many nodes does a /16 cluster CIDR hold?

    With the default --node-cidr-mask-size of 24, a /16 holds 2^(24 − 16) = 256 node blocks, so 256 nodes; with /25 blocks it holds 512. Each node gets one block as its spec.podCIDR, and a node that finds no free block never becomes Ready for Pods.

    How many Pods can a node with a /24 podCIDR run?

    A /24 has 256 addresses; the network, the bridge gateway (or CNI router) and the broadcast address leave 253 for Pods. kubelet's maxPods defaults to 110, so maxPods binds and 110 Pods run per node. A /25 has 125 Pod addresses — still enough for 110, but not for AKS's 250.

    What is the largest Service CIDR Kubernetes accepts?

    A /12 for IPv4 (20 host bits): kubeadm refuses anything larger, and kube-apiserver did too until 1.34 with "specified --service-cluster-ip-range is too large; for 32-bit addresses, the mask must be >= 12". The kubeadm default 10.96.0.0/12 is exactly that size and holds 1,048,574 ClusterIPs. From 1.34 the API server's IPAddress allocator drops the IPv4 limit, but most installers still apply it. For IPv6 the same 20 bits make a /108; the 1.34+ allocator accepts down to a /64.

    How many nodes does an IPv6 cluster CIDR hold?

    At the default --node-cidr-mask-size-ipv6 of 64, a /48 holds 65,536 node blocks — and that is the ceiling: kube-controller-manager refuses an IPv6 node mask more than 16 bits longer than the cluster prefix ("New CIDR set failed; the node CIDR size is too big"), so a /44 doesn't start at all. Each /64 has 2^64 − 2 Pod addresses, so kubelet's maxPods always binds.

    How do I plan a dual-stack cluster?

    Write each range as an IPv4 and an IPv6 CIDR separated by a comma, exactly as --cluster-cidr and --service-cluster-ip-range take them. Every node gets one block of each family, so the cluster holds as many nodes as the family with fewer blocks; the planner shows which one runs out first and writes kubeadm and k3s configuration with --node-cidr-mask-size-ipv4 and -ipv6, since plain --node-cidr-mask-size is refused on dual-stack clusters.

    Why is kube-dns 10.96.0.10?

    By convention: kubeadm puts the cluster DNS Service on the 10th address of the Service range and the kubernetes.default Service on the first (10.96.0.1). Both sit in the static band — the first 256 addresses — which the allocator only hands out dynamically when the rest of the range is full.

    What happens if --node-cidr-mask-size is smaller than the cluster CIDR prefix?

    kubeadm rejects the config. kube-controller-manager starts anyway for IPv4, but the cluster CIDR then holds no block of that size, so every node gets "CIDR allocation failed; there are no remaining CIDRs left to allocate in the accepted range". The planner flags a /15 node mask on a /16 cluster CIDR as an error and offers /24 as the fix.

    Can the Service CIDR sit inside the Pod CIDR?

    It shouldn't. kube-controller-manager marks every node block the Service range overlaps as used — 10.96.0.0/12 inside 10.0.0.0/8 costs 4,096 of 65,536 /24 blocks — and CNIs with their own IPAM, such as Cilium's cluster-pool, don't skip it at all, so a Pod can get an address that is also a ClusterIP.

    Private by design

    Your input is processed in this browser tab and never sent to our servers. Privacy policy