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
