Kubernetes - ReplicaSets and DeploymentsA Deployment shows desired replicas as 4 but actual replicas is 0. What is the most likely cause?APods are stuck in Pending due to resource limitsBDeployment is paused and not creating PodsCPods are running but not counted correctlyDDeployment YAML has syntax errorsCheck Answer
Step-by-Step SolutionSolution:Step 1: Understand zero actual replicasDesired is 4 but no Pods running means Pods are not starting.Step 2: Identify common causePods stuck in Pending often happen due to insufficient resources or scheduling issues.Final Answer:Pods are stuck in Pending due to resource limits -> Option AQuick Check:Pending Pods cause actual replicas to be zero [OK]Quick Trick: Pending Pods mean actual replicas stay at zero [OK]Common Mistakes:Assuming Deployment is paused without checkingThinking Pods run but not countedBlaming YAML syntax without error messages
Master "ReplicaSets and Deployments" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Labels and Selectors - Why labels organize resources - Quiz 6medium Labels and Selectors - Label selectors (equality, set-based) - Quiz 3easy Pods - Init containers - Quiz 6medium ReplicaSets and Deployments - ReplicaSet definition - Quiz 2easy ReplicaSets and Deployments - Recreate update strategy - Quiz 9hard ReplicaSets and Deployments - Creating Deployments with YAML - Quiz 10hard Services - Service selectors and labels - Quiz 10hard Services - Headless services concept - Quiz 6medium kubectl Essential Commands - kubectl explain for API reference - Quiz 2easy kubectl Essential Commands - kubectl exec for container access - Quiz 3easy