Hello everyone,
I am looking to configure a k3s
single-node-cluster so that it is accessible only via a specific NIC/bind-address that should be reachable exclusively through NetFoundry (Ziti Edge Tunnel).
At the moment, I can interact with the Kube-API-Server via NetFoundry network (from my PC, in which I have Ziti Desktop) and via shell of a device connected to the same LAN of the k3s-node.
The goal is to ensure that all communications to the cluster occur through NetFoundry, enhancing security and controlling access.
Here are some details about my current setup:
- I am using
k3s
on a Linux node. - I have configured Ziti Edge Tunnel to create a secure endpoint that is reachable via NetFoundry.
- I want the
k3s
server to listen only on this specific network interface.
By default, when k3s
is started, it uses 0.0.0.0
as the bind-address, which makes it accessible on all network interfaces. For hardening purposes, I want to restrict this and make it accessible only via 127.0.0.1
.
So far, I have attempted to set the --bind-address
of the k3s
server to 127.0.0.1, but I have encountered some difficulties and am not sure of the best way to properly configure it.
In particular, if i start the k3s server with --bind-address=127.0.0.1, I can interact with the API server from my PC (via NetFoundry) and no more from the shell of a device connected to the same LAN of the k3s-node. And this is exactly what I want.
But this way, some system-level pods don’t properly start (CrashLoopBackOff), producing errors like: " dial tcp 10.43.0.1:443: connect: connection refused"
Specific Questions:
- What is the correct procedure to configure
k3s
to use a specific NIC/bind-address that is reachable only via NetFoundry? - Are there any special configurations or security considerations I should take into account to ensure that all traffic to the cluster goes through NetFoundry?
- Do you have any examples or guides that demonstrate how to securely and efficiently integrate
k3s
with NetFoundry (Ziti Edge Tunnel)?
Any suggestions or configuration examples would be extremely helpful.
Thank you very much!