Life of a Kubernetes API Request
summary
Walks a create request from kubectl -> client-go -> API server -> etcd, showing the real call chain: Cobra-built kubectl commands, the Builder/Factory/Helper in client-go, REST request construction, and the negotiated serializer that handles JSON and proto plus conversion to the server internal version. Explains server handler stack (auth, CORS, go-restful routing), defaulting and generated conversion functions, and storage backends (etcd v2/v3); notes etcd3 + proto storage is the target and that heavy testing is required for alternate stores.
AI-written summary · about
chapters (15)
- 0:00Introduction to Kubernetes
- 3:08Inside the kubectl binary
- 5:23Factories, builders, helpers
- 7:03Kubernetes client library
- 8:59Serialization and conversion
- 11:22Encoding and interfaces
- 14:26API version conversion
- 17:14API server request processing
- 19:25Handler stack and setup
- 22:22Registering resource handlers
- 24:01Runtime handler execution
- 25:53Storage strategy implementation
- 26:50Storage interface and etcd
- 29:13Master object and assembly
- 31:46Q&A and future plans
related talks
31mThe Life (or Death) of a Kubernetes API Request, 2025 Edition
36mSIG API Machinery Deep Dive
20mUsing Kubernetes API Effectively with Golang
05mKubernetes API Explained
08mKubernetes: The API of Everything
38mSIG CLI Deep Dive
25mFrom Tweet to BadIdea: Creating an Embeddable Kubernetes Style API Server
34mExtending the Kubernetes API: What the Docs Don't Tell You
