I'm looking for a way to follow Kubernetes events step by step, from API calls through networking and container startup. Is there a visual learning resource that doesn't require setting up a cluster?
Is there a visual way to learn what Kubernetes components do in order?
Answers
There's an open-source learning site built around animated cluster diagrams. It runs in the browser and has 25 lessons, so you can follow the sequences without setting up a cluster.
For example, there's a lesson tracing a Pod from kubectl apply to running, along with lessons on Services, rolling updates, probes, node failures, and other topics. You can pause an event to inspect its fields.
Reply to this answer
The Service and Pod networking lessons are a good fit if diagrams help things click. They cover how a request reaches a Pod through kube-proxy, iptables and endpoints, plus the difference between traffic on one node and traffic across nodes.
Reply to this answer
One thing to watch with any animated sequence: an example timeline isn't a timing guarantee. In the shutdown lesson, minSyncPeriod is the minimum gap between syncs, not a promise that rules will be updated within that time. Watch delivery and rule programming are separate parts of the sequence.
Likewise, a preStop sleep can give updates time to propagate, but it doesn't confirm that every node has converged. The lesson labels its timings as an example run rather than a universal schedule.
Reply to this answer
I like the event-by-event approach for seeing how the API server, scheduler and controllers fit together. A useful improvement would be showing those control plane components separately in the diagram, so it's clearer which one is responsible for each action.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Savo~7m:
Being able to pause and inspect the events sounds useful. Does it go into the network traffic too?
_Keno!48:
Yes. The networking lessons include packet headers and show VXLAN encapsulation for traffic across nodes.