liveBook · Manning

Classless inter-domain routing

As explained in Google Anthos in Action

A CIDR block is an IP address range represented with Classless Inter-Domain Routing prefix notation.

CIDR represents an IP address range with prefix notation. Anthos GKE planning applies CIDR blocks to separate node, Pod, and Service address pools; overlapping addresses are not permitted, and each cluster requires unique subnets. section 10.2.2

Size each address pool according to its operational responsibility:

  • Node IPs cover GCE instances or nodes; estimate regional capacity from the number of clusters and maximum nodes per cluster. section 10.2.2
  • Pod IP CIDR covers Pods; size it from maximum Pods per node and total nodes across the region. section 10.2.2
  • Service IP CIDR provides one address for each ClusterIP Service. section 10.2.2

Sizing a Pod CIDR

For 110 Pods per node and 5,000 regional nodes, use 13 host bits for nodes and 8 for Pods, producing a Pod IP CIDR netmask of /11. section 10.2.2

How Google Anthos in Action covers it

How deep it goes
Calculates subnet masks from node and Pod capacity, including a worked /11 example.
Examples
Uses 5,000 nodes, 110 Pods per node, /24 node allocations, and a calculated /11 Pod range.
What it assumes
Assumes familiarity with GKE clusters, nodes, Pods, Services, and subnet capacity planning.
What you can do after
Apply CIDR sizing tables and formulas to allocate cluster address ranges.
How it connects
Connects CIDR sizing to Anthos GKE clusters, nodes, Pods, Services, ClusterIP, and subnets.

Also explained in

Compare how 5 books explain classless inter-domain routing →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.