Demo: deploying Shop Platform to a cluster
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
run all services behind the gateway on a cluster. Prepares MID-057-LAB1.
Draft outline details
Step by step
- Start a kind or k3d cluster (or use the managed one); create the
shopnamespace. - Apply ConfigMaps, Secrets, and Deployments for
catalog,inventory,orders, and the gateway; install Kafka by operator or point to a managed one. - Planned mistake: deploy
ordersbefore PostgreSQL is ready and without a startup probe; pods restart repeatedly. Fix: add a startup probe and readiness checks, and let the app retry the connection. - Add Services and an Ingress; call the API through the gateway.
- Add resource requests and limits and an HPA on
orders; run a rolling update while a load script runs and confirm no failed requests.
Check your understanding
What makes a rolling update lose no requests?
Show answer
Correct readiness probes, graceful shutdown, and surge capacity.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.