liveBook · Manning

Classless inter-domain routing

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

CIDR is a notation for specifying IP address ranges using a network address and prefix length.

CIDR specifies an IP address range with a network address and prefix length. Kubernetes uses distinct CIDR ranges for nodes, Pods, and Services, and these ranges must remain unique. section 6.1

Map each Kubernetes CIDR to its operational owner:

  • Nodes CIDR identifies the infrastructure subnet and is managed by the cloud provider or network administrator. section 6.1
  • Pod CIDR, also called Cluster-CIDR, assigns Pod addresses through the container network interface. section 6.1
  • Service CIDR, also called Service-Cluster-IP-Range, supplies stable virtual addresses for Services and is configured by the API server. section 6.1

Reconfiguring a Service CIDR

Change the Service range to 100.96.0.0/16, recreate the Kubernetes and kube-dns Services, set kube-dns to 100.96.0.10, update the kubelet configuration, and verify a new Pod receives that DNS address. Inside the Pod, /etc/resolv.conf should list nameserver 100.96.0.10; nslookup can then confirm DNS resolution. section 6.1

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Defines node, Pod, and Service ranges, then demonstrates Service-CIDR reconfiguration through kubelet updates and DNS verification.
Examples
Uses 100.96.0.0/16, kube-dns at 100.96.0.10, /etc/resolv.conf, and nslookup as concrete verification artifacts.
What it assumes
Assumes Kubernetes networking basics while identifying the three cluster address ranges and their responsible components.
What you can do after
Operate/configure a Kubernetes Service CIDR and verify Pod DNS resolution with kubectl, kubelet configuration, and nslookup.
How it connects
Connects CIDR ranges with CoreDNS, Services, Pods, the kubelet, the API server, and the container network interface.

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 Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.