0
0
Kubernetesdevops~5 mins

Desired state vs actual state reconciliation in Kubernetes - Quick Revision & Key Differences

Choose your learning style9 modes available
Recall & Review
beginner
What is the 'desired state' in Kubernetes?
The desired state is the configuration you declare for your cluster, like how many pods should run or which images to use. Kubernetes tries to make the actual state match this desired state.
Click to reveal answer
beginner
What does 'actual state' mean in Kubernetes?
The actual state is what is really happening in the cluster right now, such as how many pods are running and their current status.
Click to reveal answer
intermediate
How does Kubernetes use reconciliation to manage the cluster?
Kubernetes constantly compares the actual state to the desired state. If they differ, it takes actions to fix the actual state to match the desired state. This process is called reconciliation.
Click to reveal answer
beginner
Why is reconciliation important in Kubernetes?
Reconciliation ensures the cluster stays healthy and works as expected, even if something breaks or changes unexpectedly. It’s like a thermostat keeping room temperature steady.
Click to reveal answer
beginner
Give an example of reconciliation in Kubernetes.
If you want 3 pods running but one crashes, Kubernetes notices only 2 are running (actual state). It then starts a new pod to reach 3 pods (desired state).
Click to reveal answer
What does Kubernetes do when the actual state differs from the desired state?
AIt changes the actual state to match the desired state.
BIt ignores the difference.
CIt changes the desired state to match the actual state.
DIt shuts down the cluster.
Which of these best describes the 'desired state'?
AThe configuration you want for your cluster.
BThe logs of the cluster.
CThe current number of running pods.
DThe hardware specs of the nodes.
What is reconciliation in Kubernetes?
AA method to scale nodes manually.
BA process to backup data.
CA way to update Kubernetes software.
DA process to compare and fix states.
If a pod crashes, what will Kubernetes do during reconciliation?
ADelete all pods.
BStart a new pod to replace the crashed one.
CDo nothing and wait for manual restart.
DChange the desired state to fewer pods.
Why is the reconciliation loop important for cluster health?
AIt prevents any changes in the cluster.
BIt slows down the cluster.
CIt ensures the cluster matches the desired configuration.
DIt deletes unused resources automatically.
Explain in your own words how Kubernetes uses reconciliation to keep the cluster running smoothly.
Think about how a thermostat keeps room temperature steady.
You got /5 concepts.
    Describe a real-life example that helps you understand the difference between desired state and actual state in Kubernetes.
    Imagine setting a goal and checking if reality matches it.
    You got /4 concepts.