liveBook · Manning

Dual-stack networking

As explained in Kubernetes in Action, Second Edition

Dual-stack networking provides simultaneous IPv4 and IPv6 connectivity within a network environment.

Dual-stack networking supports both IPv4 and IPv6. In Kubernetes, a Service can receive addresses from both families when the cluster supports dual-stack networking. section 11.1.2

Choose a Service IP-family policy according to the required behavior:

  • SingleStack assigns one IP family, regardless of whether the cluster supports single-stack or dual-stack networking. section 11.1.2
  • PreferDualStack requests both IP families on a dual-stack cluster, but falls back to one family on a single-stack cluster. section 11.1.2
  • RequireDualStack requires a dual-stack cluster; Service creation succeeds only when both IP families are available. section 11.1.2

Inspect assigned families in spec.ipFamilies. For a dual-stack Service, spec.clusterIPs contains both addresses, while spec.clusterIP contains only one; their ordering corresponds. section 11.1.2

How Kubernetes in Action, Second Edition covers it

How deep it goes
Explains three policies and assigned-address fields, but stops short of cluster-level dual-stack configuration.
Examples
Uses Service policies and the spec.ipFamilies, spec.clusterIP, and spec.clusterIPs fields as configuration examples.
What it assumes
Assumes a Kubernetes Service and cluster IP concepts, while defining IPv4 and IPv6 behavior through Service fields.
What you can do after
Configure a Kubernetes Service with SingleStack, PreferDualStack, or RequireDualStack behavior.
How it connects
Connects IPv4, IPv6, Kubernetes Service, clusterIP, clusterIPs, and ipFamilies.

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