Kubernetes Controllers - ReplicaSet vs Replication Controllers etc

7/23/2019

I'm trying to understand basic Kubernetes concepts but its documentation a bit confusing, as for me.

For example, the Replication Controller is mentioned in the kube-controller-manager.

At the same time, Kubernetes Concepts page says about ReplicaSet object.

And only after some googling I found this post on Medium:

Replication Controllers perform the same function as ReplicaSets, but Replication Controllers are old school. ReplicaSets are the smart way to manage replicated Pods in 2019.

And this is not mentioned anywhere in the official docs.

Can somebody please explain to me about Endpoints and Namespace Controllers?

Are they still "valid" Controllers - or they are also outdated/replaced by some other controller/s?

-- setevoy
kubernetes

1 Answer

7/23/2019

replication controllers are deprecated and is not recommended any more. Use ReplicaSets instead.

With ReplicaSet you define number of replicas you want to run for a specific application or a service. You would have those many replicas running at any point of time in the kubernetes cluster. It is taken care by ReplicaSet controller.

-- P Ekambaram
Source: StackOverflow