This challenge checks that you can, on your own, ship an application from a requirements document that describes what it must do without ever naming the objects to write: two variants built from the same base, an API field to find, a version upgrade whose effect you show before applying it, and a delivery that waits until the application is available. It is meant for people who have just followed the five lessons of the module listed below.
It runs in a dsoxlab virtual machine, on a kind cluster with Kubernetes 1.37, and takes about 45 minutes. It gives no hints and teaches nothing new: it checks what the lessons of the module have already let you practice.
What you will learn
The lab reads the cluster and your files, then replays your delivery. It checks that you can:
- Build a staging and a production variant from the same Kustomize base, each with its own namespace.
- Run the application as the requirements document describes it, in both variants.
- Find the API field that carries the requested delay, and set it there.
- Apply the objects declaratively.
- Save what a version upgrade is going to change before applying it.
- Write a delivery script that returns only once the application is available.
What should you be able to do before you start?
No step-by-step guide goes with the challenge, and choosing the objects to write is part of what it checks. Everything it asks is taught in the five lessons of the module "Write and apply your manifests", each with its guided lab:
- kubectl api-resources and explain: explore the Kubernetes API, to find the field that carries a setting.
- Write Kubernetes manifests: generate, validate, fix, to start from a need and end up with a valid manifest.
- kubectl create and apply: create and update your resources, for the difference between imperative creation and declarative apply.
- kubectl diff and wait: check before, wait after an apply, to show a change before applying it and wait until it has been taken into account. Requirement 5 and requirement 6 depend on it.
- Kustomize: one base, two overlays for dev and prod, to build several variants from the same base.
If one of these points feels unclear, reread the lesson before you start.
What does the statement ask for?
The annuaire team entrusts you with the delivery of its application on the kind cluster lab. It provides no manifest, only its requirements document, in ~/annuaire/cahier-des-charges.txt. The document says what the application must do, never which objects to write. The team wants two variants, staging and production, built from the same base, and a delivery it can replay without watching the screen.
The statement says what must be true at the end, never how to get there:
- A Kustomize base in
~/annuaire/base/, and two variants that start from it,~/annuaire/recette/(staging) and~/annuaire/production/. Each variant creates its namespace. This requirement is blocking. - The
annuaireapplication runs in both variants, as the requirements document describes it. - The delay set by the requirements document is placed on the right API field, in both variants.
- The production objects are applied declaratively.
- Production then moves to the image
nginx:1.31.2@sha256:b5a9a3cfc86b81dd6f1458d53f2ad2b559cc255653d2efd6cacee5636bf2066f, and staging stays on 1.30.5. Before applying this change, you save what it is going to modify in~/annuaire/diff-production.txt. - A script
~/annuaire/livrer.shtakes the name of a variant,recetteorproduction, applies it declaratively, and returns only once the application is available. This requirement is blocking.
How do you start the challenge and get graded?
The lab prepares the cluster and reads its state again when you ask for your grade. You start it with dsoxlab run k8s-challenge-appliquer-et-verifier-ses-manifests. Two commands are then used: dsoxlab check k8s-challenge-appliquer-et-verifier-ses-manifests tells you where you stand, requirement by requirement, as many times as you like, and dsoxlab submit k8s-challenge-appliquer-et-verifier-ses-manifests returns the final result. The grade never looks at the commands you typed: it reads the cluster and your files, and it replays your delivery script on an erased production.
Put it into practice
This lab is the challenge itself. It puts you in front of the situation described above and it is validated on the state of the cluster, as a colleague taking over your delivery would do. The delay in the requirements document is drawn at random when the lab is prepared: you have to read it, not guess it.
How is the challenge graded?
The pass mark is 70 out of 100. The six requirements weigh the same: six met give 100, five give 83, four give 67, below the pass mark. Requirements 1 and 6 are blocking: if either is not met, the challenge fails, whatever the total.
If a requirement resists, reread the lesson that teaches it, among those in the list at the start, then run dsoxlab check again.
Key points
- The challenge is a final exercise to do alone and without hints: it explains nothing and grades the state of the cluster, not your commands.
- Requirements 1 and 6 are blocking: the two variants built from the same base, and a delivery script that waits for availability.
- The requirements document describes a need, not objects: choosing what to write, and on which field, is part of what is graded.
- The diff of the version upgrade is saved before applying it, never after.
dsoxlab checkshows where you stand as often as you like;dsoxlab submitreturns the result.