You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if my target pods is kubernetes coredns, i can not find shared pid and mnt namespace, Because there is no shell, command line operations cannot be executed
#43
Open
sun363587351 opened this issue
May 7, 2024
· 4 comments
[root@master ~]# cdebug exec --namespace=kube-system -it pod/coredns-5cd85ddb9f-ls5dl
Debugger container name: cdebug-47f86597
Starting debugger container...
Waiting for debugger container...
Attaching to debugger container...
If you don't see a command prompt, try pressing enter.
/ # ps aux
PID USER TIME COMMAND
1 root 0:00 sh /.cdebug-entrypoint.sh
11 root 0:00 sh
12 root 0:00 ps aux
The text was updated successfully, but these errors were encountered:
Thanks for the report! The reason for you not seeing the expected processes is because you're targeting the Pod and not the concrete container inside of it. Could you try cdebug exec --namespace=kube-system -it pod/coredns-5cd85ddb9f-ls5dl/coredns instead? (notice the /coredns addition).
Thanks for the report! The reason for you not seeing the expected processes is because you're targeting the Pod and not the concrete container inside of it. Could you try cdebug exec --namespace=kube-system -it pod/coredns-5cd85ddb9f-ls5dl/coredns instead? (notice the /coredns addition).
[root@master ~]# cdebug exec --namespace=kube-system -it pod/coredns-5cd85ddb9f-ls5dl
Debugger container name: cdebug-47f86597
Starting debugger container...
Waiting for debugger container...
Attaching to debugger container...
If you don't see a command prompt, try pressing enter.
/ # ps aux
PID USER TIME COMMAND
1 root 0:00 sh /.cdebug-entrypoint.sh
11 root 0:00 sh
12 root 0:00 ps aux
The text was updated successfully, but these errors were encountered: