Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

Read a cluster: which component does what

By updated

Improve this page

Logo Kubernetes

This challenge checks that you can, on your own, read a cluster: find which Node carries the control plane, name the Pods of its components and say what each one does, record the runtime of each worker, show where a Pod was placed and find which component does not act on a Deployment whose Pods never start. It is meant for people who have just followed the Architecture, Control plane and Worker nodes lessons of the Cluster architecture module. It runs in a dsoxlab virtual machine, on a kind cluster with four Nodes and Kubernetes 1.37, and takes about 30 minutes. It gives no hints and teaches nothing new: it checks what the lessons have already let you practice.

What you will learn

The grader compares your survey with the real state of the cluster. It checks that you can:

  • Find the Node that hosts the control plane.
  • Name the Pods of the four control plane components and say, in your own words, what each one does.
  • Record the container runtime and its version on each worker Node.
  • Show which Node the Scheduler placed a Pod on, with the event that proves it.
  • Find which component created the Pods of a Deployment and which link of the chain does not act on them.

What should you be able to do before you start?

No step-by-step guide goes with the challenge, and choosing the right commands is part of what it checks. Everything it asks is taught in three lessons of the Cluster architecture module:

If one of these points feels unclear, reread the lesson before you start.

What does the statement ask for?

A kind cluster named architecture runs four Nodes: one control plane and three workers, and your kubectl already points at it. In the architecture namespace, two objects are waiting for you: a Pod named temoin, and a Deployment named file-attente whose Pods never start. Everything you find goes into the survey ~/architecture/releve.txt, whose keys are already written: fill in the value after each colon, one value per line.

The statement says what must be true at the end, never how to get there:

  1. noeud-control-plane holds the name of the Node that hosts the control plane.
  2. pod-apiserver, pod-etcd, pod-scheduler and pod-controller-manager hold the names of the Pods of the four control plane components, as found in kube-system. role-apiserver, role-etcd, role-scheduler and role-controller-manager say, in a few words of your own, what each one does.
  3. One runtime-<Node name> line per worker Node holds the container runtime of that Node and its version.
  4. noeud-du-pod-temoin holds the Node that received the temoin Pod, and evenement-scheduled quotes the message of the event that proves it.
  5. For file-attente, cree-par names the component that created its Pods, and n-agit-pas names the first link of the chain that does not act on them. This is a diagnosis only: do not repair the Deployment.

Leave the temoin Pod and the file-attente Deployment as they are.

How do you start the challenge and get graded?

The lab prepares the cluster and the survey, then compares your survey with the state of the cluster when you ask for your grade. You start it with dsoxlab run k8s-challenge-lire-un-cluster. Two commands are then used: dsoxlab check k8s-challenge-lire-un-cluster tells you where you stand, requirement by requirement, as many times as you like, and dsoxlab submit k8s-challenge-lire-un-cluster returns the final result. The grade never looks at the commands you typed.

Events are kept for 24 hours on this cluster, against one hour by default in Kubernetes. After a longer break, those of the lab are gone: dsoxlab reset k8s-challenge-lire-un-cluster lays the situation out again.

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 real state of the cluster, as a colleague reading your survey would do.

How is the challenge graded?

The pass mark is 70 out of 100. Five criteria make up the grade: the control plane Node, the Pods of the four components with their role, the runtime of each worker, the placement of the temoin Pod shown by its event, and the link that does not act on file-attente. Roles are judged on meaning, in English or in French: a role must describe the function of its own component, not repeat its name.

If a criterion resists, reread the lesson that teaches it, in the list of the prerequisites section, then run dsoxlab check again.

Key points

  • The challenge is a final exercise to do alone and without hints: it explains nothing and grades your survey, compared with the state of the cluster, not your commands.
  • The survey is filled in as key: value, one value per line, in ~/architecture/releve.txt.
  • The temoin Pod and the file-attente Deployment stay as they are: the challenge is a diagnosis, not a repair.
  • dsoxlab check shows where you stand as often as you like; dsoxlab submit returns the result.