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?
✗ Incorrect
Desired replicas are the number of pod instances you want running as set in the deployment.
Which Kubernetes component adjusts pods to match desired replicas?
✗ Incorrect
The Controller Manager monitors and adjusts pods to match the desired replicas.
What kubectl command shows the desired and actual replicas of a deployment?
✗ Incorrect
kubectl get deployment shows desired and actual replicas.
If actual replicas are less than desired replicas, what could be a reason?
✗ Incorrect
Pod startup failures can cause fewer actual replicas than desired.
What does Kubernetes do if actual replicas exceed desired replicas?
✗ Incorrect
Kubernetes deletes extra pods to keep actual replicas equal to desired replicas.
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.