kvaps / kubectl-proxy-port-forward

Proxy to remote host via Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kubectl proxy-port-forward

Start socat with proxy to remote host in Kubernetes and forward one or more local ports to it.

Installation

using krew:

kubectl krew index add kvaps https://github.com/kvaps/krew-index
kubectl krew install kvaps/proxy-port-forward

or using curl:

curl -LO https://github.com/kvaps/kubectl-proxy-port-forward/raw/master/kubectl-proxy_port_forward
chmod +x ./kubectl-proxy_port_forward
sudo mv ./kubectl-proxy_port_forward /usr/local/bin/kubectl-proxy_port_forward

Usage

kubectl proxy-port-forward <local_port>:<remote_host>:<remote_port> [<local_port>:<remote_host>:<remote_port>]

Example

kubectl proxy-port-forward 8443:google.com:443 6443:kubernetes.default.svc:443
curl -k https://localhost:6443

About

Proxy to remote host via Kubernetes

License:Apache License 2.0


Languages

Language:Shell 97.1%Language:Dockerfile 2.9%