Bird
0
0

You want to update a ReplicaSet to increase replicas from 3 to 6 without downtime. Which approach is correct?

hard📝 Workflow Q8 of 15
Kubernetes - ReplicaSets and Deployments
You want to update a ReplicaSet to increase replicas from 3 to 6 without downtime. Which approach is correct?
AEdit the ReplicaSet YAML and apply the change to replicas: 6
BDelete the ReplicaSet and create a new one with replicas: 6
CChange the pod template labels to force new pods
DScale pods manually using kubectl exec
Step-by-Step Solution
Solution:
  1. Step 1: Understand scaling ReplicaSet

    ReplicaSets support scaling by updating the replicas field safely without downtime.
  2. Step 2: Evaluate other options

    Deleting causes downtime, changing labels creates new ReplicaSet, manual pod exec does not scale pods.
  3. Final Answer:

    Edit the ReplicaSet YAML and apply replicas: 6 to scale up -> Option A
  4. Quick Check:

    Update replicas field to scale ReplicaSet [OK]
Quick Trick: Change replicas field to scale pods safely [OK]
Common Mistakes:
  • Deleting ReplicaSet causing downtime
  • Changing labels instead of replicas
  • Trying to scale pods manually inside containers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes