~/talk

Production-ready Flask & Django apps on Kubernetes

Talkat PyConZA 2019 · 2019-10-09..10-11· [kubernetes, python]
slides:none on file

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

  1. 0:00Introduction
  2. 2:14Why use Kubernetes
  3. 5:01WSGI stack explained
  4. 8:13Handling requests in Kubernetes
  5. 12:49Serving static files
  6. 15:47Deployments and updates
  7. 18:58Pod sizing and scaling
  8. 20:04Configuration management
  9. 22:52Handling credentials
  10. 25:39Database migrations
  11. 27:26Future of Python on Kubernetes
  12. 30:47Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.