This exam measures whether you can, on your own, expose and protect a service on a Cilium cluster: serve a shop's storefront over HTTPS through a Gateway, let clients read it without letting them modify it, cut off an unwanted client, encrypt traffic between nodes and find in Hubble the request that your protection refuses. It is meant for people who are finishing level 6, "Advanced networking". It runs in a virtual machine, so plan about 120 minutes. You pass it by meeting two critical criteria and reaching at least 70 points out of 100. It offers no hints and teaches nothing new: it checks what the lessons have taught.
What you will learn
The grader reads the state of the Cilium cluster and checks that you can:
- Serve a storefront over HTTPS through a Cilium Gateway, with an address and the certificate intended for its host name.
- Route by host name, so that another name gets a 404 error.
- Let clients read (GET) and refuse writes (POST, 403 error) through the Gateway, with a rule that looks at the HTTP method and path.
- Cut off an unwanted client at the network level without blocking the legitimate client.
- Encrypt traffic between nodes with WireGuard.
- Find in Hubble the request that your protection refuses, and record it in a ConfigMap.
What should you be able to do before you start?
No step-by-step guide goes with the exam, and choosing the right objects is part of what it measures. The specification describes results, not how to get them. It assumes the kubeadm cluster of level 4 and the basic resources of levels 1 to 3, and it relies on seven lessons.
- Install Cilium without kube-proxy and choose your IPAM: reading the state of a cluster where Cilium replaces kube-proxy, and what assigning addresses to Services does.
- Serve a Gateway and filter at L7 with Cilium: having Cilium serve a Gateway, giving it an address, writing a rule that looks at the HTTP method and path, allowing the Gateway's traffic and reading a refusal in Hubble.
- Hubble: observe, measure and audit network flows: reading the verdicts of a flow, to find what a policy refuses.
- Kubernetes Gateway API: the difference between a Gateway and a route, and how to read the conditions of a Gateway that does not get programmed.
- Gateway API over HTTPS: an HTTPS listener, its certificate Secret and how to read the certificate that is actually presented. The lesson does it with Istio, the exam asks for it with Cilium: the procedure is the same, the controller changes.
- Kubernetes NetworkPolicies: selecting Pods, denying by default, opening only what is useful.
- Pod-to-pod mTLS: Cilium's transparent encryption with WireGuard, and what node encryption covers.
Keep in mind that the protection must not break the legitimate reading of the storefront: a policy that also cuts the Gateway's traffic or that of caisse is worthless.
What does the specification ask for?
The scenario has you take over the Cilium cluster of a shop that is moving its storefront. It works, and nobody has touched it since the installation: no Gateway, no network policy, no encryption, and no load balancer. The specification says what must be true at the end, never how to get there. The lab scenario gives the names that the grader looks for: it is authoritative, so read it in full when you start.
You work on the node net-cp.lab, with kubectl and helm. The cluster has three nodes, net-cp.lab, net-w1.lab and net-w2.lab, and Cilium 1.20.5 replaces kube-proxy there. Two facts are given to you: the version of Gateway API that this version of Cilium supports is v1.6.3, and the network team entrusts you with the address block 172.31.0.0/28 for the exposed services.
The inherited state lives in the boutique namespace.
- The
vitrineanswers over HTTP behind a Service of the same name, on port 80. caisseis its legitimate client.publicite, an advertising tracker, also reaches it and has no business there.relance, a reminder robot, carries the same labels ascaisseand calls thevitrinein a loop. Besides reading it, it sends a request that a read-only storefront must refuse. Which one, nobody remembers.- The certificate for
vitrine.formation.testis ready in the Secretvitrine-tls, signed by an authority specific to the shop and published in the ConfigMapca-boutique.
The specification comes down to seven requirements, each graded by one criterion.
- A Gateway served by Cilium, in
boutique, is ready and has an address. - Its HTTPS listener presents the certificate from
vitrine-tlsforvitrine.formation.test, and that certificate verifies against the shop's CA. https://vitrine.formation.test/leads to thevitrinethrough the Gateway, and any other name gets a 404 error.- Through the Gateway, the
vitrinecan be read (GET) and an attempt to write (POST) is refused with a 403. caissereads without writing, andpubliciteno longer reaches thevitrineat all, cut off at the network level.- Each Cilium agent encrypts with WireGuard toward its two peers.
- The ConfigMap
diagnosticinboutiquenames the request that your protection refuses torelance: the keymethodeholds the HTTP method and the keycheminholds the path.
How do you start the exam and get graded?
The lab prepares the cluster and the full statement, then reads the state of the cluster again when you ask for your grade. You start it with dsoxlab run k8s-epreuve-reseau-avance. Two commands are then used, and they do not do the same thing: dsoxlab check k8s-epreuve-reseau-avance tells you where you stand, criterion by criterion, as many times as you like; dsoxlab submit k8s-epreuve-reseau-avance returns the verdict. The grade never looks at the commands you typed, only at the final state.
The grader queries the cluster, never your manifests. It reads the state of the Gateway, opens a real TLS connection to examine the certificate presented, sends real GET and POST requests through the Gateway and from the client Pods, queries the encryption status in each Cilium agent and reads the ConfigMap diagnostic again to compare it with the request that relance actually sends.
Put it into practice
This lab is the exam itself. It puts you in front of the scenario described above and it is validated on the final state of the cluster, as a colleague taking over your work would.
How is the exam graded?
Seven criteria make up the grade, at equal weight: each is worth about 14.3 points out of 100. The pass mark is 70 points, that is at least five criteria. Two criteria are critical: they must both pass, and failing a single one fails the exam, whatever the total. The two critical criteria are worth about 28.6 points: you must therefore pass them, then at least three of the other five to reach 70, that is five criteria in all (71.4 points). With four criteria, the total falls to 57.1 points, which is not enough.
The exam offers no hints, because it measures what you can do on your own, like the level 3 exam. If a criterion resists, the section that follows says which lesson to reread before you retake it.
The table gives each criterion, phrased as a result, and says whether it is critical.
| Criterion | Critical | |
|---|---|---|
| E1 | a Gateway served by Cilium in the shop's namespace is programmed and has an address | no |
| E2 | its HTTPS listener presents the certificate planned for the storefront's name, verified against the shop's CA | no |
| E3 | the storefront's name leads to the storefront through the Gateway, and any other name gets a 404 | no |
| E4 | through the Gateway, GET is served and POST is refused with a 403 | yes |
| E5 | caisse reads without writing, and publicite is cut off at the network level | no |
| E6 | each Cilium agent encrypts with WireGuard toward its two peers | yes |
| E7 | the ConfigMap diagnostic names the method and the path that the policy refuses to relance | no |
What should you do after the exam?
If the two critical criteria pass and the total reaches 70, the level is validated. Otherwise, reread the lesson that teaches the failed criterion, then retake the exam.
- E1: the lesson Serve a Gateway and filter at L7 with Cilium, to enable Gateway API in Cilium and give the Gateway an address, then the lesson on installing Cilium, since this address depends on how the cluster assigns addresses to Services;
- E2: the lesson on Gateway API over HTTPS, then the lesson cited for E1, which sets up the HTTPS listener with Cilium;
- E3: the lesson on Gateway API, for routing by host name;
- E4 and E5: the lesson Serve a Gateway and filter at L7 with Cilium, for the rule that tells the HTTP method and path apart and for allowing the Gateway's traffic, and the lesson on NetworkPolicies, to select clients and cut off the network;
- E6: the lesson on encryption between Pods with Cilium, which states what the encryption covers and what it requires for nodes;
- E7: the lesson on Hubble, to read refusal verdicts, and the lesson cited for E1, which shows on which node to run
hubble observeto see an HTTP refusal.
Key points
- The exam is a measurement: it explains nothing again and grades the state of the cluster, not your manifests or your commands.
- The two critical criteria, read-only access through the Gateway and WireGuard encryption, decide the verdict: failing one fails the exam, and the total must also reach 70 points.
- Each criterion is worth about 14.3 points: five criteria are enough to reach 70 points (71.4), four are not (57.1).
- The exam offers no hints: it measures what you can do on your own.
dsoxlab checktells you where you stand at will, and onlydsoxlab submitreturns the verdict.