

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
Not enough gems
Cost: 6 gems
1: Deployments
incomplete
2: Replica Sets
incomplete
3: YAML Config
incomplete
4: API Service
incomplete
5: Thrashing Pods
incomplete
This lesson's interactive features are locked, please to keep using them
A ReplicaSet maintains a stable set of replica Pods running at any given time. It's the thing that makes sure that the number of Pods you want running is the same as the number of Pods that are actually running.
You might be thinking, "I thought that's what a Deployment does." Well...yes.
A Deployment is a higher-level abstraction that manages the ReplicaSets for you. You can think of a Deployment as a wrapper around a ReplicaSet. Here's the rub:
You will probably never use ReplicaSets directly. I just need to mention what they are because you'll hear the term thrown around, and might even see them referenced in logs and such.
Let's take a look at the ReplicaSets that are running in your cluster:
kubectl get replicasets
Just like with pods, notice that we never directly created the replica set. We created a deployment, and the deployment created the replica set.