コード例 #1
0
def run_dist_cmd_on_pod(podId, cmd, outputfile):
    remotecmd = "exec %s -- %s" % (podId, cmd)
    print remotecmd

    k8sUtils.kubectl_exec_output_to_file(remotecmd, outputfile)
    logging.info("kubectl exec " + remotecmd)
    return
コード例 #2
0
ファイル: job_manager.py プロジェクト: junjieqian/DLWorkspace
def run_dist_cmd_on_pod(podId, cmd, outputfile):
    remotecmd = "exec %s -- %s" % (podId, cmd)
    print remotecmd
    k8sUtils.kubectl_exec_output_to_file(remotecmd, outputfile)