<p>we have single kubernetes cluster which has worker nodes in multiple data-centres which are in different geography area.</p>

<p>we have a service endpoint which connect to the application pods which are in different data-centres. lets say application A has 2 pods running in Data-CentresY, 2 pods in Data-CentreZ and 2 pods in Data-CentreX. now when requests lands on a service endpoint it route traffic to all these 6 pods which are in different data-centres.</p>

<p>we want to implement a latency based routing for service endpoints where when requests lands on a workers node it should route traffic to its nearest pods or pod with low network latency.</p>

<p>any suggestion or guidance are much appreciated.</p>

<p>Use <code>kube-proxy</code> with <code>ipvs</code> mode and use <code>sed</code> - <code>shortest expected delay</code></p>

<p>Refer: <a href="https://kubernetes.io/docs/concepts/services-networking/service/#proxy-mode-ipvs" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/services-networking/service/#proxy-mode-ipvs</a></p>
