Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

ReplicaSet

 

ReplicaSet, or rs object, is pretty much the same thing as an rc object, with just one major exception – the looks of selector:

Rc uses equally-based selectors only, while rs supports an extra selector format, set-based. Functionally the two forms of selectors do the same job – that is—select the pod with a matching label:

An rs is created and it launches a pod, just the same as what an rc would do. If you compare the kubectl describe on the two objects:

As you can see, for the most part the outputs are the same, with the only exception of the selector format. You can also scale the rs the same way as you would do with rc:

Before moving to the next object, delete the rs: