-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
if i use kubectl debug ,i can find shared pid and mnt namesapce. |
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 |
I do it,but doesn't works. and it say no coredns |
Could you please provide the output of the |
cdebug exec -it --image busybox:musl --namespace=kube-system pod/coredns-c97d8fd78-kg4s5/corednsDebugger container name: cdebug-860ce1e2 Ran into the same problem, getting into the coredns container reported an error. If you don't add coredns, there is no problem
|
[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: