Skip to main content

Why can a Deployment have multiple ReplicaSets simultaneously?

Mid Kubernetes
Quick Answer During a rolling update, the old ReplicaSet scales down while the new one scales up รขโ‚ฌโ€ both coexist temporarily. Additionally, Kubernetes keeps the last N ReplicaSets (controlled by revisionHistoryLimit, default 10) to support rollbacks. kubectl rollout undo switches back to the previous ReplicaSet instantly.

Answer

Rolling updates retain old ReplicaSets for rollback until scaled to zero.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice