Replication Controller vs Replica set

Hi All,

The difference between Replication Controller(RC) vs Replica set(RS) is only that RS has selector variable?
Also does below statement are correct?

  1. RC doesn’t support rolling update whereas RS supports.
  2. RC only supports one type of label and RS supports more than one?

@sharatbhaskar1988 , The replication controller supports equality based selectors whereas the replica set supports equality based as well as set based selectors.

@tgp : i got this on definition on google also, can you please help me in understanding it in a better way. Like what is equality based and set based selectors.

The ReplicaSet is the next generation of RC with some advanced features. each of them will create their pods individually because they don’t use the same mechanism to create pods as Replica Set and Replication Controller do almost the same thing. Both of them ensure that a specified number of pod replicas are running at any given time. The difference comes with the usage of selectors to replicate pods. Replica Set uses Set-Based selectors while replication controllers use Equity-Based selectors. check this useful documentation https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/‏