kubectl cp test-namespace/test-pod:logs/tests.log ./logs/tests.log 将k8s 服务的日志输出到当前目录logs下,名字为tests.log