Running applications, topic 9 of 61
ReplicaSets
A ReplicaSet watches the Pods that match its selector and creates or deletes Pods until their number is what replicas says. It is the first controller most people meet, and it shows the pattern every controller follows: compare what is with what was asked for, and act on the difference.
You seldom write a ReplicaSet yourself. A Deployment creates and manages them for you, one per version of your Pod template, which is what makes rollouts and rollbacks possible.
On Opsfolk
Nothing of ours for this topic yet: an article is on its way.
Elsewhere
- ReplicaSetOfficial