I want to build a python script that accesses a kubernetes worker node, lists the network interfaces and captures the traffic of the choosen interface (with tcpdump for exemple) and then store the pcap file somewhere on the master node.
I want to know if it is possible to access a worker node from my master node without ssh? (maybe with a direct k8s-apiserver call ?)
If ssh is the only way to access the worker node, how can i make a connection without entring the worker’s password (for authentification).
Or maybe there is another way to do this ?