Boss lesson · Unit 02
Follow one request
From the internet to a container hop by hop, and a selector that matches nothing.
What you practise
- From the internet to a container, hop by hop
- A selector that matches nothing found and fixed
Try a question from this lesson
Pick one
A user opens https://shop.example.com/api/cart. The api container listens on 8080 in a Pod at 10.244.2.9. Why can the browser not just connect to 10.244.2.9:8080?
Hint
Two problems: can that address be routed from the internet at all, and will the same Pod be there tomorrow?
Correct answer
Pod addresses are private to the cluster, and they change
Why
A Pod IP is a private address that means something only inside the cluster network, like the private ranges in the networking roadmap. And the Pod behind it can be replaced at any time. The public path has to end at something stable.
The idea
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
The whole path
Every hop turns a stable thing into the next, less stable thing.
Public DNS: a name to the balancer's IP. The balancer: to the ingress controller, which is itself Pods behind a LoadBalancer Service. The Ingress rules: host and path to a Service. The Service: a selector to whichever Pods are ready now.
When a request fails, the fault is at one hop. Test from the inside out, and read the first hop that fails.
browser
| DNS: shop.example.com
load balancer public IP
|
ingress controller reads host, path
|
Service api stable name, port 80
|
Pod 10.244.2.9 port 8080, may change11 more exercises in the app
- 1× order the lines
- 1× match the pairs
- 5× multiple choice
- 2× type the answer
- 1× fill the blanks
- 1× true or false
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.