def kubectl_exec(pod, remote_cmd, runfn=run_command, container=None):
    namespace = os.environ.get('NAMESPACE', 'twopods')
    c = ''
    if (container is not None):
        c = ('-c ' + container)
    cmd = 'kubectl --namespace {namespace} exec -i -t {pod} {c} -- {remote_cmd}'.format(pod=pod, remote_cmd=remote_cmd, c=c, namespace=namespace)
    print(cmd)
    runfn(cmd)
def kubectl_exec(pod, remote_cmd, runfn=run_command, container=None):
    namespace = os.environ.get('NAMESPACE', 'twopods')
    c = 
    if (container is not None):
        c = ('-c ' + container)
    cmd = 'kubectl --namespace {namespace} exec -i -t {pod} {c} -- {remote_cmd}'.format(pod=pod, remote_cmd=remote_cmd, c=c, namespace=namespace)
    print(cmd)
    runfn(cmd)