How are ReplicaSets and Deployments related?
How are ReplicaSets and Deployments related?
Deployments manage ReplicaSets and provide declarative updates to Pods. The primary purpose of a Deployment is to ensure that the specified number of pods are running and up to date. They handle the creation and scaling of ReplicaSets, as well as rollouts and rollbacks of application versions. ReplicaSets, on the other hand, are responsible for maintaining the desired number of replicas of a pod, ensuring consistent availability and fault tolerance. Therefore, Deployments use ReplicaSets to achieve these objectives.
Deployments are higher-level abstractions in Kubernetes that manage ReplicaSets.ReplicaSets, on the other hand, are lower-level controllers responsible for maintaining a specified number of identical Pods to ensure high availability and fault tolerance. ReplicaSets are used by Deployments to manage the lifecycle of Pods, including scaling, rolling updates, and maintaining a desired number of replicas.
A is correct
A is correct
A is correct
The correct is B