<p>I'm trying to route incoming traffic into specific pods inside Kubernetes:
As suggested here:
<a href="https://stackoverflow.com/questions/45606977/is-it-possible-to-specific-custom-rules-for-running-new-containers-in-kubernetes">Is it possible to specific custom rules for running new containers in Kubernetes/Docker?</a></p>

<p>I tried to use Ingress. Unfortunetly it seems to work only with http and I need to route traffic incoming from UDP.</p>

<p>Using config map I can't map specific URLs to specific services.</p>

<p>Any ideas on how to handle it ?</p>

<p>Ingress is for HTTP traffic so you're right to say that it cannot meet your needs.</p>

<p>The best way to do this is to use a Service. A Service performs automatic Layer 3 load-balancing across the Pods tagged to it. It will look something like this:</p>

<pre><code>kind: Service
apiVersion: v1
metadata:
  name: ntp-service
spec:
  selector:
    app: ntp
  ports:
  - protocol: UDP
    port: 123
    targetPort: 123
</code></pre>

<p>The disadvantage to this method is that every worker node has to dedicate a port (<code>123</code> in the above example) to the Service.</p>
