liveBook · Manning

Ip address management

As explained in Google Anthos in Action

IP address management is the planning, allocation, tracking, and reuse of network addresses and address ranges.

IP address management plans, allocates, tracks, and reuses address space across clusters. Anthos deployments use either island mode, which permits overlapping cluster schemas, or VPC-native mode, which requires unique subnets and nonoverlapping addresses. section 10.2.2

For VPC-native Anthos GKE on GCP, reserve three address ranges:

  • Node IPs for GCE instances, assigned from the primary subnet. section 10.2.2
  • A Pod IP CIDR, divided into equal per-node subnets by the cluster control plane. section 10.2.2
  • A Service IP CIDR, providing one address for each ClusterIP Service. section 10.2.2
total number of nodes = number of clusters x max number of nodes per cluster

Size the regional node pool by multiplying the number of clusters by the maximum nodes per cluster. section 10.2.2

Table 10.3 Determining the required host bits

Nodes required

Host bits for nodes

1-4

3 (or /29)

5-12

4 (or /28)

13-28

5 (or /27)

29-60

6 (or /26)

61-124

7 (or /25)

125-252

8 (or /24)

253-508

9 (or /23)

509-1020

10 (or /22)

1021-2044

11 (or /21)

2045-4092

12 (or /20)

4093-8188

13 (or /19)

Use the required-node range to select the corresponding host-bit count and subnet size. section 10.2.2

How Google Anthos in Action covers it

How deep it goes
Explains island and VPC-native constraints, three address ranges, and capacity calculations, but stops short of deployment commands.
Examples
Uses overlapping island-mode schemas, a 10.0.0.0/16 Pod CIDR, per-node /24 ranges, and host-bit sizing tables.
What it assumes
Assumes familiarity with clusters, nodes, Pods, Services, subnets, CIDR notation, and Google Cloud networking.
What you can do after
Operate Anthos cluster networking by selecting nonoverlapping ranges and sizing node, Pod, and Service address pools.
How it connects
Connects node IPs, Pod IP CIDRs, Service IP CIDRs, subnets, VPC-native clusters, and island mode.

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.