Distribution of UDP packets on multiple Pods

Hi Team,

This is query regarding distribution of UDP packets on multiple pods.

We have tested two scenarios:

Scenario 1:

We have enabled kube-proxy mode to IPVS in cluster and created a service (externalTrafficPolicy: Cluster, type: NodePort) and multiple pods are running behind it.

We have pods with Rsyslog app containers, and we are sending UDP traffic from UDP traffic generator to service.

The UDP packets were not being equally distributing over pods, the only one pod receives all traffics at time.

Scenario 2:

In scenario 2, We have enabled kube-proxy mode to Iptables in cluster and created a service (externalTrafficPolicy: Cluster, type: NodePort) and multiple pods are running behind it.

We have pods with Rsyslog app containers, and we are sending UDP traffic from UDP traffic generator to service.

The UDP packets were being distributing with different ratio, 50% traffic on one pod and 25% & 25% on two pods.

Kindly suggest how we can achieve the UDP traffic distribution over pods.

Thanks