kubectl命令
2021-03-16 本文已影响0人
小烧饼a
进入 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