Is there a way to get the PID information for the host network namespace?
0
votes
0
answers
29
views
I am writing a script that gathers information about containers running within kubernetes that utilize network namespaces to write a CSV with the following information:
"Network Namespace", "Network IP", "Protocol", "Local address", "Remote address", "Status", "PID", "Program name"
The problem I am running into is I can easily gather the pids running within a network namespace utilizing "ip netns pids " but can't figure out a way to get the same information for the host itself. Any insight would be helpful!
Asked by Mikal.Furnell
(1 rep)
May 28, 2025, 03:49 PM