Snaking Python Into Kubernetes
summary
Shows building a FastAPI Python microservice, containerizing it with successive Docker multi-stage refinements and shrinking the image from about 378 MB to 144 MB (~40% smaller). Uses FastAPI (with uvicorn), a local Helm-installed registry, the ko builder to construct images, and a Tecton pipeline on Kubernetes (Katacoda sandbox) that clones the repo, builds, pushes, and deploys. The pipeline completes, the image appears in the registry, and the service responds at the deployed endpoint.
AI-written summary · about
chapters (17)
- 0:00Introduction to session
- 2:05Python language overview
- 12:02Python in containers basics
- 17:01Kubernetes architecture explained
- 22:17CI/CD pipelines on Kubernetes
- 30:00Hands-on demo setup
- 31:26Building bloated container
- 33:37Building slim container
- 37:06Building Alpine container
- 40:15Container registry setup
- 41:58Installing Tecton pipeline
- 45:29Defining pipeline resources
- 46:31Creating pipeline tasks
- 47:57Pipeline execution flow
- 50:04Running the pipeline demo
- 51:49Deploying Python app on Kubernetes
- 52:50CI/CD workflow summary
related talks
26mHow to containerize Python applications with Docker
26mQuickly Creating a Production-Ready API Using FastAPI and Docker…Explained with Memes
29mSimplifying Python Web App Operations: Automating K8s Ops with Open Source
26mDeploy Python Apps on Kubernetes and Prepare for Scale
02h 28mWorkshop: Learn How to Dockerize Your Python Application
31mSimplifying Python Web App Operations: Automating K8s Ops with Open Source
25mA microservices architecture with Python and Docker containers
27mWrite portable CI/CD pipelines using Python
