KCNA · Question #20
How are ReplicaSets and Deployments related?
The correct answer is A. Deployments manage ReplicaSets and provide declarative updates to Pods.. Deployments manage ReplicaSets, orchestrating their creation, updates, and scaling to provide declarative updates for Pods.
Question
How are ReplicaSets and Deployments related?
Options
- ADeployments manage ReplicaSets and provide declarative updates to Pods.
- BReplicaSets manage stateful applications, Deployments manage stateless applications.
- CDeployments are runtime instances of ReplicaSets.
- DReplicaSets are subsets of Jobs and CronJobs which use imperative Deployments.
How the community answered
(35 responses)- A89% (31)
- B3% (1)
- C6% (2)
- D3% (1)
Why each option
Deployments manage ReplicaSets, orchestrating their creation, updates, and scaling to provide declarative updates for Pods.
Deployments are a higher-level abstraction in Kubernetes that manage the lifecycle of ReplicaSets. They provide declarative updates to Pods, allowing users to specify the desired state, and then Deployments handle the creation, scaling, and rolling updates of the underlying ReplicaSets to achieve that state without manual intervention.
ReplicaSets primarily manage stateless applications, and StatefulSets manage stateful applications; the relationship between Deployments and ReplicaSets is hierarchical, not based on statefulness in this manner.
Deployments create and manage ReplicaSets; they are not runtime instances of them, but rather controllers for them.
ReplicaSets are not subsets of Jobs or CronJobs; they are distinct Kubernetes controllers for managing a stable set of replica Pods. Deployments use a declarative approach.
Concept tested: Kubernetes Deployment and ReplicaSet relationship
Source: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
Topics
Community Discussion
No community discussion yet for this question.