Define kubernetes ReplicaSets with Example and commands?
ReplicaSet: A ReplicaSet’s purpose is to maintain a stable set of replica Pods running at any given time. As such, it is often used to guarantee the availability of a specified number of identical Pods. There are many ways we can use replicasets such that always required number of pods running is guarangteed. While creating the deployment kubectl create deployment ramesh –image=scmgalaxy/nginx-devopsschoolv1 –replicas=3 -n=ramesh 2. While the deployment is running kubectl edit deploy ramesh -n=ramesh Replicas: 2 desired | 2
Read more