Daily Archives: 13.02.2020
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 kubectl —kubeconfig get po -lapp= -Lversion,cfg,infra-cfg 2. forward exact port from it to you localhost with kubectl —kubeconfig port-forward localhost_port:pod_port And you can request you localhost to reach pod on selected …