Networking
medium

Pregunta de Networking #019e3a4f

Enunciado de la Pregunta
Networking
#kubernetes
#ipv4
#ipv6
#dual-stack
#networking
Medio

The IPv4/IPv6 dual stack in Kubernetes:

A

Translates an IPv4 request from a service to an IPv6 service.

B

Allows you to access the IPv4 address by using the IPv6 address.

C

Requires NetworkPolicies to prevent services from mixing requests.

D

Allows you to create IPv4 and IPv6 dual stack services.

Correcto

Explicación Oficial / Explicaciones de la Comunidad

The IPv4/IPv6 dual stack feature in Kubernetes allows clusters to simultaneously support both IPv4 and IPv6 addresses. This enables pods and services to be assigned both an IPv4 and an IPv6 address, facilitating communication over either protocol. The correct statement is that dual stack allows you to create IPv4 and IPv6 dual stack services. This is achieved by configuring the cluster with both IP families enabled, typically by setting --cluster-ip ranges for both IPv4 and IPv6 in the API server and controller manager, and enabling the IPv6DualStack feature gate (which is stable since Kubernetes 1.23). Services can then be created with ipFamilyPolicy: PreferDualStack or RequireDualStack to assign both IPv4 and IPv6 cluster IPs. The incorrect options are: translating an IPv4 request to an IPv6 service is not a function of dual stack; accessing an IPv4 address via an IPv6 address is not supported; and NetworkPolicies are not required to prevent mixing requests—dual stack services handle both protocols natively without needing NetworkPolicies for separation.