Slide 26
Slide 26 text
26
Debugging using a copy of the Pod
$ kubectl debug -n kube-system -it coredns-c499c8d7d-xx52r
--image=ghcr.io/pichuang/debug-container:master --copy-to=new-coredns
--share-processes
Not applicable, as this is adding a new Pod, not utilizing an existing one
Debugging using a copy of the Pod
當遇到 Distroless Container 除錯要什麼沒什麼該怎麼辦 ? 你的好朋友 kubectl debug