All fixtures · From the Format page · format/65-3d-kubernetes-cluster-to-container.dh.md
Source
---
title: "3D: Kubernetes, cluster to container"
description: A fixture made from the Format page section of the same name.
---
## 3D: Kubernetes, cluster to container
Boxes inside boxes: a cluster box holds node boxes, a node holds pod boxes, a pod holds its containers. This is a tree that only works in 3D, so the fence says `3d only` and the stage has no 2D button. Every level starts `closed=hidden`: nothing inside it is drawn until `zoom into` opens it, so each step talks about one level and the smaller boxes stay out of the way. Zooms nest (`zoom into n1`, then `zoom into p2`), and each zoom pulls the box it opens up out of the one that holds it (`lift n1`, then `lift p2`: lifts nest too). `lift k3` pulls redis up out of its pod to focus on it, `put back` sets it down again, and `zoom out` and `zoom out all` close the levels one at a time or all at once, putting each box back where it was. While a step plays, only the labels of what it touches show: here, redis alone as the camera flies to it.
```animation 3d only
group c "cluster"
group n1 "node 1" in c closed=hidden
group n2 "node 2" in c closed=hidden
group p1 "web-1" in n1 closed=hidden
group p2 "cache-1" in n1 closed=hidden
group p3 "web-2" in n2 closed=hidden
box k1 "nginx" in p1
box k2 "log agent" in p1
box k3 "redis" in p2
box k4 "nginx" in p3
box k5 "log agent" in p3
note n1: a machine; the kubelet on it runs the pods it is given
note p2: the unit the scheduler places; its containers share one network address
@step One cluster box holds two node boxes. What runs on the nodes is hidden: at this level we talk about machines.
camera all
@step Zoom into node 1: it rises out of the cluster, and its pod boxes appear, web-1 and cache-1. Node 2 fades.
zoom into n1
lift n1
camera n1
@step Zoom into cache-1: it rises out of node 1, its box opens, and its one container shows, redis.
zoom into p2
lift p2
camera p2
@step Pull redis up out of its pod to focus on it. While the camera flies in, only its label shows.
lift k3
camera k3
@step The redis container crashes.
set k3 down=yes
highlight k3 tone=hot
@step The kubelet on node 1 starts it again, back in the same pod. The pod and the node stay as they were.
put back k3
remove k3
add box k3b "redis" in p2 tone=good
camera p2
@step Zoom out to node 1: cache-1 settles back into the node and closes again; its container hides.
zoom out
@step Zoom out all the way: node 1 settles back into the cluster. The smaller boxes hide, and we are back to talking about machines.
zoom out all
```
LLM view
---
title: "3D: Kubernetes, cluster to container"
description: A fixture made from the Format page section of the same name.
source: format/65-3d-kubernetes-cluster-to-container.dh.md
---
<!-- Made by dh llm from the source; nobody edits this file. -->
## 3D: Kubernetes, cluster to container
Boxes inside boxes: a cluster box holds node boxes, a node holds pod boxes, a pod holds its containers. This is a tree that only works in 3D, so the fence says `3d only` and the stage has no 2D button. Every level starts `closed=hidden`: nothing inside it is drawn until `zoom into` opens it, so each step talks about one level and the smaller boxes stay out of the way. Zooms nest (`zoom into n1`, then `zoom into p2`), and each zoom pulls the box it opens up out of the one that holds it (`lift n1`, then `lift p2`: lifts nest too). `lift k3` pulls redis up out of its pod to focus on it, `put back` sets it down again, and `zoom out` and `zoom out all` close the levels one at a time or all at once, putting each box back where it was. While a step plays, only the labels of what it touches show: here, redis alone as the camera flies to it.
Animation, 8 steps, 3D only. Starts with: group c "cluster" [group n1 "node 1" closed, inside hidden [group p1 "web-1" closed, inside hidden [box k1 "nginx", box k2 "log agent"], group p2 "cache-1" closed, inside hidden [box k3 "redis"]], group n2 "node 2" closed, inside hidden [group p3 "web-2" closed, inside hidden [box k4 "nginx", box k5 "log agent"]]].
1. One cluster box holds two node boxes. What runs on the nodes is hidden: at this level we talk about machines.
2. Zoom into node 1: it rises out of the cluster, and its pod boxes appear, web-1 and cache-1. Node 2 fades.
zoom into n1: its inside appears, the rest fades
lift n1 out of c
3. Zoom into cache-1: it rises out of node 1, its box opens, and its one container shows, redis.
zoom into p2: its inside appears, the rest fades
lift p2 out of n1
4. Pull redis up out of its pod to focus on it. While the camera flies in, only its label shows.
lift k3 out of p2
5. The redis container crashes.
6. The kubelet on node 1 starts it again, back in the same pod. The pod and the node stay as they were.
put back k3
7. Zoom out to node 1: cache-1 settles back into the node and closes again; its container hides.
zoom out of p2
p2 settle back into place
8. Zoom out all the way: node 1 settles back into the cluster. The smaller boxes hide, and we are back to talking about machines.
zoom out all the way
n1 settle back into place3D: Kubernetes, cluster to container
Boxes inside boxes: a cluster box holds node boxes, a node holds pod boxes, a pod holds its containers. This is a tree that only works in 3D, so the fence says 3d only and the stage has no 2D button. Every level starts closed=hidden: nothing inside it is drawn until zoom into opens it, so each step talks about one level and the smaller boxes stay out of the way. Zooms nest (zoom into n1, then zoom into p2), and each zoom pulls the box it opens up out of the one that holds it (lift n1, then lift p2: lifts nest too). lift k3 pulls redis up out of its pod to focus on it, put back sets it down again, and zoom out and zoom out all close the levels one at a time or all at once, putting each box back where it was. While a step plays, only the labels of what it touches show: here, redis alone as the camera flies to it.
Animation, 8 steps, 3D only. Starts with: group c "cluster" [group n1 "node 1" closed, inside hidden [group p1 "web-1" closed, inside hidden [box k1 "nginx", box k2 "log agent"], group p2 "cache-1" closed, inside hidden [box k3 "redis"]], group n2 "node 2" closed, inside hidden [group p3 "web-2" closed, inside hidden [box k4 "nginx", box k5 "log agent"]]]. 1. One cluster box holds two node boxes. What runs on the nodes is hidden: at this level we talk about machines. 2. Zoom into node 1: it rises out of the cluster, and its pod boxes appear, web-1 and cache-1. Node 2 fades. zoom into n1: its inside appears, the rest fades lift n1 out of c 3. Zoom into cache-1: it rises out of node 1, its box opens, and its one container shows, redis. zoom into p2: its inside appears, the rest fades lift p2 out of n1 4. Pull redis up out of its pod to focus on it. While the camera flies in, only its label shows. lift k3 out of p2 5. The redis container crashes. 6. The kubelet on node 1 starts it again, back in the same pod. The pod and the node stay as they were. put back k3 7. Zoom out to node 1: cache-1 settles back into the node and closes again; its container hides. zoom out of p2 p2 settle back into place 8. Zoom out all the way: node 1 settles back into the cluster. The smaller boxes hide, and we are back to talking about machines. zoom out all the way n1 settle back into place
This scene is drawn in 3D only. Without 3D (WebGL), here are its steps:
- One cluster box holds two node boxes. What runs on the nodes is hidden: at this level we talk about machines.
- Zoom into node 1: it rises out of the cluster, and its pod boxes appear, web-1 and cache-1. Node 2 fades.
- Zoom into cache-1: it rises out of node 1, its box opens, and its one container shows, redis.
- Pull redis up out of its pod to focus on it. While the camera flies in, only its label shows.
- The redis container crashes.
- The kubelet on node 1 starts it again, back in the same pod. The pod and the node stay as they were.
- Zoom out to node 1: cache-1 settles back into the node and closes again; its container hides.
- Zoom out all the way: node 1 settles back into the cluster. The smaller boxes hide, and we are back to talking about machines.