Sign inSign up

mattalord/port-fwdr

By mattalord

Updated about 7 years ago

A simple container image for port forwarding.

Image
0

6.2K

mattalord/port-fwdr repository overview

This can, for example, serve as a sort of jump host when accessing services through a k8s cluster from your local machine. Here's an example for MySQL admins (at this point you will have already connected and auth'd with your k8s cluster):

# run the port forwarder pod in your k8s cluster
$ kubectl run -it --rm -n ${namespace} --image=mattalord/port-fwdr --restart=Never port-fwdr 3306 ${cloud_endpoint}:3306

# forward your local port to the new relay pod
$ kubectl port-forward -n ${namespace} pod/port-fwdr 3306:3306 

Then you can use your favorite MySQL client, e.g. MySQL Workbench, on your local machine to access the remote database instance using TLS.

Source is here: https://github.com/mattlord/docker-port-fwdr

Tag summary

Content type

Image

Digest

Size

28.7 MB

Last updated

about 7 years ago

docker pull mattalord/port-fwdr