下载pod内文件到本地


kubectl exec PODNAMME -nNAMESPACE -- tar cPf - /tmp/gc.log | sudo tar xf - -C .

PODNAME:pod名字
NAMESPACE:命名空间