Associated preparation
CKAD labs
The point of view of whoever ships an application: Pod design, configuration, observability, rolling updates and service access.
Back to all 761 labsHow to run a lab
- 57 labs
- 30 hours of practice
- 57 on a virtual machine
DSOXLab runs these labs on your machines
DSOXLab is the command-line tool behind every lab on this page. It prepares the environment, hands you the mission and checks the result, so the score comes from the state you actually built.
- Prepare It sets up the lab environment: the virtual machines, and the cluster when the lab uses one.
dsoxlab start <lab> - Practise You read the mission, then solve it yourself on the system, connecting to the machines when the lab has some.
dsoxlab challenge - Check It runs the tests on the state you produced and computes the score. The tests read that state, not the commands you typed.
dsoxlab check <lab> - Progress Results are recorded on your machine. If you want them on your account on this site, sign in and push them, when the catalogue allows it.
dsoxlab login / dsoxlab push
Install it with uv or pipx. No administrator rights are needed. uv tool install dsoxlab # or: pipx install dsoxlab Start a lab Install DSOXLab The DSOXLab course Source code on GitHub
Levels 16 beginner 34 intermediate 7 advanced
Official exam objectives published by CNCF
These are not exam questions. They are hands-on exercises on the skills the exam measures, graded on the state of your machine.
Add this catalogue dsoxlab catalog add https://github.com/stephrobert/kubernetes-dsoxlab-training every lab played and scored by the author
Kinds of exercise
Guided labs
40
You learn a mechanism with the guide beside you, then the lab checks what you ended up with.
-
Give each replica a stable identity with a StatefulSet
Replace a Deployment whose Pods have random names and keep nothing with a StatefulSet behind a headless Service: ordered replicas, stable names that resolve, one volume per replica, and data that survives its Pod.
Graded on the state of the system attested 12 Nov 2026
Command to start it
dsoxlab start cka-statefulset-identite-stable -
Cap a namespace without blocking those who forget to declare themselves
A namespace with no ceiling and no defaults: one team can take the whole cluster, and a Pod with no requests is scheduled blind. Set both, and prove each: a Pod asking too much is refused, a Pod asking nothing is accepted and completed.
Graded on the state of the system attested 26 Nov 2026
Command to start it
dsoxlab start cka-resourcequota-limitrange -
Detect and migrate removed APIs
In a repository of legacy manifests, find the ones that use an API removed from Kubernetes, migrate them to the current API without changing what they describe, and apply them.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start k8s-detecter-les-api-depreciees -
Read the state of a failing Pod
Two applications will not start in the incident namespace. Find out why, with evidence read from the cluster, without repairing anything: the reason an image will not pull, the error a crashing container wrote before it stopped, its exit code, and which running Pod uses the most memory.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-lire-l-etat-d-un-pod-en-erreur -
Diagnose two failing Pods
Two Pods fail in the pods-en-panne namespace: one cannot pull its image, the other's container exits with an error. Read each cause in the cluster and record it, then repair each Pod with the right gesture: the image in place, the command by recreating the Pod under the same name.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-diagnostiquer-un-pod -
Trace a Pod back to its Deployment
In the replicasets namespace, a Deployment updated once keeps two ReplicaSets, and a second Deployment creates no Pod at all. Record which ReplicaSet is active and which one is kept at zero, read why the second one is stuck in the events of its ReplicaSet, then repair it until its replicas are available.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-lire-les-replicasets -
Tune a rolling update: maxSurge and maxUnavailable
A Deployment set to Recreate must become a progressive replacement: never more than two extra Pods nor more than one unavailable. Then trigger an image update and prove it went all the way through: old revision down to zero, new one complete.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-rolling-update-strategy -
Label and select Pods
In the etiquettes namespace, give every Pod of the vitrine Deployment the label palier=front in a way that survives their replacement, give vitrine a contact annotation, then record a selector with a negation that returns exactly the Pods of facturation.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-labels-et-selecteurs -
Expose a Deployment through a ClusterIP Service
Deploy four replicas of a server and expose them through an internal Service. Check from a client that the Service answers under its name and port, and that it really spreads the requests across the Pods.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start ckad-expose-service -
Switch traffic from one version to the other: blue-green
Run two versions of an application side by side, then switch all the traffic from one to the other by changing a Service selector. Prove the switch from a client: every request reaches the new version, none the old one, and the old one stays up and serving.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-blue-green-deployment -
Repair a NodePort Service
The accueil application runs, but the NodePort Service meant to publish it leads nowhere: its selector targets no Pod, its targetPort is wrong, and its port was drawn at random. Repair it, and prove that every node answers.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-service-nodeport-reparer -
Reach an application: expose and port-forward
In the guichet namespace, expose the annonces Deployment through a Service on port 8081 towards the port 9376 of its Pods, check that it counts its endpoints, then open a kubectl port-forward tunnel to the Service and record which Pod answers through it.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-atteindre-une-application -
Configure an application through ConfigMaps
In the tarification namespace, give the tarifs Deployment two values from a ConfigMap as environment variables and a configuration file from another ConfigMap through a volume, change both ConfigMaps, then restart the Deployment so the variables follow, without writing any value in the Deployment.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-configurer-par-configmap -
Rotate a leaked password and take it out of the manifest
The password of an application has leaked: it is written in clear text in its Deployment, applied with kubectl apply. Store the new password in a Secret, inject it both as an environment variable and as a mounted file, and make sure the old one no longer appears anywhere in the manifest.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start ckad-secret-injection-protection -
Inject configuration and secrets into a Pod
Give an application its configuration through environment variables and through a mounted file, and its credentials through a Secret, without ever writing a password in the Pod manifest. Prove, from inside the container, that everything arrived.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-configmap-secret-injection -
Isolate an application in a namespace
The inventaire application was created in default by mistake. Move it and its Service to the stock namespace, remove it from default, then from the caisse Pod of the caisse namespace reach it by its namespace-qualified name, record the Pod that answers, and record what the short name gives.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-isoler-par-namespace -
Extract fields with JSONPath and custom-columns
In the extraction namespace, record the image that the Pod template of the web Deployment asks for, then write the list of the web Pods with the node each one runs on, once with JSONPath and once with custom-columns.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-extraire-avec-kubectl -
Explore the API with api-resources and explain
Find with api-resources the apiVersion and the kind of a CRD you have never seen, create an object of that type with the fields only explain reveals, add an HTTP readiness probe found field by field, and draw up the full inventory of a namespace, beyond kubectl get all.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-explorer-l-api -
Write and validate a manifest
Repair a colleague's multi-document manifest (a ConfigMap, a Deployment and a Service) until the API server accepts it, every object names its namespace and the Service finds its Pods, then apply it to update the running old version of the Deployment in place, without recreating it.
Graded on the state of the system attested 20 Nov 2026
Command to start it
dsoxlab start k8s-ecrire-un-manifeste -
Create or apply: apply, server-side apply and prune
Apply a whole folder with its subfolders, stop an apply from overwriting the replicas chosen by an autoscaler, take over a field with server-side apply under a named field manager, and prune what left the folder without touching what never belonged to it.
Graded on the state of the system attested 11 Nov 2026
Command to start it
dsoxlab start k8s-creer-ou-appliquer -
Preview with diff, wait with wait
Move an application to its version 2 and run its migration Job, previewing each change with kubectl diff and waiting for the real end of the rollout, then write a deployment script that exits cleanly when nothing differs and stops before applying when kubectl diff fails, and waits for the Jobs of the folder, stopping at the first one that fails.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start k8s-verifier-et-attendre -
One Kustomize base and two overlays, recette and production
Describe the catalogue application only once, in a Kustomize base with a generated ConfigMap, and deploy it into recette and production with overlays that change the replica count, prefix the names, add a palier label, move recette alone to version 2 and merge one value of the configuration in production. Leave the cluster matching the folder.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start ckad-kustomize-overlays -
Inspect a failed Helm release and restore it
The release vitrine (podinfo chart) failed twice when it was upgraded. Find the latest 6.14 version of the chart with a filtered search, name the failed revisions from the history, go back to the last healthy revision, not to the previous one, then make the chart's tests pass on it.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start k8s-inspecter-et-restaurer-une-release-helm -
Install, upgrade and roll back with Helm 4
Install the team's chart in version 0.1.0, upgrade the release with the chart in version 0.2.0 and new values, then go back to the first revision. The release history shows the chart version of each revision.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start ckad-helm-install-upgrade -
Override the values of a Helm chart without falling into the typing trap
The release catalogue (podinfo chart 6.16.0) carries two settings made by the operations team. Upgrade it to 6.17.0 without losing them, and set the interface message to 2026, which must stay a string although it looks like a number.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start k8s-surcharger-les-values-d-un-chart-helm -
Pin an image by digest and pull from a private registry
Pin by its digest the image a Deployment runs on a mutable tag, record why a Pod stays in ImagePullBackOff before repairing anything, then let it pull from a private registry through a docker-registry Secret carried by its ServiceAccount.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start k8s-gerer-les-images -
Repair the gatekeeper of an application with an init container
An application already runs although its dependency does not answer: its init container only resolves a name. Diagnose the gatekeeper and the Service, recreate the Pod with a gatekeeper that waits for a real answer, then put the dependency in place and see the application start on its own.
Graded on the state of the system attested 21 Nov 2026
Command to start it
dsoxlab start ckad-init-container -
A native sidecar that tails the application logs
Have a second container read the logs an application writes to a file, with a native sidecar, declared as an init container with restartPolicy Always, and a shared volume. Prove that the sidecar really does pass the lines on.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-multi-container-sidecar -
A Job with parallel completions, and a CronJob
Run a workload four times, two at a time, with a Job, and prove that the runs really did overlap. Then schedule a cleanup every five minutes with a CronJob that keeps a bounded history.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-job-cronjob -
Let one container read what another writes, and nothing else
Two containers in one Pod, one writing and one reading, and nothing shared between them. Give them a volume whose lifetime is the Pod's, and prove it both ways: what is written inside the volume crosses, what is written beside it does not.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-volumes-partage-entre-conteneurs -
Three probes on one Pod: startup, liveness, readiness
Fit an application with all three probes, with settings that make sense: a slow start tolerated, liveness watched, traffic that only arrives once the Pod is ready. Prove the probes act: the Pod is Ready only because they answer.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-probes-all-types -
A two-container Pod with its resource budgets
Write by hand a Pod with two containers, each with its own requests and limits, and prove from inside each container that the memory limit is the one the kernel enforces.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-pod-resources-labels -
Resize a Pod in place, without restarting it
Raise the CPU and the memory of a running Pod, without recreating it and without restarting its container, through the resize subresource. Prove that the kernel applies the new limit and that the container stayed the same.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-in-place-pod-vertical-scaling -
A Pod blocked by a ConfigMap that does not exist
A Pod does not start and says nothing in its logs, because it has no container yet: its events are the ones that talk. Read the cause, create the missing resource with the expected content, and prove that the application serves.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-troubleshoot-missing-configmap -
Make an application 12-factor compliant on Kubernetes
The team delivered podinfo with its configuration hard-coded in its arguments, its state written on a volume of the Pod, and no clean shutdown, while a Redis runs next to it unused. Generate the configuration with a Kustomize configMapGenerator, move the state to Redis, add a preStop hook, then seed the cache with an administration Job.
Graded on the state of the system attested 16 Nov 2026
Command to start it
dsoxlab start k8s-rendre-une-application-conforme-12-facteurs -
Partition three tiers with ingress and egress NetworkPolicy
Frontend, backend, database: allow only the intended flows, in both directions, DNS included, and forbid everything else. Prove every rule with a real connection, the one that goes through and the one that is blocked.
Graded on the state of the system attested 13 Nov 2026
Command to start it
dsoxlab start ckad-networkpolicy-ingress-egress -
Use a custom resource, read its schema refusals, unblock it
Discover the API group of a CRD, create and modify custom resources, read the refusal of the API for an out-of-bounds value, and unblock a resource stuck in Terminating without touching the CRD.
Graded on the state of the system attested 12 Nov 2026
Command to start it
dsoxlab start ckad-crd-ressource-personnalisee -
Harden a Pod with a securityContext
Run a web server with no privilege: non-root user, no escalation, read-only root filesystem, every capability dropped. And still give it somewhere to write where it needs to, otherwise it will not start. Prove, from the inside, that the confinement holds and that the application serves.
Graded on the state of the system attested 26 Nov 2026
Command to start it
dsoxlab start ckad-security-context-hardened -
Grant read-only access to Pods with RBAC
Let a user read the Pods of a namespace and their logs, and nothing more: no creating, no deleting, no looking into the other namespaces. Prove both sides with kubectl auth can-i, what is allowed and what stays denied.
Graded on the state of the system attested 26 Nov 2026
Command to start it
dsoxlab start ckad-rbac-role-rolebinding -
Three Pods in CrashLoopBackOff, three causes
Three Pods restart in a loop for three different reasons: a command that does not exist, a missing environment variable, a memory limit set too low. Read for each one what kills it, fix it, and prove that all three hold.
Graded on the state of the system attested 26 Nov 2026
Command to start it
dsoxlab start ckad-troubleshoot-crashloop
Challenges
12
A mission to solve without a step-by-step procedure: finding the way is up to you.
-
Expose an application and isolate its flows
Without guidance, route two applications by host and path, repair a legacy Service, give a client Pod back its name resolution, then isolate a database behind a default refusal that still lets it resolve names.
Pass mark 70% attested 17 Nov 2026
Command to start it
dsoxlab start k8s-challenge-exposer-et-isoler -
Keep data beyond the life of a Pod
Without guidance, obtain a volume from a StorageClass, write a witness file from a Pod, prove that it survives the recreation of that Pod, keep the data beyond the claim, and fix a claim stuck in Pending after recording its cause.
Pass mark 70% attested 15 Nov 2026
Command to start it
dsoxlab start k8s-challenge-donnees-qui-survivent -
Choose and deploy the right workload for three needs
Without guidance, serve three needs described without naming any object: a database whose replicas keep a stable identity and their data, an agent on every node including the control plane, and a custom resource whose schema enforces a bound.
Pass mark 70% attested 15 Nov 2026
Command to start it
dsoxlab start k8s-challenge-choisir-le-bon-workload -
Place Pods, cap a namespace and scale, on your own and without hints
Without guidance, reserve a node for one application, keep the others away from it, place an application by required and preferred node affinity, spread replicas across nodes, cap the namespace and give its containers default values, then scale an application on its CPU load.
Pass mark 70% attested 15 Nov 2026
Command to start it
dsoxlab start k8s-challenge-placer-et-plafonner -
Bring live changes back to the Git repository, declaratively
Without guidance, find the changes made live on a cluster, carry the one the team keeps into the versioned manifests, undo the others, and leave the cluster and the repository identical, without recreating any object.
Pass mark 80% attested 21 Nov 2026
Command to start it
dsoxlab start k8s-challenge-ramener-le-cluster-au-depot -
Keep an application available during a maintenance
Without guidance, run an application as three copies spread across the nodes, protected by a disruption budget, with probes that keep traffic away until a copy is ready, keep its minimum while a node is evacuated, and write a routine report that matches the real state of the cluster.
Pass mark 70% attested 14 Nov 2026
Command to start it
dsoxlab start k8s-challenge-garantir-la-disponibilite -
Wire a ConfigMap, a Secret and a Service to a Deployment
In a dedicated namespace, run the storefront with three replicas, give it a configuration value from a ConfigMap and a password from a Secret without writing the password in the Deployment, expose it through a Service that answers, then update its image while keeping the previous ReplicaSet.
Pass mark 70% attested 11 Nov 2026
Command to start it
dsoxlab start k8s-challenge-relier-config-et-service -
Apply and check your manifests, from a set of requirements
Without guidance, write the manifests of an application from requirements that never name the objects, find the API field asked for with explain, ship two variants from one Kustomize base, apply them declaratively, show the diff before upgrading production, and deliver with a script that waits for the application to be available.
Pass mark 70% attested 21 Nov 2026
Command to start it
dsoxlab start k8s-challenge-appliquer-et-verifier-ses-manifests -
Ship an application with Helm and GitOps, from a built image
Without guidance, build an image and push it to the cluster registry, install it with Helm from a values file and pinned by digest, upgrade the release then bring it back to the revision asked for, and make Argo CD follow a Git repository until it is synchronised on a change you pushed.
Pass mark 70% attested 22 Nov 2026
Command to start it
dsoxlab start k8s-challenge-livrer-avec-helm-et-gitops -
Run one-off and scheduled tasks with Jobs and CronJobs
Without guidance, run an indexed Job that processes each lot of a list once, schedule a CronJob with an imposed schedule, time zone, concurrency and history, start one of its runs by hand, and repair a failed Job.
Pass mark 80% attested 21 Nov 2026
Command to start it
dsoxlab start k8s-challenge-executer-et-planifier-des-taches -
Compose a multi-container Pod: init container, native sidecar, shared volumes
Without guidance, compose a Deployment whose Pods prepare their page with an init container, serve it read-only, and pass on their access log through a native sidecar reading a bounded shared volume.
Pass mark 80% attested 21 Nov 2026
Command to start it
dsoxlab start k8s-challenge-composer-un-pod-multi-conteneurs -
Ship a robust manifest from a set of requirements
Without guidance, ship an application from one Kustomize base into two variants, with an init container, a native sidecar, budgets and probes, schedule a CronJob, run a Job to completion, and repair a failing Pod after recording its cause.
Pass mark 70% attested 15 Nov 2026
Command to start it
dsoxlab start k8s-challenge-manifest-robuste
Capstones
1
A wider mission that asks you to combine several skills.
-
Capstone: ship the shop, from the specification alone
A full delivery, given as a specification rather than a walkthrough. Six requirements to satisfy in one namespace: configuration, secret, probes, identity, exposure and isolation. Nothing says which object to create, and the last test checks the only thing that matters: a frontend Pod reaches the shop, and a Pod that is not one does not.
Pass mark 66% attested 26 Nov 2026
Command to start it
dsoxlab start ckad-capstone-boutique
Mock exams
1
The format of an exam: a pass mark and a verdict at the end, passed or failed.
-
CKAD mock exam: 17 tasks in 120 minutes
A timed mock exam in the CKAD format: seventeen tasks spread like the official domains, on one kubeadm cluster, each task on the host it names, reached by ssh, graded on the cluster's final state, no hint. Plan for 120 minutes.
Pass mark 66% attested 17 Nov 2026
Command to start it
dsoxlab start ckad-examen-blanc
End-of-level exams
3
A whole level to validate alone, without hints, graded on the actual state of the system.
-
Level 3 exam: place, secure and deliver an application
From requirements that name no Kubernetes object, ship and repair a festival application: route two web applications by host and path, repair an inherited failing component after recording its cause, isolate the database, place the workloads, cap the namespace, scale the application on a metric, and give it its own identity and a hardened container.
Pass mark 70% attested 14 Nov 2026
Command to start it
dsoxlab start k8s-epreuve-livrer-une-application -
Level 1 test: ship and update an application
From requirements that name no Kubernetes object, ship the shop's storefront in its team's own space, with three copies reachable at a stable address, fed by a configuration and a password kept outside the image, move it to the next version without downtime while keeping a way back, and repair a failing component after recording why it failed.
Pass mark 70% attested 12 Nov 2026
Command to start it
dsoxlab start k8s-epreuve-livrer-et-mettre-a-jour -
Level 2 test: deploy an application that keeps its data
From requirements that name no Kubernetes object, deploy the shop with its data: a reliable storefront shipped from a Kustomize base, a database whose replicas keep their identity and their volume, a scheduled backup, an agent on every node, and the requested custom resource.
Pass mark 70% attested 12 Nov 2026
Command to start it
dsoxlab start k8s-epreuve-deployer-une-application