针对已存在的容器添加debug容器

kubectl debug -n kube-public kkfileview-75986595f6-ntvfq --image=harbor.uenpay.com/base/busybox:uenpay --container=busybox


#其他可选项
--image=koderover.tencentcloudcr.com/koderover-public/zadig-debug:v0.1.0
--target=<existing-container-name> # 可选:附加到现有容器进程命名空间


  • No labels