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

Cloud native: Kubernetes beyond Pods

8 min read
Improve this page

This training teaches you to give an application the cloud native properties on Kubernetes: make it 12-factor compliant, size the nodes to its load, move it to scale-to-zero and govern its traffic with a service mesh. It is written for people who already deploy on a cluster and want to know why and when a building block of the CNCF ecosystem is justified. It follows the Kubernetes and Helm trainings, whose steps it builds on without repeating them.

Who is this training for?

It serves the engineer who delivers applications on Kubernetes and has to decide what to add to them. A developer learns what an application must respect to run properly on a cluster. An administrator or an SRE finds what is needed to justify, or turn down, a node autoscaler, a service mesh or a serverless platform.

The level is intermediate. The training does not try to make you install as many projects as possible: it gives you a grid to evaluate a project, then measurements to judge its real effect.

What are the prerequisites?

You need to have followed two levels of the Kubernetes training, not all four. The "Fundamentals and workloads" level and the "Deliver an application" level are enough. They are described in the Kubernetes course, at level 1 and at level 2. Nothing is assumed from the levels devoted to cluster administration and cluster security.

Concretely, you already know how to:

  • run kubectl apply, kubectl get, kubectl describe and kubectl logs;
  • write a Deployment, a Service, a ConfigMap and a Secret;
  • set probes (liveness, readiness), run a Job and configure an HPA;
  • attach a ServiceAccount to a Pod.

The Helm (in French) training is recommended, because several building blocks of the ecosystem install with a chart, but it is not required. On the workstation side, you need Docker and kind for a local cluster, and at least 4 GB of free RAM for the lessons on Knative and on the mesh, which each deploy several components. That figure comes from the labs' measurements: the kind node used 1.25 GiB with Knative Serving and Kourier, and 1.42 GiB with Istio, whose istiod component reserves 2 Gi in requests (for about 137 MB actually used), each sidecar adding about 106 MB. The graded lab of the 12-factor lesson also needs dsoxlab and a workstation that can run virtual machines.

How is the training organized?

It has three modules, from the most conceptual to the most practical. The detailed programme, with tracking of your progress, is in My course (in French). Each module answers a question the application raises: what cloud native means, how to make the application compliant, and what to add to it when the load or the number of services grows.

Understanding cloud native

The first module sets the vocabulary and the perspective. It has two lessons: Cloud native principles, which explains what the term covers and the principles behind it, then The CNCF ecosystem: evaluating a project, which gives a grid to judge the maturity, the governance and the health of a project before adopting it. These two lessons are the filter you will reuse for every building block of the following modules.

A cloud native application

The second module moves from theory to the application. The lesson Make an application 12-factor compliant on Kubernetes audits an application against the twelve factors and fixes its gaps. Node autoscaling: Cluster Autoscaler or Karpenter (in French) then shows how the Cluster Autoscaler adds and removes nodes according to pending Pods. The nodes are simulated with the KWOK provider: no real machine is created, and Karpenter is compared without being played. The lesson Karpenter: provisioning nodes on demand (in French) is optional: it goes deeper into one of the two tools for those who want to go further.

Serverless and service mesh

The third module covers two ways of handling what surrounds an application: serverless and the mesh. It starts with Serverless on Kubernetes (in French), which places the model, then Knative Serving: measured scale-to-zero (in French) moves a service to zero replicas and measures the cold start on kind. It continues with The service mesh (in French), which explains how proxies take over the communication between services, then Enforcing timeouts, retries and authorizations between services (in French) applies those rules without changing the code, with Istio 1.31.1 in sidecar mode on kind.

What does it leave to the other trainings?

The training only teaches what no other one covers. Several cloud native notions already exist elsewhere on the site, and repeating them would create duplicates that would end up contradicting each other.

  • Pod autoscaling (HPA, VPA) belongs to the Kubernetes training, in Horizontal Pod Autoscaler. Here, you size the nodes.
  • Operators and basic mTLS encryption are also on the Kubernetes side, for example mTLS pod-to-pod. The mesh of this training deals with traffic, not with that basic encryption.
  • GitOps is learned with Argo CD (in French) or Flux CD (in French).
  • Observability (metrics, logs, traces) has its own training, Observability (in French).
  • Loose coupling and statelessness, seen as design principles, are in the Cloud training and in the Services architecture (in French) training.

How is what you learn validated?

Every teaching lesson ends with a quiz. It checks that you understood the lesson, and it draws from a question bank, so two attempts do not ask the same questions.

One lesson carries a DSOXLab lab: the one on the 12-factor application. The lab k8s-rendre-une-application-conforme-12-facteurs of the kubernetes catalogue runs on a kubeadm cluster in a virtual machine, not on kind, and dsoxlab check grades the state of that cluster. It therefore needs a workstation that can run virtual machines, described in Choosing the machine for the labs. The other practical lessons give you the commands to replay on your own kind cluster, ungraded.

The training does not yet have a final exam. No date is announced.

Key points

  • The training assumes Kubernetes levels 1 and 2, not cluster administration or security; Helm is recommended.
  • You need Docker, kind and at least 4 GB of RAM free for Knative and the mesh: the kind node used 1.25 to 1.42 GiB during the labs, and istiod reserves 2 Gi.
  • Three modules: understanding cloud native, a cloud native application, then serverless and service mesh.
  • The Karpenter lesson is optional.
  • Pod autoscaling, GitOps, observability, loose coupling: other trainings, linked above.
  • Every teaching lesson has a quiz; the 12-factor lesson also carries a graded DSOXLab lab. The final exam does not exist yet.