Lessons
51 lessons on how an AI factory and a Kubernetes cluster work, from packets on the wire up to the GPU and the app
51 lessons
BNK
7 lessons
- One name, three factories
How GSLB sends a caller to one site
- A request through the factory
From a chat message to a GPU and back
- Inside the LLM gateway
An agent's calls, byte by byte
- Guardrails: in the path or beside it
A policy iRule in TMM, or a gateway every byte crosses
- What a guardrail reads
Card numbers, planted instructions and an answer that is still streaming
- Nothing wrong with the words
An agent does harm with tool calls that every text check passes
- Two tenants, one factory
What keeps them apart, layer by layer
Inference
3 lessons
- Prefill and decode
What a GPU does with a prompt, and what limits it
- Turn ten at the price of turn two
Prefix caching, and how a load balancer throws it away
- One request, five prices
Where a cache hit lives decides what it costs
Models
4 lessons
- Which token comes next
One forward pass through a transformer, stop by stop
- From random weights to a model
One training step, and what it costs to take millions of them
- Teaching a model one more thing
Fine-tuning, and why LoRA trains 0.06% of the weights
- A model bigger than one GPU
Three ways to split the work, and what each asks of the link
GPU
7 lessons
- Three numbers on a GPU card
Compute, memory size and the road between them
- A computer in the network slot
The motherboard of a GPU server, and what a DPU changes on it
- Behind the Pod IP
How a CPU asks a GPU to do anything
- Measure, don't assume
Same hardware, same commands, two thirds of the speed
- Seeing without slowing down
Where you watch from decides what it costs
- When the GPU stops asking the CPU
A GPU thread rings its own doorbell
- The network is part of the computer
RDMA, RoCEv2 and GPUDirect between two GPUs
Network
9 lessons
- A request finds your Pod
Load balancer to container
- Pod to Pod, same node
veth pairs and the bridge
- Pod to Pod, across nodes
The VXLAN overlay
- Pod calls a Service
ClusterIP and kube-proxy
- DNS in the cluster
CoreDNS and ndots:5
- Ingress and Gateway API
Host and path routing
- NetworkPolicy
A packet gets dropped
- Cilium and eBPF
Identity instead of IPs
- Service mesh with Istio
A proxy beside every app
Node
5 lessons
- Starting a container
Namespaces and cgroups
- Pulling an image
Manifests, layers, cache
- Probes and restarts
CrashLoopBackOff, explained
- OOMKilled
Memory limits in practice
- Mounting a volume
CSI attach and mount
Control plane
7 lessons
- Deploy an app
kubectl apply → Pod Running
- List and watch
How components stay in sync
- The scheduler
Filter, score, bind
- One GPU pool, many owners
Quota first, priority only for what is left over
- Reconcile loops
Desired vs. actual state
- A node goes dark
Heartbeats and eviction
- Kyverno policies
Who checks your YAML
App
6 lessons
- Rolling update
New version, zero downtime
- Graceful shutdown
SIGTERM and the endpoint race
- Autoscaling
HPA and metrics-server
- ConfigMaps and Secrets
Getting config into a Pod
- StatefulSet with storage
Stable names, ordered starts
- Jobs and CronJobs
Run to completion
Security
2 lessons
- RBAC and ServiceAccounts
Who can do what
- Runtime alerts with Falco
Watching the kernel
Operations
1 lesson
- Keeping GPUs busy and healthy
Utilization, memory, ECC and the two Xid codes worth an alert