الـ Deployment هو الـ controller القياسي لتشغيل التطبيقات عديمة الحالة (stateless). يدير ReplicaSets، ويُبقي الـ ReplicaSet عدداً محدّداً من الـ Pods المتطابقة قيد التشغيل. أنت تعدّل الـ Deployment؛ وهو يُنسّق التحديثات المتدرّجة (rolling updates) والتراجعات (rollbacks) نيابةً عنك.
التسلسل الهرمي
Deployment → declares desired state + update strategy (the thing YOU manage)
└── ReplicaSet → ensures N identical Pods exist (one per app version)
└── Pod → Pod → Pod ... (the actual running copies)
On each new version, the Deployment creates a NEW ReplicaSet and shifts Pods over.
