- Inspect
- Diagnose
- Apply fix
- Verify
Your mission
A developer needs to inspect a private PostgreSQL database. The database has no public endpoint, and creating one would widen the attack surface.
- workload
- service/orders-postgres
- status
- access required
- symptom
- database is reachable only inside the cluster
Current objective
Confirm the Service and its database port before opening a tunnel.
Show a hint
Try: kubectl get service orders-postgres Port-forward pattern
kubectl port-forward service/<name> <local-port>:<service-port>
Restart clears this attempt. Completed labs are remembered in this browser.
Incident review
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.
Choose another scenarioCommand transcript
Your commands and their output will appear here.