Running interactive job with port forwarding on kubernetes

11/30/2018

I want to run an interactive exploratory job on kubernetes. AFAIU, the simplest way to do it, is to use kubectl run. However, I can't find an easy way to setup local port forwarding in one command (like ssh port forwarding). Is there any good way to do it?

-- Konstantin Solomatov
kubectl
kubernetes
port

1 Answer

12/3/2018

The feature of local port forwarding in Kubernetes is on promise, function requests have been already raised:

https://github.com/kubernetes/kubernetes/issues/71643 https://github.com/kubernetes/kubernetes/issues/20227

-- mk_sta
Source: StackOverflow