Tunneling via Kubernetes

For security reasons, you might find your database (or any service for that matter) in an internal subnet, somewhere in the cloud. Accessing this for local debugging/development can be a pain. Using Kubernetes (assuming you have a cluster already), you can use this to your advantage. Create the tunnel What you need: Kubernetes (with API access via kubectl ofcourse) An image with netcat installed (Nice opportunity to punt mine 😉) tcpserver (should come with any Debian based distro) Next, ensure your pod is running....

October 2, 2020 · 2 min · 225 words · Rameez Khan