Module 7 · Project 07 · Run the App on Kubernetes · Lesson 27 of 48
Build it: the notes app on Kubernetes
Deploy the full app to a practice cluster in stages, break it on purpose, then practise interview answers and test yourself.
In this lesson · about 40 minutes
- Build Project 07 in stages
- Debug Pods with get, describe and logs
- Explain Kubernetes in interview language
Build it in stages
- A cluster: start locally with kind or minikube (free). Later, try a managed cluster such as Amazon EKS, created with your Project 06 Terraform, and remember it costs money every hour.
- Deploy: a namespace, the API Deployment (3 replicas) and Service, using your Project 03 image.
- Configure: ConfigMap and Secret, liveness and readiness probes, requests and limits on every container.
- Expose: install ingress-nginx and add an Ingress for the web front end and
/api. - Data: Postgres as a StatefulSet with a PersistentVolumeClaim (or point the app at RDS).
- Scale and secure: install metrics-server, add an HPA (2–10 Pods at 60% CPU) and a default-deny NetworkPolicy with explicit allows.
- Package: turn it all into a Helm chart with values files for dev and production.
k8s/
├── base/ namespace.yaml deployment.yaml service.yaml ingress.yaml
│ configmap.yaml hpa.yaml networkpolicy.yaml postgres-statefulset.yaml
└── chart/ notes/ (Chart.yaml, values.yaml, templates/)
Break it on purpose
- Delete a Pod with
kubectl delete pod. How long until it's replaced? - Set the image to a tag that doesn't exist. What status do you see? (ImagePullBackOff.) Then
kubectl rollout undo deployment/notes-api. - Set the memory limit to 16Mi. What happens? (OOMKilled, then CrashLoopBackOff.)
- Load-test with
heyork6and watchkubectl get hpa -w. - Delete the database Pod. Is the data still there when it comes back?
Statuses worth knowing
- Pending: no node has room (check requests) or a volume can't attach.
- ImagePullBackOff: wrong image name or tag, or no permission to the registry.
- CrashLoopBackOff: the container keeps exiting. Read
kubectl logs --previous. - OOMKilled: over the memory limit.
Guided dialogue
Mock interview: Kubernetes
0 of 3 answered
Three common questions.
A Pod is in CrashLoopBackOff. What do you do?
Flashcards
Project 07 flashcards
0 of 8 known
Say the answer out loud, flip the card, then be honest: cards you miss come back at the end.
Practice exam
Project 07 practice test
Eight questions, 10 minutes.
- 8 questions · 10 minutes
- No feedback until you submit. Flag questions to come back to them.
- Aim for 85% or better before you move on. The real exam's 750 out of 900 is roughly 80–83%.
Write the 'How it runs' and 'What I broke' sections for your Kubernetes project.
Consider these questions and write down your thoughts. What you write stays on this device.
Written by Noviq Academy in its own words. The labs are simulations: no real servers are touched. When you build the projects yourself, use a practice virtual machine or a free-tier cloud account you control, watch your cloud spending, and never run cleanup or delete commands on a machine you care about. Tool names belong to their owners; versions and output are shown for learning and may differ slightly from yours. Read-aloud and the whiteboard voice use your device's built-in voices.