talos-vmtoolsd icon indicating copy to clipboard operation
talos-vmtoolsd copied to clipboard

Ingress firewall

Open davralin opened this issue 8 months ago • 2 comments

Greetings!

I have a rough implementation for this, but I'm seeing a lot of I/O timeouts when trying to contact the API-server from the pods. In vCenter I do see that vmware tools is running, but DNS Name is reported as UNKNOWN, and nothing else is populated.

Our nodes run with ingress firewall - so I'm assuming that might be the culprit.

Has that been tested, and if not, what kind of rules should I expect to create?

davralin avatar Mar 09 '25 21:03 davralin

The tool has two ways to connect to the Talos API:

  1. TCP socket to apid (when running as a system extension, I recommend this)
  2. UNIX socket to machined (when running as a pod)

My guess is that you are using the latter, as there is no network traffic in the first one. I'm not really sure about this, but I'd expect you should see error messages in your pod, about the reachability of the Talos API. Could you check and post these messages? I'd like to improve talos-vmtoolsd to actually die/exit when not able to connect to apid.

Anyway, connection to Talos apid is typically over tcp/50000, so I think this is the one should open up.

jonkerj avatar Mar 10 '25 09:03 jonkerj

Hmm, interesting. I must have missed something then, I was under the impression that I needed both the system-extension, AND the running pod.

So this should, using only the extension, just work without any config?

I am indeed using the latter now, but I do also include the extension (or so I thought!).

So, if I add an ingress firewall to tcp/50000, originating from cluster.network.podSubnets this should work?

I'll make sure to get back to you with some logs, with either scenarios.

davralin avatar Mar 11 '25 17:03 davralin

Hi, sorry for not responding, somehow missed a load of GH notifications.. Yes, as an extension you should not need config or firewall rules. If you run it from a pod, your node should allow tcp ingress to 50000.

Can you confirm that this is working for you?

jonkerj avatar May 19 '25 14:05 jonkerj

Can you confirm that this is working for you?

Everything works with just the extension now, all good from my side. Thanks! :-)

davralin avatar May 27 '25 06:05 davralin