Skip to main content

Can pods in my cluster reach IPv6-only destinations?

Syself support For release

Not directly. Inbound traffic works over both IPv4 and IPv6 because Hetzner Load Balancers accept connections on both and forward them to your cluster. Inside the cluster, nodes and pods use only IPv4, so a pod cannot open a connection to a host that has only an IPv6 address. See What is the state of IPv6 and dual-stack support? for the full picture.

This rarely matters because almost every public service still has an IPv4 address. It becomes relevant when a workload needs to reach a destination that is available only over IPv6.

Why there is no switch that translates IPv4 to IPv6 

The usual network-level fix is a translator (NAT64 with DNS64). It works by making up IPv4 addresses for IPv6-only hosts. When a pod looks up a hostname, the translator gives back a stand-in IPv4 address, catches traffic sent to it, and passes it on over IPv6.

That trick depends on every application doing DNS lookups the standard way. Many do not:

  • Applications that use their own DNS resolver never see the stand-in address.
  • Code or configuration that contains a literal IPv6 address has nothing to translate.
  • DNSSEC validation rejects the made-up answers.
  • Firewall rules and allowlists that match real addresses see the stand-in instead.

A setting like this would quietly break some workloads in ways that are hard to trace. Syself does not enable it cluster-wide.

What works instead: an HTTP/HTTPS proxy 

If the traffic is HTTP or HTTPS, an outbound proxy solves the problem without any address tricks. The pod asks the proxy for a hostname over IPv4. The proxy looks the hostname up itself and connects over IPv6. HTTPS stays end-to-end encrypted because the proxy only forwards the connection.

A typical setup:

  1. Create a small Hetzner Cloud server with both IPv4 and IPv6, outside the cluster.
  2. Install a forward proxy such as Squid on it and accept connections only from your cluster's addresses.
  3. Point only the workloads that need IPv6 at the proxy using the standard environment variables:
yaml
				env:
  - name: HTTPS_PROXY
    value: "http://<proxy-ip>:3128"
  - name: HTTP_PROXY
    value: "http://<proxy-ip>:3128"
  - name: NO_PROXY
    value: ".svc,.cluster.local,10.0.0.0/8"
			

No changes to the cluster, the nodes, or the network setup are needed. Other workloads are unaffected.

Can Syself help? 

Yes. If you would rather not set it up yourself, our team can help as part of professional services. Contact support@syself.com⁠ and we will take it from there.

Still stuck?

Prepare your case, then email us.