Microservices shop, mission 5 of 7

Outbound only

advanced, about 15 minutes, in the Kubernetes Simulator

Start mission

Opens once you pass Need to know.

The briefing

From Dana Kowalski, on-call lead at Larchwood (a fictional company)

The pen test came back: from a frontend pod they could reach admin, our internal admin API. The frontend has no business calling anything but catalog and cart.

Lock its outbound traffic down to exactly that. frontend-egress.yaml is a start. Test it from a frontend pod before you call it done — a dropped connection says nothing, it just hangs.

What you'll do

  • The frontend can't reach admin
  • …but still reaches catalog and cart by name
  • Customers still load the shop at shop.local
  • Bonus star: Test from a frontend pod with curl -m

The mission checks the cluster, not your keystrokes: any fix that works, passes.

Concepts

  • Egress policies

    A NetworkPolicy with policyTypes: [Egress] limits what the pods it selects may connect to. Once one selects a pod, only listed destinations are allowed — DNS included, so pods must be allowed to reach kube-dns on port 53. Ports are the destination pod's, not the Service's: traffic through a Service arrives on its targetPort.

    Read the Kubernetes docs

Read first

More Microservices shop missions

  1. 1. Find each other
  2. 2. Wrong door
  3. 3. One front door
  4. 4. Need to know
  5. 5. Outbound only
  6. 6. A fixed address
  7. 7. Moved out
Every Kubernetes Simulator mission

AboutGuidesCompare

PrivacyCookiesTerms

Hackademy is a trading name of Mather Software Ltd, registered in England and Wales, company number 17443861. ICO registration ZC256628.

Contact: support@mathersoftware.com© 2026 Mather Software Ltd