Projects, mission 1 of 3
Launch the bookstore
advanced, about 30 minutes, in the Kubernetes Simulator
Free in your browser, nothing to install.
The briefing
Ticket WEB-142 — launch the Bookstore. The cluster is empty apart from the ingress controller. Build it the way you'd build it at work.
- frontend —
nginx:1.27, 2 replicas, serving our page:index.htmlin your directory. - api —
ghcr.io/hackademy/orders-api:1.2, 2 replicas, listening on 8080. It readsDB_PASSWORDfrom its environment; the database password isb00ks-prod-7, and it must not appear in any Deployment. - Customers use http://bookstore.local:
/goes to the frontend,/apito the API. - The API answers
/readyonly once it can reach the database. Don't send it traffic before that. - The launch email goes out in about ten minutes: the API must scale itself between 2 and 6 replicas on CPU.
Name things as the ticket does (frontend, api) — the team's dashboards look for those names. There are no starter files beyond the page, and the hints won't hand you commands.
What you'll do
- The API runs 2 ready replicas, its password from a Secret
- Only API pods that can reach the database get traffic
- The frontend serves index.html from a ConfigMap, 2 replicas
- bookstore.local serves the page at / and the API at /api
- The API scales itself between 2 and 6 replicas on CPU
- Ride out launch traffic with at least 4 ready API pods
- Bonus star: Check the page through the front door with curl
The mission checks the cluster, not your keystrokes: any fix that works, passes.
More Projects missions
- 1. Launch the bookstore
- 2. Launch the arena
- 3. Serve the model