Kubernetes (اکثر مختصراً K8s) ایک اوپن سورس container orchestration پلیٹ فارم ہے۔ یہ مشینوں کے ایک cluster میں container والی ایپلی کیشنز کی deployment، scaling، networking، اور خود مرمت (healing) کو خودکار بناتا ہے، چنانچہ آپ مطلوبہ حالت (desired state) بیان کرتے ہیں اور Kubernetes مسلسل کام کرتا ہے تاکہ حقیقت اس سے میل کھائے۔
مسئلہ: بڑے پیمانے پر containers چلانا مشکل ہے
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.
