An open API service indexing awesome lists of open source software.

https://github.com/kvaps/kubectl-proxy-port-forward

Proxy to remote host via Kubernetes
https://github.com/kvaps/kubectl-proxy-port-forward

Last synced: about 1 year ago
JSON representation

Proxy to remote host via Kubernetes

Awesome Lists containing this project

README

          

# 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](https://krew.sigs.k8s.io/):


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

or using curl:

```bash
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

```bash
kubectl proxy-port-forward :: [::]
```

## Example

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