Skip to content

Replicaset

Course: Kubernetes Part 1 - chapter 12

A ReplicaSet in Kubernetes is a controller that ensures a specified number of pod replicas are running at any given time. It is used to maintain a stable set of replica Pods running in the cluster, even if some Pods fail or are deleted.

When you create a deployment, you mention the amount of replicas you want for this specific pod to run. The deployment then creates a new ReplicaSet that is responsible for creating X number of pods.

User creates a deployment which creates a replicaset which creates pods

If pods go down, replicaset controller ensures to bring them back up