ایک Deployment بغیر حالت (stateless) والی ایپس چلانے کے لیے معیاری controller ہے۔ یہ 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.
