进入 pod查看
kubectl get pod -n nsp-go-u-dms01
sudo kubectl exec -it ph-channeladminservicedeployment3-65585956c4-lj6wd -n nsp-go-u-dms01 /bin/bash
cd /home/can_azago02uat02/logs/
bash-4.3# ls
glory_channeladminservice_debug.log glory_channeladminservice_error.log glory_channeladminservice_info.log
cat xxx.log | grep callAgentMasterApi
sudo kubectl cp -n nsp-go-u-dms01 ph-channeladminservicedeployment3-65585956c4-lj6wd:/home/can_azago02uat02/logs/glory_channeladminservice_info.log ./xxxx.log
网友评论