Пример #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
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)