<p>I need to forward port of one Kubernetes pods. One possible way is to execute kubectl command like bellow:</p>

<p>kubectl port-forward podm-resource-manager-56b9ccd59c-8pmdn 8080</p>

<p>Is there a way to achieve the same using python (for example python kubernetes-client)?</p>

<p>The method <a href="https://github.com/kubernetes-client/python/blob/release-9.0/kubernetes/docs/CoreV1Api.md#connect_get_namespaced_pod_portforward" rel="noreferrer">connect_get_namespaced_pod_portforward</a> is available in in the python kubernetes-client to do a port forward.</p>
