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
The private database is reachable.
The session connects through localhost while PostgreSQL remains private inside the cluster.
Lesson
Prefer temporary, authenticated access paths for investigation. Port-forwarding is convenient, but it should still use least-privilege credentials and be closed when the work is done.