Skip to content

Project 1: Django Notes App on Kubernetes

Deploy a production-like two-tier web application on Kubernetes featuring a Django backend and PostgreSQL database.

Internet / Client
│
▼ (Port 8000)
┌─────────────────────────┐
│ Service: django-service │ (ClusterIP / NodePort)
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Pod: django-notes-app │
│ ConfigMap (DEBUG, HOST) │
│ Secret (DB_PASSWORD) │
└───────────┬─────────────┘
│ Internal TCP :5432
▼
┌─────────────────────────┐
│ Service: postgres-db │
└───────────┬─────────────┘
│
▼
┌─────────────────────────┐
│ Pod: postgres (Stateful)│
│ PVC: postgres-pvc (5Gi) │
└─────────────────────────┘