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?
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