Kubernetes (يُختصر غالباً إلى K8s) هو منصّة تنسيق حاويات (container orchestration) مفتوحة المصدر. تُؤتمِت نشر التطبيقات المُحوَّاة (containerized) وتوسيعها وربطها شبكياً ومعالجتها ذاتياً عبر عنقود (cluster) من الأجهزة، فتصف أنت الحالة المرغوبة (desired state) ويعمل Kubernetes باستمرار لجعل الواقع مطابقاً لها.
المشكلة: تشغيل الحاويات على نطاق واسع أمرٌ صعب
You have containers (from Docker), but in production you must also answer:
→ On WHICH machine does each container run? (scheduling)
→ What if a container crashes? (self-healing / restarts)
→ What if a whole node dies? (reschedule elsewhere)
→ How do 50 replicas find and talk to each other? (service discovery)
→ How do I roll out a new version with zero downtime? (rolling updates)
→ How do I scale from 3 to 30 replicas on a traffic spike? (autoscaling)
Doing all this by hand across many servers does not scale.
