<p>basic question, I have the following LB:</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: my-lb
spec:
  type: LoadBalancer
  ports:
  - name: my-udp-port
    port: 54545
    protocol: UDP
  selector:
    app: my-app
</code></pre>
<p>And for some reason the traffic is not distributed equally (single pod get's ~99% of the traffic). Any idea how to control it?</p>

MTZ4
<p>When an resource is created as &quot;LoadBalancer&quot; service type in k8s by default it doesn't offer load balancing.  If you are looking for proper load balancing then this service needs to be associated with external load balancer of the cloud provider.  For more details please refer <a href="https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types" rel="nofollow noreferrer">k8s service documentation</a></p>
<p>Depending on the cloud provider the algorithm can be chosen at external load balancer end.</p>
<p>Affinity is an different topic and this also can be achieved using external load balancer.</p>
<p>In k8s service abstraction / service proxies is provided by kube-proxy and it has different modes, more details are in their <a href="https://kubernetes.io/docs/reference/networking/virtual-ips/#proxy-modes" rel="nofollow noreferrer">k8s documentation</a>.</p>
