A Kubernetes ReplicaSet keeps a specified number of matching Pods running.

ReplicaSets are usually managed by a Kubernetes Deployment rather than created directly.

Why it exists

If a Pod fails or is deleted, the ReplicaSet creates a replacement so the desired replica count is restored.

Compare

A ReplicaSet maintains Pod replicas.

A Deployment manages ReplicaSets and provides rollout and rollback behavior.