0
0
Kubernetesdevops~5 mins

Desired replicas vs actual replicas in Kubernetes - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What does the term 'desired replicas' mean in Kubernetes?
Desired replicas refer to the number of pod instances you want running for a specific application or service, as defined in the deployment configuration.
Click to reveal answer
beginner
What are 'actual replicas' in Kubernetes?
Actual replicas are the number of pod instances currently running in the cluster for a deployment or replica set.
Click to reveal answer
intermediate
How does Kubernetes ensure the actual replicas match the desired replicas?
Kubernetes uses a controller that constantly monitors the actual replicas and creates or deletes pods to match the desired replicas automatically.
Click to reveal answer
beginner
What command shows the desired and actual replicas of a deployment?
The command kubectl get deployment <deployment-name> shows desired replicas in the 'READY' column (e.g., 3/3) and actual available replicas under 'AVAILABLE'.
Click to reveal answer
intermediate
What might cause the actual replicas to be less than the desired replicas?
Possible causes include insufficient resources, pod startup failures, or node issues preventing pods from running.
Click to reveal answer
In Kubernetes, what does the 'desired replicas' number represent?
AThe number of pods currently running
BThe number of containers per pod
CThe number of nodes in the cluster
DThe number of pods you want running
Which Kubernetes component adjusts pods to match desired replicas?
AController Manager
Bkubectl
CAPI Server
DScheduler
What kubectl command shows the desired and actual replicas of a deployment?
Akubectl get pods
Bkubectl describe node
Ckubectl get deployment <name>
Dkubectl logs <pod>
If actual replicas are less than desired replicas, what could be a reason?
AToo many nodes available
BPod startup failures
Ckubectl is not installed
DDeployment is paused
What does Kubernetes do if actual replicas exceed desired replicas?
ADeletes extra pods to match desired replicas
BCreates more pods
CDoes nothing
DRestarts the cluster
Explain the difference between desired replicas and actual replicas in Kubernetes.
Think about what you want vs what you have running.
You got /3 concepts.
    Describe what happens when the actual replicas do not match the desired replicas in a Kubernetes deployment.
    Consider Kubernetes as a system that fixes differences automatically.
    You got /3 concepts.