عرض عملي: نشر Shop Platform على عنقود (cluster)
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
run all services behind the gateway on a cluster. Prepares MID-057-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- 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.
اختبر فهمك
What makes a rolling update lose no requests?
أظهر الإجابة
Correct readiness probes, graceful shutdown, and surge capacity.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.