Port forwarding with kubectl

If you want some kubernetes pod to forward all the traffic to you local machine, you can do this:
1. get pod id with

2. forward exact port from it to you localhost with

And you can request you localhost to reach pod on selected port.

LEAVE A COMMENT