1 00:00:00,001 --> 00:00:01,000 [No Audio] 2 00:00:01,000 --> 00:00:04,534 Let's understand controller objects one by one. 3 00:00:05,401 --> 00:00:07,967 We will start with ReplicaSets. 4 00:00:08,934 --> 00:00:13,334 ReplicaSets are higher unit of orchestration compared to Pods, 5 00:00:13,860 --> 00:00:16,867 which means they will supervise the Pods. 6 00:00:17,101 --> 00:00:21,501 The purpose is pretty obvious. As mentioned earlier, 7 00:00:21,701 --> 00:00:25,470 they scale Pods, or they manage the number of 8 00:00:25,470 --> 00:00:29,370 Replicas of a Pod. We can increase or decrease the 9 00:00:29,370 --> 00:00:32,701 number of Replicas of a Pod using ReplicaSet. 10 00:00:33,134 --> 00:00:36,480 Pods are given labels and ReplicaSets are given 11 00:00:36,480 --> 00:00:40,834 selectors to keep track of which Pods to supervise. 12 00:00:41,367 --> 00:00:43,350 It is also possible to provide pod 13 00:00:43,350 --> 00:00:47,250 definition along with ReplicaSets. It would mean 14 00:00:47,250 --> 00:00:50,820 that creation of those pods will also be managed 15 00:00:50,820 --> 00:00:54,060 by ReplicaSet. If you do so, you need to provide 16 00:00:54,060 --> 00:00:58,367 Pod specs as Pod template to the YAML file of ReplicaSet. 17 00:00:58,701 --> 00:01:00,870 While they are quite useful, standard 18 00:01:00,870 --> 00:01:03,734 practice doesn't involve using ReplicaSets directly. 19 00:01:03,967 --> 00:01:05,970 They are used under supervision of 20 00:01:05,970 --> 00:01:08,580 deployment, which we will learn soon enough.