عرض عملي: Pod يتعطل ويعيد التشغيل باستمرار وتشخيص سببه
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
diagnose a broken deployment from evidence. Prepares the assessment debugging exercise.
تفاصيل المخطط المبدئي
خطوة بخطوة
kubectl get podsshowsordersinCrashLoopBackOff.kubectl describe podshows restarts and the last state; events show no image problem.kubectl logs --previousreveals a missing configuration value (database URL).- Planned mistake: raise memory limits as a guess because the pod "keeps dying". Fix: read the exit reason first; the exit code and logs point to configuration, not memory.
- Correct the ConfigMap, roll the Deployment, confirm readiness, and write one line for the runbook.
اختبر فهمك
What should you read before changing limits?
أظهر الإجابة
The last state reason, exit code, and previous logs.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.