<p>I need to </p>

<ul>
<li>expose some pods directly on nodes, for TCP &amp; UDP </li>
<li>be able to access them externally, individually</li>
</ul>

<p>I would like to avoid creating a loadbancer service for each pod as there is no need of loadbalancing, just the exposure to outside world.</p>

<p>I don see any solution with Service or Ingress.</p>

<p>All this happens in GKE.</p>

<p>Would someone have an idea?</p>

<p>thanks!</p>

<p>If your nodes are accessible from the outside world you can get away with just <code>hostNetwork: true</code>, there are some potential issues with it though (ie. just one pod per host or potential port conflicts with other stuff on node). You don't need any service defined for it, as it will just listen on your nodes ports (need to have them open on firewall, security policies or whatever guards your nodes from external world).</p>

<p>Any use of service (except for maybe headless one) will result in a loadbalancing between all backing pods (be it ClusterIP, NodePort or LB), but only LB service will give you a dedicated external IP.</p>
