Skip to content
Go back

A safe tunnel to PostgreSQL

Reach a private PostgreSQL Service with kubectl port-forward, without exposing the database publicly.

A developer needs to inspect a private PostgreSQL database. The database has no public endpoint, and creating one would widen the attack surface.

Confirm the Service and its database port before opening a tunnel.

Try: kubectl get service orders-postgres