Skip to content

PMTUD Failure with Tailscale k8s Operator When Client MTU Exceeds Proxy's tailscale0 MTU #16197

Open

Description

@matans-kela

What is the issue?

What happened?

When a service is exposed via the Tailscale Kubernetes operator, and the external Tailscale client has a tailscale0 MTU larger than the Tailscale proxy pod's tailscale0 MTU (e.g., client 1460 vs. proxy 1280), connections become extremely slow or fail. Packet captures show the Tailscale proxy pod correctly sending ICMP "Fragmentation Needed" messages (indicating its 1280 MTU egress path for Tailscale) to the backend service pod (e.g., Traefik) within the cluster. However, the backend service pod does not consistently reduce its segment size in response to these ICMPs. This leads to repeated ICMP generation, packet loss between the proxy pod and the client, and eventual connection timeouts or severe retransmission delays.

What did you expect to happen?

We expected Path MTU Discovery to function correctly, with the backend service pod (Traefik) honoring the ICMP "Fragmentation Needed" messages from the Tailscale proxy pod. This should lead to the backend service adjusting its segment size to fit the 1280 MTU path through the Tailscale proxy, resulting in smooth data transfer to the client, regardless of the client's initially larger tailscale0 MTU.

Steps to reproduce

  1. Deploy the Tailscale Kubernetes operator (v1.84.0) and expose an HTTP service (e.g., Traefik).
  2. Configure the underlying CNI (Cilium v1.17.4) with a global MTU higher than Tailscale's typical link MTU (e.g., Cilium MTU 9001, resulting in pod eth0 interfaces of 9001).
  3. Ensure the Tailscale proxy pod's internal tailscale0 interface is using its default MTU (typically 1280).
  4. Configure an external Tailscale client with a tailscale0 MTU larger than the proxy pod's tailscale0 (e.g., client tailscale0 MTU 1460).
  5. Ensure TSO/GSO is OFF on the backend service pod (e.g., Traefik) to force it to segment packets based on its eth0 MTU.
  6. Attempt to download a file from the exposed service using the client.
  7. Observe extremely slow transfer or timeout. Packet captures on the Kubernetes node (e.g., tcpdump -i any) will show ICMP "Fragmentation Needed" from the Tailscale proxy pod's eth0 IP directed at the backend service pod, but the backend service continues to send packets that are too large for the Tailscale proxy's 1280 MTU tailscale0 egress.

Are there any recent changes that introduced the issue?

No response

OS

Linux

OS version

Ubuntu 22.04 LTS

Tailscale version

1.84.0

Other software

Kubernetes: K3s v1.32.5+k3s1
CNI: Cilium v1.17.4 (with kubeProxyReplacement=true, native routing)
Backend Service Example: Traefik (e.g., rancher/mirrored-library-traefik:3.3.6)

Bug report

BUG-4a2f9f1c8f01f20a2de1a2f190694565825a46afd4b7cc968119b8fc2f30239d-20250605094406Z-30ffb5f1704cedb5

Activity

  1. added theissue type on Mar 17, 2026
  2. added
    Refined
    Backlog
    and removed
    Refined
    on Mar 17, 2026
  3. mpstefan commented on Mar 17, 2026

    @mpstefan

    Related to MTU issues with Cilium.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogOS-linuxbugkubernetes

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions