Joe Santos
Joe Santos

Reputation: 28

Port forward from kubernetes pod to local container

I need to connect a service running in a local container inside Docker on my machine to a database that's running on a Kubernetes cluster.

Everything I found on port forwarding allowed me to connect my machine to the cluster, but not the local container to the cluster (unless I install kubectl on my container, which I cannot do).

Is there a way to do this?

Upvotes: 1

Views: 628

Answers (1)

coderanger
coderanger

Reputation: 54211

https://www.telepresence.io/ is what you're looking for. It will hook into the cluster network like a VPN and patch the services so traffic will get routed through the tunnel.

Upvotes: 3

Related Questions