Introduction
What can engineering students do with Kubernetes in 20 hours? This year at ESIGELEC, an engineering school in Normandy, France, my 21 students ran the Spring PetClinic on Kubernetes, moved from its monolith to its microservices, scaled it under load, protected it with a NetworkPolicy, and connected it to a chatbot. In this article, I want to share the program, the highlights of the student reports, and the tools that help me to teach and to evaluate.
Program
This module lasts for 20 hours. It consists of five chapters, each lasting 4 hours, including 1 hour of lecture and 3 hours of lab session. This year, 13 teams of 1 or 2 students did 31 exercises in the lab sessions. The labs run on Docker Desktop: it runs a Kubernetes cluster on each machine, so there is no cluster to rent in the cloud.
In this module, we discuss containerizing applications with Docker, the key components of a Kubernetes cluster, and then dive into workload deployment, networking, configuration, and storage in greater detail:
- Containerization with Docker. In this part, students learned how to create Docker images for Java applications. They learned how to package a Java application as a JAR, and what the Java Runtime Environment (JRE) is. Then, they learned the concepts related to Docker Runtime, Docker Registry, Docker CLI, Docker Desktop, and Dockerfile.
- Kubernetes Overview. In this part, they learned the key components of Kubernetes, including the API server, etcd, scheduler, controller manager, kubelet and node, and the command line tool
kubectl. Then, they developed, operated and fixed Pods in the lab session. - Deployment in Kubernetes. This part focuses on workloads. We discussed deployment and operational challenges in companies and how Kubernetes addresses some of these challenges using ReplicaSets and Deployments. We also talked about deployment strategies, workload scaling and microservices architecture. In the lab session, they moved the PetClinic from its monolith to its microservices, and observed them with traces and metrics.
- Networking in Kubernetes. This part discusses different networking components in Kubernetes to adapt to different use cases in a Kubernetes cluster, including the Service and its types ClusterIP, NodePort, and LoadBalancer. They also learned Namespace and Network Policy, concepts for isolation and control.
- Configuration and Storage. Finally, this part discusses different ways to configure the resources in the cluster, for standalone or shared configuration, for sensitive and non-sensitive information. Then, we talked about volumes and StatefulSet, to run stateful applications. In the lab session, they deployed the chatbot of the PetClinic, and ran its vector database, Qdrant, as a StatefulSet.
Through this program, students gain a better understanding of the challenges associated with software operations. It not only applies to Kubernetes, but also other kinds of orchestration services (Google Cloud Run, AWS App Runner, AWS ECS, …). To access the whole program, please visit https://mincong.io/esigelec/2026/.
Highlights
Here are some highlights and changes from this year: some improvements that I made to the course, and some work of the students that I think is worth sharing with you. They follow the order of the course: the applications of the labs, then Lab Sessions 3 to 5, and finally the tools that help me to teach and to evaluate.
Spring Pet Clinic Adoption
Here is the architecture of the official version, run with Docker Compose, compared to the version of the course, run in Kubernetes. The parts in orange are the ones that Kubernetes replaces. The parts in green are new in the version of the course (the ConfigMap, the HTTP calls through a Service, and the server that I added):
---
config:
flowchart:
nodeSpacing: 20
rankSpacing: 40
---
flowchart TB
subgraph course["Course: Kubernetes"]
direction TB
c_gw["api-gateway<br><span style='color:#868e96 !important'>+ About page</span>"]
c_svc["Microservices<br><span style='color:#868e96 !important'>customers-service<br>vets-service<br>visits-service</span>"]
c_team["team-info-server<br><span style='color:#868e96 !important'>in Go</span>"]
c_cm["petclinic-config<br><span style='color:#868e96 !important'>ConfigMap</span>"]
c_gw -- "http#58;//customers-service<br>Service, CoreDNS" --> c_svc
c_gw -- "http#58;//team-info.classroom" --> c_team
c_svc -. "mounted at /config" .-> c_cm
end
subgraph official["Official: Docker Compose"]
direction TB
o_gw["api-gateway"]
o_svc["Microservices<br><span style='color:#868e96 !important'>customers-service<br>vets-service<br>visits-service</span>"]
o_disc["discovery-server<br><span style='color:#868e96 !important'>Eureka</span>"]
o_conf["config-server<br><span style='color:#868e96 !important'>Git repository</span>"]
o_gw -- "lb://customers-service<br>Spring Cloud LoadBalancer" --> o_svc
o_gw -. "look up" .-> o_disc
o_svc -. register .-> o_disc
o_svc -. configuration .-> o_conf
end
classDef replaced fill:#ffe8cc,stroke:#e8590c,color:#000
classDef added fill:#d3f9d8,stroke:#2b8a3e,color:#000
class o_disc,o_conf replaced
class c_team,c_cm added
linkStyle 3 stroke:#e8590c,stroke-width:2px
linkStyle 0,1 stroke:#2b8a3e,stroke-width:2px
On the Spring PetClinic Microservices side, I made some patches to run the stack in Kubernetes. Because Kubernetes is not a supported platform by this project.
- We had to create a new profile called
kubernetes, which provides an alternative to the existing onedocker, which was mainly designed for Docker Compose. Typically, it disables the load balancer, the config server and replace them by the native Service resources and ConfigMap in Kubernetes. - In the Spring PetClinic API gateway for the frontend, a new About page was added, which allows the team to practice API integration by showing the information relevant to their team.
- Qdrant as an external vector database. The implementation of the GenAI service has been modified to support the external vector database Qdrant. By default, it only supports an in-memory database, and this time, to better simulate the real use cases and understand the stateful set, I added another implementation for connecting to Qdrant.
The students used the PetClinic in every lab session, and they learned Kubernetes with it. They started with the monolith: they built its Docker image, with their team name in the footer, and ran it as a Pod, then as a Deployment. Once they knew the website well, they moved to the microservices in Lab Session 3. The same website became 4 Deployments behind the API Gateway. My manifest had one mistake, and only the page “Veterinarians” failed: they fixed it by rolling out 1 Deployment of 4. Then they compared the 2 architectures in their own cluster. The microservices used the memory of 4 JVMs instead of 1, a request went through 2 services instead of 1, and one service could scale alone with its load.
Team Info
On top of that, we also have a new service called the Team Info Server, which serves as a satellite service to interact with the main services. The main purpose of this server is to be a teaching material for troubleshooting. It exits on purpose when the environment variable TEAM_ID is missing or invalid, so that the students practice fixing a Pod and setting the environment variables of a manifest. This material is also used to understand the exchanges across namespaces, and to observe the load balancing across multiple Pods.
The benefit of using the team info server is that it’s a lightweight Go server whose size is significantly smaller than a Java container, which is only about 5 MB. By using that, it is possible to start the container quickly. It is especially interesting for students who are using their desktop because some of them have limited memory, like 8 GB or 16 GB, which is quite different from the school’s computer. It is also an opportunity to show them that different services can be in different languages and they don’t have to stick to one programming language inside the microservice architecture.
For example, here is the About page of the team “purple”, before and after they added the route to the Team Info Server in the API gateway, in Lab Session 4:
Before the route, the API gateway answered 404 itself, because no route matched /api/about/. After the route, it forwarded the request to the Service team-info in the namespace classroom, and the page showed the information of the team. Thanks to this Team-Info integration, a student learns the route configuration in Spring and then network troubleshooting through the access logs (so they know whether the error is located in the API gateway, in the Go service, or elsewhere).
Observability
We also introduced the observability stack, including Grafana, Zipkin, and Prometheus. It allowed the students to understand how the microservices communicate with each other based on the traces observed in the PetClinic server; observe the scaling events and the system loads; and more.
I added Observability because this course is more oriented towards Systems Engineering than Software Engineering. Also because at the AI era, software changes much faster and therefore, we need better way to observe the changes in the architecture and understand their relationship.
This screenshot comes from Exercise 6 of Lab 3. The students created an outage on purpose: they scaled vets-service down to 0 replicas, then opened the page “Target health” of Prometheus. The green team got “3 / 3 up”: the API gateway, customers-service and visits-service are UP, and vets-service is missing from the list. It is not marked as DOWN, because Prometheus discovers its targets from the running Pods, and there is no Pod of vets-service any more. In other words, the monitoring looks healthy while a service is down. 5 other teams noticed the same thing, and for the green team, it’s the traces in Zipkin that revealed the outage.
In the following sections, you will discover more screenshots like this because most of the evidence from their lab sessions came from observability.
Autoscaling
This year, in terms of the lecture, what we improved is that we added auto-scaling to the deployments part. Chapter 3 allows students to understand how to install the metrics server on the Kubernetes Control Plane and define auto-scaling rules based on CPU.
More precisely, the team needs to install the Metrics Server to the Kubernetes cluster and add a horizontal pod autoscaler (HPA) to a service and send loads to it. Each team has their freedom to choose an implementation for the load test, and they can send it and observe the load from the observability tool Grafana.
The teaching material is also prepared for them to succeed, meaning that I lower the maximum number of spans and the lower threshold for the upscaling (because, overall, all the events happen on the laptop). The importance is to observe the upscale and downscale events without crashing their machine.
Here, in this screenshot, you can see that the black team used a loop generator based on the busybox image to run an infinite loop of wget to get the content from the veterinarian service. This generated an increased amount of HTTP traffic, which resulted in the auto-scaling of the deployment.
The students also explained what they saw. The team “purple” noticed a short burst of HTTP 503 errors right after the HPA created new Pods. Their analysis: the manifest has no readiness probe, so Kubernetes marks a new Pod as ready as soon as its process starts, while Spring Boot still needs 15 to 30 seconds. As a fix, they proposed a readinessProbe on /actuator/health/readiness.
Network Policy
On the networking side, we also talked about the network policy to enforce communication between namespaces, which was not the case last year.
In the new slides, under the networking chapter (Chapter 4), I added 7 new slides, starting with business use cases such as personal data protection and payment card industry (PCI). They then share the motivation for network protection based on business requirements. This helps sensitize the student to security and data protection, which is a frequent request from companies, especially in Europe.
After learning the motivation, they start practicing it by defining the network policy and applying it through PetClinic, while protecting the PetClinic application as a production environment so that other namespaces in the Kubernetes cluster cannot access the data.
The green team tested their NetworkPolicy from a temporary Pod in 3 namespaces. Before the policy, all the calls reached the API gateway and the Customers Service. After it, the calls from classroom timed out, while the ones from default and kube-system still went through:
---
config:
flowchart:
nodeSpacing: 20
rankSpacing: 50
---
flowchart LR
c_tmp["classroom:tmp<br>Pod"]
d_tmp["default:tmp<br>Pod"]
k_tmp["kube-system:tmp<br>Pod"]
subgraph policy["petclinic-restrict-ingress (NetworkPolicy)"]
petclinic["api-gateway<br>customers-service<br><span style='color:#868e96 !important'>Services in default</span>"]
end
c_tmp -- "blocked:<br>download timed out" --x policy
d_tmp -- "allowed" --> petclinic
k_tmp -- "allowed" --> petclinic
classDef blocked fill:#ffe3e3,stroke:#c92a2a,color:#000
class c_tmp blocked
linkStyle 0 stroke:#c92a2a,stroke-width:3px
linkStyle 1,2 stroke:#2b8a3e,stroke-width:2px
Here is an excerpt of their analysis, from their report of Lab 4 - Exercise 7:
# api-gateway 80/TCP, customers-service 80/TCP foreach ($ns in "classroom","default","kube-system") { foreach ($svc in "api-gateway","customers-service") { kubectl run tmp --rm -i --image=busybox --restart=Never -n $ns -- wget -S -O /dev/null -T 3 http://$svc.default.svc.cluster.local } } [...] # same loop: # classroom -> api-gateway: wget: download timed out customers-service: wget: download timed out # default -> api-gateway: 200 OK customers-service: 404 # kube-system -> api-gateway: 200 OK customers-service: 404Analysis:
- Blocked request: the packets of classroom are dropped silently, so the client waits until its timeout (“download timed out”). A broken Service answers quickly with “Connection refused” (Exercise 5), and the 404 of Customers shows that a reachable service answers. Before the policy, the same calls from classroom worked, so the policy is the only change.
- Who enforces it: the Kubernetes API only stores the NetworkPolicy. The network plugin (CNI) of the cluster, kindnet here, applies it on the nodes. The blocking seen above shows that kindnet enforces the policies; with a CNI that does not, the policy would be accepted with no effect.
GenAI
In lab session 5, students are also asked to deploy a GenAI service as part of the PetClinic microservices. This service serves multiple purposes: firstly, it allows them to understand the configuration of Kubernetes through secrets and config maps; secondly, developing GenAI integration is trending in companies, and students should be prepared for that; thirdly, it is an excellent way to discover other services in the stack. That’s why, going through the Lab Session 5, I chose this service as an example for the exercises. Now we are going into further details from some specific angles about the GenAI service.
GenAI Integration
Here is the architecture of the PetClinic at the end of Lab 5. The parts in green are the ones that the teams add in Lab 5: the GenAI service, its route in the API gateway, and the vector database Qdrant:
---
config:
flowchart:
nodeSpacing: 25
rankSpacing: 45
---
flowchart TB
browser([browser])
gateway["api-gateway<br><span style='color:#868e96 !important'>UI and routes</span>"]
others["vets-service<br>visits-service"]
customers["customers-service<br><span style='color:#868e96 !important'>owners and pets</span>"]
genai["genai-service<br><span style='color:#868e96 !important'>the chat, added in Lab 5</span>"]
qdrant[("qdrant<br><span style='color:#868e96 !important'>StatefulSet, 3 Pods<br>added in Lab 5</span>")]
openai(["OpenAI API<br><span style='color:#868e96 !important'>gpt-4o-mini</span>"])
browser --> gateway
gateway -- "/api/vet/#42;#42;<br>/api/visit/#42;#42;" --> others
gateway -- "/api/customer/#42;#42;" --> customers
gateway -- "/api/genai/#42;#42;" --> genai
genai -- "owners, pets" --> customers
genai -- "vector search" --> qdrant
genai -- "chat, embeddings<br>key in a Secret" --> openai
classDef added fill:#d3f9d8,stroke:#2b8a3e,color:#000
class genai,qdrant added
linkStyle 3,4,5,6 stroke:#2b8a3e,stroke-width:2px
The first step for them is to install the Spring GenAI service into the Kubernetes cluster alongside all the existing services. By doing so, they review and practice what they learned in the previous lecture about: declaring a deployment and a service; modifying the config map; understanding the routing of the API gateway; troubleshooting the interactions with the trace server Zipkin; and more. It is an efficient way for them to go through what we learn from chapter 2 to chapter 5.
At the beginning, the chat box of the PetClinic shows “Chat is currently unavailable”. Once a team fixes all the issues and deploys the GenAI service as a Kubernetes resource, the chat box works again.
Going Further: Hallucinations and Traces
Once they have the GenAI service, they have a base for exploring more. In the lab session, we prepare some exploration so that they can go further. Some of them are mandatory, but some of them are optional, depending on the curiosity of the team and their background. They may go further or not in the discovery. I prepare several things. I ask them to understand: the prompt engineering behind the service; the use of tools; the retrieval-augmented generation; the use of memory; etc.
Here is a great example of hallucination from the team “olive”. They asked the chat when Max visited the clinic, and it answered September 15, 2023, for a checkup. But the page of its owner, Jean Coleman, shows 2 other visits: a rabies shot on January 2, 2013, and the neutering on January 3, 2013 (Figure 7). The team explained why with the traces. The tool listOwners reads the Customers Service, not the Visits Service, and the trace of the wrong answer has no call that could give this date. So the model invented an answer instead of admitting that it didn’t know. It’s a good example to understand the limits of a model.
mc added to help the evaluation
And then the second example is here, with the trace where you can see that the team were able to find the interaction between the chat client from the GenAI service and its interaction with the LLM and also with the vector database Qdrant.
Qdrant as an External Vector Database
In the GenAI part, we continue with the vector database as an example of the StatefulSet in Kubernetes. Here, we deploy the Qdrant database with three replicas. From the screenshot above, you can see that they successfully imported the vectors into the vector database and two vectors were displayed. They also tried finding similar radiologist on “Helen Leary”, which returns “Henry Stevens” first, with a score of 0.96.
I choose this vector database as an example for the StatefulSet because I think this is a real-world example for companies developing a Gen AI solution. A vector database is how a company gives an AI assistant their own data using a RAG. The student learned the architecture behind most assistants in production, and it is highly relevant to the course. Since we need an example for them to play with the stateful set to understand its differences with deployment (about the deployment order, the volume attached to the pod, etc). It also offers an UI which is great for understanding the behavior of the system and explore the data.
Here, from the black team, they successfully observe the order of the creation of the pod in a stateful set, where the replica 0 got created first, and then the replica 1 followed, and then the replica 2, the last replica provision, started last.
The team “gold” drew the topology of Qdrant in its report:
---
config:
flowchart:
nodeSpacing: 25
rankSpacing: 25
padding: 10
---
flowchart LR
genai["genai-service"]
qdrant["qdrant<br><span style='color:#868e96 !important'>Service, ClusterIP<br>ports 6333 and 6334</span>"]
headless["qdrant-headless<br><span style='color:#868e96 !important'>Service, no ClusterIP<br>port 6335</span>"]
subgraph sts["qdrant (StatefulSet)"]
q0["qdrant-0"]
q1["qdrant-1"]
q2["qdrant-2"]
end
v0[("qdrant-storage-qdrant-0<br><span style='color:#868e96 !important'>PVC, 1 GiB</span>")]
v1[("qdrant-storage-qdrant-1<br><span style='color:#868e96 !important'>PVC, 1 GiB</span>")]
v2[("qdrant-storage-qdrant-2<br><span style='color:#868e96 !important'>PVC, 1 GiB</span>")]
genai -->|"gRPC 6334"| qdrant
qdrant --> q0
qdrant --> q1
qdrant --> q2
headless -.-> q0
headless -.-> q1
headless -.->|"DNS name of each Pod,<br>for the peers on 6335"| q2
q0 --- v0
q1 --- v1
q2 --- v2
Teaching Assistant
The command-line interface mc has been improved too. Last year, I used it for static checks in the grading, such as checking the content of a file, and for Git operations in batch for all the teams. This year, it went further and became more like a teaching assistant. It helps me in 2 ways:
- It replaces GitHub Classroom to provision the teams. In the first session, each team picks a color and gives me the GitHub accounts of its members. Then
mcuses the GitHub CLIghto create the team, invite its members, create the team repository from the public template, and grant the team access to it. - It also helps the evaluation of each team. As a system-level course, it is hard to reproduce all the scenarios: each team has its own cluster and its own names, and there are no standard answers. That’s why
mcprovides additional hints to augment the result of each team, such as boxes on a screenshot that highlight the important part (Figure 8). These hints help me to check the correctness of each result and to evaluate each team in more depth.
Animation in Slides
With the advance of AI and coding agents, it became possible to have more advanced assistance for the lecture and the presentation.
In the past, we used some diagrams to illustrate some scenarios, but those diagrams were more or less static. They were screenshots, and it was hard to maintain them because we needed to generate them separately from the site and then import them as static images into the presentation.
Now, with coding agents like Claude Code, it was possible to embed the diagrams directly into the slide and also ensure that they animate in a coordinated way with the content. When we express some view, some definition of a specific topic, it can not only show the diagram to illustrate the interaction or relationship between different components, but also highlight a specific component that the teacher wants the student to focus on. It makes the whole flow more dynamic and more attractive.
On the other hand, it also allows some comparison. For example, we can compare the interactive and declarative commands side by side. Whenever I click, we can show the evolution of both sides. This kind of advanced animation was not possible in the past. Thanks to a coding agent, we can do a lot more on this site to make the course and the lecture more attractive.
Conclusion
From this article, you can see that we had a lot of fun building and learning Kubernetes in this module. The students learned the concepts of Kubernetes through its architecture, its workloads, its networking, its configuration and its storage. They also had the opportunity to explore a microservice architecture on Kubernetes, to observe the behavior of its components with the observability stack, and to connect it to a GenAI service.
The highlights of this article show that we use real-world examples in the lab sessions, which help the students understand why these concepts are needed.
Thank you to ESIGELEC for having me again, and to the 21 students for their work. It was a privilege for me to return to my former school, this time as a teacher. If you are interested in seeing the teaching material of the course, it is public at https://mincong.io/esigelec/2026.