Kubernetes - ReplicaSets and DeploymentsYou 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: 6BDelete the ReplicaSet and create a new one with replicas: 6CChange the pod template labels to force new podsDScale pods manually using kubectl execCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand scaling ReplicaSetReplicaSets support scaling by updating the replicas field safely without downtime.Step 2: Evaluate other optionsDeleting causes downtime, changing labels creates new ReplicaSet, manual pod exec does not scale pods.Final Answer:Edit the ReplicaSet YAML and apply replicas: 6 to scale up -> Option AQuick Check:Update replicas field to scale ReplicaSet [OK]Quick Trick: Change replicas field to scale pods safely [OK]Common Mistakes:Deleting ReplicaSet causing downtimeChanging labels instead of replicasTrying to scale pods manually inside containers
Master "ReplicaSets and Deployments" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Kubernetes Fundamentals - Desired state vs actual state reconciliation - Quiz 10hard ReplicaSets and Deployments - Rollback to previous version - Quiz 14medium ReplicaSets and Deployments - Desired replicas vs actual replicas - Quiz 9hard ReplicaSets and Deployments - Deployment as higher-level abstraction - Quiz 12easy Services - ClusterIP service type - Quiz 12easy Services - ExternalName service type - Quiz 6medium kubectl Essential Commands - Why kubectl mastery matters - Quiz 12easy kubectl Essential Commands - kubectl apply vs create - Quiz 6medium kubectl Essential Commands - kubectl describe for details - Quiz 15hard kubectl Essential Commands - Why kubectl mastery matters - Quiz 6medium