Microservices shop, mission 2 of 7
Wrong door
intermediate, about 8 minutes, in the Kubernetes Simulator
Opens once you pass Find each other.
The briefing
Checkout is broken. The frontend calls http://cart/api/cart and gets Connection refused — yet the cart pod is Running and Ready, and the cart Service exists.
A Service forwards its port to each pod's targetPort. When nothing listens on the targetPort, the connection is refused, however healthy the pod.
What you'll do
- Find where the connection goes
- The frontend reaches the cart API through the cart Service
- Bonus star: Check the cart's logs to see which port it listens on
The mission checks the cluster, not your keystrokes: any fix that works, passes.
Read first
More Microservices shop missions
- 1. Find each other
- 2. Wrong door
- 3. One front door
- 4. Need to know
- 5. Outbound only
- 6. A fixed address
- 7. Moved out