Drift Detection and Reconciliation Fundamentals
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this hands-on lab you will learn how configuration drift occurs in Kubernetes and how to detect and reconcile it — the core problem that GitOps tools like Flux and ArgoCD solve. You will deploy a baseline application, intentionally introduce drift by making out-of-band changes, detect the drift using kubectl diff and audit techniques, and finally reconcile the cluster back to its desired state. By the end you will understand why GitOps principles exist and how to implement manual drift detection workflows.
What you’ll learn
- Deploy a baseline application from a declarative manifest and store it as the desired state
- Intentionally introduce configuration drift via imperative kubectl commands and identify what changed
- Use kubectl diff and annotation-based techniques to detect drift between live state and desired state
- Reconcile the drifted cluster back to the desired state and verify the reconciliation succeeded
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: gitops, drift-detection, reconciliation, kubectl-diff, declarative, kubernetes
Create a free account to start this lab.