Skip to content

UDP traffic forwarded to nodes with no healthy pods matching selector #528

@gnarlex

Description

@gnarlex

Expected behavior: When managing a service object of type LoadBalancer and externalTrafficPolicy: Local, the associated load balancer only forwards its UDP traffic to nodes with healthy pods allocated to them matching the selector.

Actual behavior: The load balancer round-robin assigns UDP traffic to all nodes, independent of whether or not they have matching healthy pod assigned to them.

Steps to reproduce
Cluster-side:

  • 4 nodes
  • 1 deployment, with replicas=1
    • running netcat on UDP port 22333 (nc -lkvu 22333)
  • 1 svc
    • type: LoadBalancer
    • ExternalTrafficPolicy: Local
    • ports: [udp:22333]

Client-side:

  • Open a netcat connection to the IP that was allocated to the service object, and UDP port 22333
    • nc -vu $IP 22333
  • Repeat a couple times, and you should see on the server side, that only every 4th connection attempt succeeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions