<p>I'm learning Kubernetes at the same time I want to use it for personal (but public) projects. Being personal projects my budget isn't big so I have the following configuration:</p>
<ul>
<li>1 master node VPS with a public IP 45.77.114.72, and private IP 10.39.96.5.</li>
<li>1 worker node VPS with a public IP 149.28.111.67, and private IP 10.39.96.4.</li>
<li>1 worker node VPS with a public IP 45.77.113.193, and private IP 10.39.96.3.</li>
</ul>
<p>I've used k3s as the Kubernetes distribution, meaning I have the <strong>traefik ingress controller</strong>, not nginx. After some testing I was able to setup applications and access them from my domain name using an ingress resource, so no problems there. However I see that my services, as well as the traefik loadbalancer, indicate that all public IPs are being used. This is undesirable since I would much prefer not to expose every node.</p>
<p>I tried adding a firewall (from the service provider) to restrict access on those nodes to only packets coming from the sub-network (so that I can still SSH into them from the master node). This works but the ingress still shows all IPs, and I assume this may actually cause problems if it thinks all are publically reachable.</p>
<p>I also tried <strong>setting up a NAT on the master node</strong> and disabling the public IPs on the worker nodes, so all traffic goes trough the master node. This worked to remove the worker nodes public IPs from the ingress but now instead their private IP (not even the gateway) is shown.</p>
<pre><code>2robin@pop-os:~$ k get ingress
NAME         CLASS    HOSTS              ADDRESS                              PORTS     AGE
test-nginx   &lt;none&gt;   test.lycraft.net   10.39.96.3,10.39.96.4,45.77.114.72   80, 443   11m
</code></pre>
<p>I'm at a lost on what to do.</p>

Rubén Pardo
<p>The addresses listed in an Ingress status are related to your Ingress Controllers - and how to reach them/where they run. This is not specific to Traefik: we would see the same with Nginx or other implementations.</p>
<p>The reason you have 3 addresses is that you have 3 replicas of Traefik.</p>
<p>If we want only one of our node to serve as in Ingress for our cluster: in case of a Deployment/ReplicaSet, we would lower the amount of replicas and set a nodeSelector. Or here, with a DaemonSet, just set a nodeSelector, forcing Traefik to start on our designated ingress node.</p>
