Skip to content
Go back

A safe tunnel to PostgreSQL

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

The incident you will investigate

This lab runs in a simulated terminal in your browser. No account, cloud resources, or live cluster is required. Inspect the evidence, diagnose the cause, apply a fix, and verify the result.

environment
staging cluster
workload
service/orders-postgres
status
access required
symptom
database is reachable only inside the cluster

What you will practice

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

Related labs