def pod_info(filterstr='', namespace='twopods', multi_ok=True):
    cmd = 'kubectl -n {namespace} get pod {filterstr}  -o json'.format(namespace=namespace, filterstr=filterstr)
    op = getoutput(cmd)
    o = json.loads(op)
    items = o['items']
    if ((not multi_ok) and (len(items) > 1)):
        raise Exception(('more than one found ' + op))
    if (not items):
        raise Exception((('no pods found with command [' + cmd) + ']'))
    i = items[0]
    return POD(i['metadata']['name'], i['metadata']['namespace'], i['status']['podIP'], i['metadata']['labels'])
def pod_info(filterstr=, namespace='twopods', multi_ok=True):
    cmd = 'kubectl -n {namespace} get pod {filterstr}  -o json'.format(namespace=namespace, filterstr=filterstr)
    op = getoutput(cmd)
    o = json.loads(op)
    items = o['items']
    if ((not multi_ok) and (len(items) > 1)):
        raise Exception(('more than one found ' + op))
    if (not items):
        raise Exception((('no pods found with command [' + cmd) + ']'))
    i = items[0]
    return POD(i['metadata']['name'], i['metadata']['namespace'], i['status']['podIP'], i['metadata']['labels'])