Production-ready Flask & Django apps on Kubernetes
summary
Explains exactly how to run Flask/Django WSGI apps on Kubernetes: use a sidecar nginx proxy (or async Gunicorn/uvicorn workers or a service mesh) to protect and buffer requests; serve static files either via sidecar volume, S3 with django-storages, or preferably WhiteNoise for static files; deploy with Kubernetes Deployments (example shows three replicas) and run schema changes with a Kubernetes Job for migrations; store config in ConfigMaps but store credentials with Secrets or an external Vault; ASGI (uvicorn/daphne) is presented as the future.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 2:14Why use Kubernetes
- 5:01WSGI stack explained
- 8:13Handling requests in Kubernetes
- 12:49Serving static files
- 15:47Deployments and updates
- 18:58Pod sizing and scaling
- 20:04Configuration management
- 22:52Handling credentials
- 25:39Database migrations
- 27:26Future of Python on Kubernetes
- 30:47Q&A
related talks
26mDeploy Python Apps on Kubernetes and Prepare for Scale
38mEnd-to-End Django on Kubernetes
31mSimplifying Python Web App Operations: Automating K8s Ops with Open Source
49mFundamentals of Kubernetes for Django developers
30mForklifting Django: Migrating A Complex Django App To Kubernetes
29mSimplifying Python Web App Operations: Automating K8s Ops with Open Source
29mForklifting Django: Migrating A Complex Django App To Kubernetes
30m"What Django Deployment is Really About"
