import os
# kubectl cp <some-namespace>/<some-pod>:/tmp/foo /tmp/bar
kubectl_create_command = r'kubectl cp testbatch/test-1-prod-1650582060-pp788:test-1-prod-1650582060-pp788_2022042123.log ./test-1-prod-1650582060-pp788_2022042123ui.log  --kubeconfig=Kubeconfig'
os.system(kubectl_create_command)
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐