Kubernetes IPv4/IPv6 dual-stack networking

Dual-stack gives a self-managed Kubernetes cluster pod and Service addresses in both IPv4 and IPv6. This page covers what the docs require, the decisions to make first and how to migrate an IPv4-only cluster.

On this page

Kubernetes dual-stack networking: when your cluster needs IPv6 alongside IPv4

Dual-stack means a cluster gives its pods, Services and nodes both an IPv4 and an IPv6 address at the same time, so workloads can be reached over either family without a translation layer in between. In a dual-stack cluster, each pod receives one address per family, each Service can be assigned one or both families, and each node carries addresses for both. You need this when your cluster is facing IPv6 clients, partners or networks that only route IPv6, or when your IPv4 address space is too constrained to keep growing the cluster. Start by listing who actually connects to the cluster over IPv6 and whether those connections must terminate inside the cluster, because a dual-stack cluster only helps if the ingress path, load balancers and upstream networks can carry IPv6 too.

Do not take on the work if the only IPv6 need is outbound access from pods to public endpoints that already resolve over IPv4, or if your clients will be served by a load balancer or proxy outside the cluster that handles IPv6 termination. Dual-stack doubles the address plans, firewall rules, network policy rules and monitoring you must maintain, and every component in the path needs to be checked. Confirm with your network team whether your upstream routers, firewalls and cloud networks have IPv6 enabled and routed before you commit to a design. The Kubernetes documentation defines the feature and its API fields, but how far it works in your cluster depends on your CNI plugin and on the load balancer implementation you choose.

Treat the decision as a requirement, not a preference. Write down the families each Service must serve, the address plan for pod and Service CIDRs in both families, and the test that proves a client can reach the application over IPv6 end to end. Ask your CNI vendor and your load balancer provider to confirm dual-stack support for the exact versions you plan to run, since the feature set varies by plugin. Also confirm how your DNS publishes AAAA records for Services and ingress endpoints, because a working data path is useless if clients never resolve an IPv6 address.

How dual-stack pod, Service and node addresses connect

The diagram starts with an external client resolving a name through DNS, then entering the cluster through a load balancer that can hold addresses from both families. Traffic reaches a Service, which kube-proxy translates to pod endpoints drawn from each family's pod CIDR, while the CNI plugin provides the pod addresses and routes between nodes. Check that each node has an address per family, that the Service CIDRs and pod CIDRs do not overlap with each other or with your network, and that your CNI and kube-proxy both report IPv6 support before you enable the feature.

Address flow from an external client to pods across both IP families.

Which ipFamilyPolicy and family order fits each workload

SingleStack gives a Service one IP family, either IPv4 or IPv6, chosen from the cluster's configured families. It is the most predictable option when the cluster is dual-stack but a particular workload only needs one family, and it matches how most existing Services already behave after a migration. Because the Service gets a single ClusterIP, any client that connects to it must reach that family.

  • Legacy clients: A workload consumed only by IPv4 partners or internal tools keeps a single IPv4 ClusterIP, so nothing downstream changes.
  • Single family per Service: The Service receives one ClusterIP. Clients that only resolve or route the other family cannot reach it.
  • Explicit family selection: Setting ipFamilies to one value makes the family decision visible in the manifest for reviewers.
  • Lower surprise during rollout: Teams can enable dual-stack at the cluster level and move Services one at a time.
  • Duplicate Services for both families: If both families are needed, the usual pattern is a second Service, which doubles the names and endpoints to manage.

Before choosing SingleStack, confirm with each consumer which address family it resolves and connects over, and record that in the Service review.

Checking CNI and kube-proxy support before you commit

This table lists the decisions to confirm with each CNI plugin and kube-proxy mode before you enable dual-stack: pod addressing, Service families, NetworkPolicy handling for IPv6 and upgrade behavior. Treat every cell as a question to answer from the plugin's current documentation and your own test cluster, not as a statement of support. A plugin that works for IPv4 today can still differ on IPv6 policy or on how it handles an existing cluster, so verify each row for the exact versions you plan to run.

Decision to verifyWhat to confirmEvidence to collect
Dual-stack pod addressingWhether the plugin assigns both IPv4 and IPv6 pod addresses from pod CIDRs for each node (confirm in current plugin docs)Pod with an address from each family, verified on two nodes
Service support for both familiesWhether ClusterIP Services can be allocated in both families and how kube-proxy programs IPv6 rules in your mode (confirm)Services created with each ipFamilyPolicy, reachable over both families
kube-proxy modeWhether your chosen mode (iptables, IPVS or nftables where offered) supports dual-stack for your release (confirm)Test Service traffic over IPv6 using the exact mode in production
NetworkPolicy for IPv6Whether policy rules match IPv6 CIDRs and apply to IPv6 pod traffic, and whether any rule type is IPv4-only (confirm)Allow and deny tests for IPv6 source and destination pods
Node and host networkingWhether host-network pods, node addresses and BGP or overlay settings need an IPv6 configuration (confirm)Node routes and host-network connectivity checks in both families
Upgrade behaviorHow the plugin handles adding IPv6 to an existing cluster, including IPAM changes and whether pods must be recreated (confirm)Results from a rehearsal upgrade in a staging cluster with rollback steps

Enabling dual-stack on a kubeadm cluster step by step

This sequence takes an IPv4-only kubeadm cluster or a planned new cluster to working dual-stack pods and Services, with each step closed by a check that confirms both address families are in use. Confirm every flag and field against the kubeadm and component documentation for your chosen Kubernetes version before you run anything.

  1. Plan pod and Service CIDRs for both families

    The network owner and the platform lead agree on an IPv4 and an IPv6 range for pods and another pair for Services, and check that none overlap with node networks, VPNs, cloud subnets or existing data center ranges. The IPv6 prefix must come from addresses your organization owns or has been allocated, and the plan should record which family is primary for each Service type. Confirm the exact CIDR size limits your CNI and kube-apiserver accept for the version you run. Done means a signed-off addressing table that every later step references.

  2. Confirm CNI and kube-proxy dual-stack support

    Before touching any control plane setting, the cluster engineer checks that the chosen CNI plugin documents dual-stack pod networking for the Kubernetes version in use, including IPAM mode, routing and any NetworkPolicy behavior for IPv6. The team also confirms that kube-proxy runs in a mode that handles both families, and that the node operating system has IPv6 forwarding and the required kernel modules enabled. Check the CNI vendor's dual-stack page and the Kubernetes dual-stack documentation for the current requirements. Done means a written compatibility note with the version pairs you tested.

  3. Enable dual-stack on the control plane

    The cluster engineer adds the dual-stack pod and Service CIDR settings to the kubeadm configuration and applies them to kube-apiserver, kube-controller-manager and kube-proxy, so that each component is told both ranges and the order in which they are listed. On new clusters this happens during kubeadm init; on existing clusters it requires careful, component by component changes and a control plane restart window. Confirm the field names in the kubeadm configuration reference for your version. Done means each control plane component starts cleanly and the node objects show a pod CIDR for each family.

  4. Configure dual-stack on each node

    On every worker and control plane node, the team confirms that the kubelet is started with dual-stack node addresses, that each node has a global IPv6 address on its primary interface, and that the node's pod CIDR allocation covers both families. Nodes added after the control plane change should be checked for the same settings so that no node comes up IPv4-only by accident. Use kubectl to read the node addresses and pod CIDRs, and compare them with the addressing table. Done means every node reports an IPv4 and an IPv6 internal address.

  5. Install the dual-stack CNI plugin

    The cluster engineer installs or upgrades the CNI plugin with its dual-stack configuration, using the pod CIDR values from the plan and the routing mode chosen during planning. The platform team confirms that the CNI pods are running on all nodes and that cross-node traffic works over both IPv4 and IPv6 for test pods on different hosts. If the plugin uses overlay encapsulation, check that the MTU is set for both families. Done means CNI pods are healthy on every node and a test pod on each family can reach a pod on another node.

  6. Verify addresses on pods and Services

    The cluster engineer creates a test Deployment and a test Service with ipFamilyPolicy set to a dual-stack option, then reads the pod status and Service spec to confirm that each pod has an IPv4 and an IPv6 address and that the Service receives a ClusterIP for each family. The team also tests a Service that requests a single family to confirm the policy behaves as the plan describes. Done means the pod and Service objects show both addresses and the single-family test behaves as documented.

  7. Test DNS returns A and AAAA records

    From a test pod, the engineer queries the cluster DNS name of the dual-stack Service for both A and AAAA records, using a DNS client with the query type set explicitly, and compares the answers with the Service's ClusterIP values. The team also checks the CoreDNS configuration and the upstream resolver for IPv6 handling, and confirms that a query for an external name returns the records the network team expects. Done means both record types resolve to the Service addresses recorded in the earlier check.

  8. Document the exceptions and plan the load balancer

    The team records each Service that must stay single-family, any external load balancer that handles only IPv4, and the firewall and NetworkPolicy rules that cover IPv6, then assigns owners for each. Load balancer behavior for IPv6 depends on the provider or on-premises load balancer in use, so the network team should confirm address pools and announcement behavior with the vendor documentation before exposing Services. Done means a reviewed exceptions list and a runbook that the operations team can use after handover.

How load balancers and DNS behave with two address families

Dual-stack does not stop at the cluster network. Load balancers, DNS records and ingress or Gateway entry points each decide whether clients reach a Service over IPv4, IPv6 or both. The four cards below cover the points where those layers can quietly diverge, and what to confirm with each vendor before cut-over.

LoadBalancer Services with one or two addresses

A LoadBalancer Service on a dual-stack cluster may receive one external address or one per family, depending on its ipFamilies and ipFamilyPolicy settings and on whether the load balancer implementation allocates from both pools. Confirm with your load balancer vendor whether it assigns IPv6 addresses from a separate pool, whether it advertises both families, and how it reports status when only one family is allocated. An address that never appears leaves the Service looking healthy in the cluster while external clients fail.

Dual-stack docs

External-dns or manual A and AAAA records

Each family needs its own DNS record type: A for IPv4 and AAAA for IPv6. If you use external-dns, confirm that your version and provider configuration create both record types from the same Service or Ingress annotation, and that the provider supports AAAA records in your zone. If records are managed by hand, assign an owner to each family so an IPv6 address is not left pointing at a retired endpoint after a rebuild.

CoreDNS answering both families

CoreDNS answers AAAA queries for Services and pods only when the cluster is configured for IPv6 addressing, and upstream resolvers used for enterprise domains must also return AAAA data correctly. Check how stub domains and forward plugins behave for AAAA lookups, because a resolver that drops or times out on AAAA can add delay to every connection attempt. Confirm with your DNS team which resolvers answer IPv6 queries and whether they are monitored for both record types.

Ingress and Gateway entry points

An ingress controller or Gateway implementation may bind listeners on IPv4 only, IPv6 only or both, and its Service behind the listener carries its own family policy. Confirm with the controller vendor which families its listeners and generated Services use, how TLS certificates cover IPv6-reached hostnames, and whether health checks from the load balancer target the same family as client traffic. Test each hostname over both families before relying on it.

Dual-stack docs

Migrating an IPv4-only cluster without a rebuild

Enabling dual-stack on a running cluster is a planned change, not a flag flip. Existing Services stay single-stack because their ipFamilies and ipFamilyPolicy are set when they are created, so each Service needs to be recreated or patched deliberately. Pod addresses change when pods restart, which means the IPv6 range has to be in place before workloads are rescheduled. The pod and service CIDR ranges also cannot simply be widened in place. The cluster's configured ranges, the CNI plugin's IPAM pools and the kube-controller-manager settings all have to be reviewed, and a change to them is best treated as a maintenance event with a written rollback path. Confirm the exact behavior of your Kubernetes version against the Kubernetes documentation before you plan the sequence.

A staged migration usually starts in a non-production cluster built from the same distribution, CNI plugin and node image as production. Confirm with your CNI plugin vendor or project which IPv6 pool and encapsulation options it supports, how it allocates addresses to nodes once a second family is added, and whether an existing IPv4-only pool can be extended or must be paired with a new pool. Also confirm how the plugin handles NetworkPolicy rules written for IPv4 only, because an IPv6 path may bypass policies you assumed were enforced. Then roll the change node by node or namespace by namespace, starting with a workload that has no external exposure and clear health checks. Test dual-stack Services, DNS answers for both families, and outbound IPv6 connectivity from pods before moving on.

Plan the rollback before the first change. For each stage, record the prior CNI configuration, the cluster CIDR settings and the manifests of the Services you will recreate, so you can restore them quickly. Keep the IPv4 path working throughout, since most workloads will continue to use it during the transition. Ask the team that owns the network and firewalls to confirm IPv6 routing, address allocation and load balancer behavior before production work begins, because those dependencies often fail after the cluster itself looks healthy. Treat each stage as complete only when its workloads pass functional tests and monitoring shows no unexpected drops in connectivity.

Security and operations risks in dual-stack clusters

Dual-stack adds a second address family to pods, Services and nodes, and most controls written for IPv4 do not automatically cover the new traffic. The cards below cover where that gap usually appears: network policy, perimeter filtering, observability and certificates with kubelet settings. Each item should be verified in your own cluster before workloads move to dual-stack.

IPv6 NetworkPolicy gaps

NetworkPolicy rules written with IPv4 CIDR blocks do not describe IPv6 sources or destinations, so an allow or deny rule may apply to only one family. Pods can then reach services over IPv6 that the team believed were blocked. Check that your CNI enforces policy for both families, then write a test for each namespace that sends traffic over IPv6 and confirms the expected deny or allow result. Document any policy that still uses IPv4-only selectors.

Pod Security Standards

Firewalls and security groups

Node firewalls, cloud security groups and load balancer rules are often written for IPv4 only. When a Service or node receives an IPv6 address, traffic on the new address can bypass filters that operators assume are in place, or be dropped in a way that breaks health checks. Inventory every perimeter control that touches cluster nodes and load balancers, and confirm that each has an explicit IPv6 rule set. Test the API server port and NodePort ranges on both addresses.

API server port
6443

Monitoring and logging by family

Dashboards, alert rules and log pipelines often filter on IPv4 addresses or parse only one address format. Dual-stack traffic can then be undercounted, and an incident on the IPv6 path may not appear in alerts or search results. Confirm that flow logs, ingress logs and metrics labels capture both families, and that alerts fire on IPv6 endpoint health. Include an IPv6 test request in the monitoring acceptance checklist.

Certificate SANs and kubelet settings

API server and ingress certificates must list both IPv4 and IPv6 addresses in their subject alternative names if clients connect by address. Kubelet and control plane flags that set advertise or bind addresses also need both families, or nodes may register with only one. Confirm the certificate SANs in the kube-apiserver serving certificate, check kubelet node addresses with the node status output, and plan renewal so new addresses are added before clients switch.

kubeadm HA guide

Dual-stack questions buyers ask before hiring help

What drives the effort of adding IPv6 to a Kubernetes cluster?

The main drivers are the CNI plugin you run, how your cloud or data center network already handles IPv6, how many load balancers and ingress paths you publish, and how many applications, scripts and firewall rules assume IPv4. A cluster on a CNI with mature dual-stack support, a network team that already routes IPv6, and a short list of IPv4-only assumptions is far less work than a cluster where every service has hard-coded addresses. Ask any partner to walk through each of these four areas against your environment before agreeing on scope.

Can our platform team enable dual-stack on its own?

Often yes, if the team already runs kubeadm or a similar installer, has someone comfortable with CNI configuration, and can test on a non-production cluster first. The harder parts are usually outside the cluster: address allocation from the network team, upstream routing, firewall policy, and load balancer announcements. Check the Kubernetes dual-stack documentation for the version you run, then decide which steps your staff can carry without a second pair of eyes. Many teams keep the design review and the cutover test with an outside reviewer while doing the routine configuration in-house.

What do we need from network and platform staff during the work?

Network staff own the IPv6 prefixes, routing, firewall rules, DNS zones and any upstream load balancers, so they need to approve address plans and test reachability from outside the cluster. Platform staff own pod and service CIDRs, CNI and kube-proxy settings, node configuration and the rollout. Security staff should review how IPv6 changes network policy coverage, since policies written for IPv4 may not match IPv6 traffic in the same way. Agree on named owners and review dates in the statement of work so decisions do not stall.

How long do planning and testing take for a dual-stack change?

The duration depends on how many clusters you run, how many services and integrations you must check, and how long your network team needs to allocate and approve address space. Planning covers CIDR design, ipFamilyPolicy choices and DNS behavior. Testing covers pod-to-pod, pod-to-external, Service reachability on both families, load balancer behavior and monitoring that understands both families. Ask a prospective partner to show how they break the schedule into planning, lab validation, staged rollout and rollback checks, and which of those steps depend on people outside the platform team.

What should a quote for dual-stack work list?

A useful quote lists the clusters in scope, the Kubernetes version and CNI in use, the address plan review, the number of workload and ingress paths to validate, the load balancer and DNS changes, the test environment, the rollout and rollback plan, and the handover documentation. It should also state what the client provides, such as network approvals, lab access and change windows, and what happens if a dependency is late. Separate one-time design and build work from any recurring support or retesting. Ask for the list of assumptions, because most cost differences come from them.

Will migrating an IPv4-only cluster cause downtime?

It can, and the risk depends on how you change the cluster. Enabling dual-stack on an existing cluster involves changing CIDR and networking configuration that affects running pods and services, so the plan must define a maintenance window, a tested rollback and a way to verify each step. Workloads that only listen on IPv4, or that use IPv4 literals in configuration, need to be found before the change. Confirm the exact upgrade or reconfiguration steps for your Kubernetes version in the official documentation, and test them on a copy of the cluster first.

Does dual-stack change our security and compliance evidence?

Yes. Each address family needs its own network policy coverage, firewall rules, logging and monitoring, or traffic can pass in a family your controls do not inspect. Auditors and internal reviewers will ask how you show that IPv6 traffic is governed in the same way as IPv4. Prepare evidence before the change, including the policy set for each family, the test results and the updated network diagrams. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors issue any audit report or attestation.

How DeployOpen scopes and delivers dual-stack networking

DeployOpen scopes dual-stack work as a fixed-scope engagement that starts with the address plan, because the pod and service CIDRs for both families are the decisions that are hardest to change later. Before any build, the written scope records the IPv4 and IPv6 ranges for pods and Services, the node addresses and any overlap with corporate networks, VPNs or cloud subnets, and the Service ipFamilyPolicy defaults teams expect. It also records which CNI plugin and kube-proxy mode are in use and whether the team has confirmed that the chosen network plugin supports dual-stack in its current release. Each of these items is confirmed with the client's network and platform owners and written into the agreement with the deliverables and acceptance criteria.

The build runs inside the client's own cloud accounts, data centers or air-gapped networks. DeployOpen configures the control plane, kubelet, CNI and kube-proxy for both families, then verifies that each node receives addresses in both ranges and that pods can reach each other across families. Load balancer behavior is checked against the environment the client actually uses, because the address pools, routing announcements and firewall rules for IPv6 often belong to a different team and need their own sign-off. Test cases cover dual-stack Services with ipFamilies in both orders, DNS records for A and AAAA, ingress paths over both families and network policies that match traffic in each family. Results are recorded as evidence the client's own reviewers can rerun.

Handover includes the address plan, configuration as code, the test scripts and a runbook for adding nodes and changing ranges, delivered under the written agreement. Ongoing support, version upgrades and recurring connectivity testing can be covered by a retainer agreed separately, which suits teams that expect to change Kubernetes versions on a regular cycle. DeployOpen does not publish a price list, so the quote follows from the written scope, and the client should ask for each deliverable, test and environment access requirement to be listed explicitly.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.