{"id":21032,"date":"2021-04-19T22:31:37","date_gmt":"2021-04-19T22:31:37","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=21032"},"modified":"2021-04-19T22:31:38","modified_gmt":"2021-04-19T22:31:38","slug":"difference-between-replicaset-and-replicationcontroller","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/difference-between-replicaset-and-replicationcontroller\/","title":{"rendered":"Difference between ReplicaSet and ReplicationController?"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"373\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-2.png\" alt=\"\" class=\"wp-image-21036\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-2.png 664w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-2-300x169.png 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-2-355x199.png 355w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p>The functionality of both Replica Controller and Replica Set is quiet the same &#8211; they are responsible to make sure that X number of pods with label that is equal to there label selector will be scheduled to different nodes on the cluster.<\/p>\n\n\n\n<p>ReplicaSet is the next generation of Replication Controller. Replication controller is kinda imperative, but replica sets try to be as declarative as possible.<\/p>\n\n\n\n<p>The difference should be insignificant in most cases. ReplicaSet has a generalized label selector. ReplicaSet should support all the features the replication controller supports.<\/p>\n\n\n\n<p>ReplicaSet is a replacement for the Replica controller and supports richer expressions for the label selector. You can choose between 4 values of operators In, NotIn, Exists, DoesNotExist<\/p>\n\n\n\n<p><strong>The main difference between a Replica Set and a Replication Controller right now is the selector support.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"205\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-3-1024x205.jpg\" alt=\"\" class=\"wp-image-21033\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-3-1024x205.jpg 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-3-300x60.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-3-768x154.jpg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-3.jpg 1083w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><strong>The second thing is the updating the pods<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"202\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-4-1024x202.jpg\" alt=\"\" class=\"wp-image-21034\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-4-1024x202.jpg 1024w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-4-300x59.jpg 300w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-4-768x152.jpg 768w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-4.jpg 1063w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"690\" height=\"447\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-1.jpg\" alt=\"\" class=\"wp-image-21035\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-1.jpg 690w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2021\/04\/Difference-between-ReplicaSet-ReplicationController-1-300x194.jpg 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The functionality of both Replica Controller and Replica Set is quiet the same &#8211; they are responsible to make sure that X number of pods with label&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-21032","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21032","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=21032"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21032\/revisions"}],"predecessor-version":[{"id":21037,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/21032\/revisions\/21037"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=21032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=21032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=21032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}