User Tools

Site Tools


k8s:core:replicaset

ReplicaSet

A ReplicaSet ensures a specific number of Pods are running.

What it does

  • Keeps N copies of a Pod running
  • Replaces failed Pods automatically

Example

replicas: 3

If one Pod crashes:

Before: 3 pods After: 3 pods (1 recreated)

Relationship

Deployment → creates ReplicaSet → manages Pods

Real-world analogy

ReplicaSet = “worker counter”

It ensures:

  • You always have the required number of workers
k8s/core/replicaset.txt · Last modified: by phong2018