
Episode 254
Scaling Python Web Applications With Kubernetes and Karpenter
The Real Python Podcast · Real Python
June 20, 20251h 4m
Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
<p>What goes into scaling a web application today? What are resources for learning and practicing DevOps skills? This week on the show, Calvin Hendryx-Parker is back to discuss the tools and infrastructure for autoscaling web applications with Kubernetes and Karpenter.</p>
<p>Calvin is the co-founder and CTO of Six Feet Up, a Python and AI consultancy. He shares how they recently helped a client scale a web application that employs video, audio, and chat sessions. We dig deep into the tooling behind modern Kubernetes systems management and performance monitoring.</p>
<p>Calvin shares a project bootstrap tool for streamlining the development and deployment of a web application. The tool includes a complete blueprint for the infrastructure needed to get started.</p>
<p>We also dig into a collection of coding tools Calvin has been experimenting with. We discuss his recent IndyPy presentation, “Battle of the Bots,” which put several AI code assistants through their paces.</p>
<p>This episode is sponsored by AMD.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/first-steps-langchain/">First Steps With LangChain</a></p>
<p>Large language models (LLMs) have taken the world by storm. In this step-by-step video course, you’ll learn to use the LangChain library to build LLM-assisted applications.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:23 – Scaling a Django project using Kubernetes</li>
<li>00:05:35 – Elastic Kubernets Service (EKS)</li>
<li>00:09:10 – Kubernetes terminology and improvements in tooling</li>
<li>00:11:29 – The Control Plane and the API</li>
<li>00:14:06 – Video Course Spotlight</li>
<li>00:15:11 – scaf: providing DevOps engineers a blueprint for new projects</li>
<li>00:17:21 – What have been the benefits of scaf for internal teams?</li>
<li>00:20:18 – How do you identify and reproduce scaling issues?</li>
<li>00:22:44 – Dealing with IP address scaling</li>
<li>00:26:03 – Why use other observability tools beyond AWS internal ones?</li>
<li>00:29:22 – Other lessons learned and moving toward refactoring code</li>
<li>00:33:53 – Scaling a voice-based LLM application</li>
<li>00:35:35 – Sponsor: AMD</li>
<li>00:36:11 – Looking at limitations and bottlenecks</li>
<li>00:38:08 – Configuring a Kubernetes operator to act on itself</li>
<li>00:39:47 – What project components are within a pod of containers?</li>
<li>00:42:31 – Budgeting for scale using Karpenter</li>
<li>00:43:58 – Tools for running containers locally</li>
<li>00:46:01 – Are containers still a primary development tool for you?</li>
<li>00:50:58 – Resources for learning DevOps and Kubernetes</li>
<li>00:52:54 – Conferences and talks</li>
<li>00:53:56 – Battle of the Bots: comparing coding agents</li>
<li>00:55:15 – What are you excited about in the world of Python?</li>
<li>00:56:20 – What do you want to learn next?</li>
<li>01:02:42 – What’s the best way for people to follow your work online?</li>
<li>01:03:33 – Thanks and goodbye</li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="https://sixfeetup.com/">Six Feet Up - Python and AI for Good, Custom Software Development</a></li>
<li><a href="https://kubernetes.io/docs/tutorials/">Kubernetes - Tutorials</a></li>
<li><a href="https://aws.amazon.com/eks/">Managed Kubernetes Service - Amazon EKS - AWS</a></li>
<li><a href="https://karpenter.sh/">Karpenter</a></li>
<li><a href="https://kustomize.io/">Kustomize - Kubernetes native configuration management</a></li>
<li><a href="https://kubernetes.io/docs/concepts/overview/components/#control-plane-components">Kubernetes Components - Control Plane Components</a></li>
<li><a href="https://realpython.com/github-actions-python/">Continuous Integration and Deployment for Python With GitHub Actions</a></li>
<li><a href="https://argoproj.github.io/cd/">Argo CD</a></li>
<li><a href="https://github.com/sixfeetup/scaf">scaf: Provides developers and DevOps engineers with a complete blueprint for a new project</a></li>
<li><a href="https://sixfeetup.com/company/news/streamline-developer-experience-with-kubernetes-and-scaf-tm">Streamline the Dev Experience with Kubernetes and Scaf™</a></li>
<li><a href="https://sixfeetup.com/company/scaf-a-blueprint-for-developers">Scaf™ — Six Feet Up</a></li>
<li><a href="https://talkpython.fm/episodes/show/496/scaf-complete-blueprint-for-new-python-kubernetes-projects">Scaf: Complete blueprint for new Python Kubernetes projects - Talk Python To Me Podcast E496</a></li>
<li><a href="https://kind.sigs.k8s.io/">kind</a></li>
<li><a href="https://locust.io/">Locust - A modern load testing framework</a></li>
<li><a href="https://grafana.com/">Grafana: The open and composable observability platform</a></li>
<li><a href="https://grafana.com/oss/loki/">Grafana Loki OSS - Log aggregation system</a></li>
<li><a href="https://prometheus.github.io/client_python/">Prometheus - client_python</a></li>
<li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html">Elastic network interfaces - Amazon Elastic Compute Cloud</a></li>
<li><a href="https://github.com/awslabs/eks-node-viewer">eks-node-viewer: EKS Node Viewer</a></li>
<li><a href="https://github.com/derailed/k9s">k9s: 🐶 Kubernetes CLI To Manage Your Clusters In Style!</a></li>
<li><a href="https://orbstack.dev/">OrbStack · Fast, light, simple Docker & Linux</a></li>
<li><a href="https://wiki.nixos.org/wiki/Python">NixOS Wiki - Python</a></li>
<li><a href="https://www.youtube.com/c/techworldwithnana">TechWorld with Nana - YouTube</a></li>
<li><a href="https://www.youtube.com/watch?v=pqBqdNIPrbo">Python: The Documentary [OFFICIAL TRAILER] - YouTube</a></li>
<li><a href="https://www.linkedin.com/in/calvinhp/">Calvin Hendryx-Parker - LinkedIn</a></li>
</ul>
<p>Conferences and Meetups:</p>
<ul>
<li><a href="https://allthingsopen.org/events/all-things-open-2025">All Things Open 2025 - All Things Open</a></li>
<li><a href="https://allthingsopen.ai/">All Things Open AI Conference</a></li>
<li><a href="https://www.youtube.com/playlist?list=PL6kQg8bP1Ji4JC8KR_q9yYs8rUN77zBG7">All Things Open AI 2025 - AI Builders Track - YouTube</a></li>
<li><a href="https://www.youtube.com/watch?v=HEawRMNGlMU&list=PL6kQg8bP1Ji4JC8KR_q9yYs8rUN77zBG7&index=5">Rolling out Enterprise AI: Tools, Insights, & Team Empowerment - Calvin Hendryx-Parker, Six Feet Up - YouTube</a></li>
<li><a href="https://us.pycon.org/2025/">PyCon US 2025 - PyCon US 2025</a></li>
<li><a href="https://www.pyohio.org/2025/">PyOhio 2025</a></li>
<li><a href="https://www.meetup.com/indypy/events/">IndyPy Events</a></li>
</ul>
<p>AI Coding Tools:</p>
<ul>
<li><a href="https://www.youtube.com/watch?v=Ix68u1MM3FY&t=1298s">Battle of the Bots - Developer Tools Showdown - YouTube</a></li>
<li><a href="https://aider.chat/">Aider - AI Pair Programming in Your Terminal</a></li>
<li><a href="https://block.github.io/goose/">codename goose</a></li>
<li><a href="https://ollama.com/blog/continue-code-assistant">An entirely open-source AI code assistant inside your editor - Ollama Blog</a></li>
<li><a href="https://mistral.ai/news/devstral">Devstral - Mistral AI</a></li>
<li><a href="https://coralogix.com/guides/llm-observability-tools/">10 LLM Observability Tools to Know in 2025 - Coralogix</a></li>
<li><a href="https://simonwillison.net/2025/May/31/snitchbench-with-llm/">How often do LLMs snitch? Recreating Theo’s SnitchBench with LLM</a></li>
<li><a href="https://simonwillison.net/2025/Jun/16/the-lethal-trifecta/">The lethal trifecta for AI agents: private data, untrusted content, and external communication</a></li>
<li><a href="https://github.com/RobertFischer/vllm-proxy">vllm-proxy: Proxy for vLLM enabling multi-model operation, cache-aware routing, and load balancing.</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/cicd-github-actions/">Python Continuous Integration and Deployment Using GitHub Actions</a></li>
<li><a href="https://realpython.com/courses/first-steps-langchain/">First Steps With LangChain</a></li>
<li><a href="https://realpython.com/courses/managing-dependencies-with-poetry/">Managing Dependencies With Python Poetry</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>