- Delete the stale roadmap and eight wiki planning pages (git history keeps them); move the only unique content (Phase 166-170 write-path experiment results) into docs/releases/nvme-tcp-supported-lab.md. - Simplify the remaining user docs; duplicated non-claim lists link to docs/kubernetes-status.md; lab host names and local paths are removed. - Split docs/design/block-design.md into core, agent-workspace-design.md and kubernetes-block-design.md; add four SVG diagrams of the on-disk and remote structures and new mermaid diagrams. - mkdocs.yml nav and README links follow the new layout; the two gate scripts drop the one check each that read a deleted file. Docs only; no product code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.4 KiB
Kubernetes App Demo
Use this when: you present Seaweed Block on Kubernetes with local images and want viewers to see an ordinary app pod write a PVC and a replacement pod read it back. For the supported install path, use the Kubernetes quickstart.
This demo shows seaweed-block from the application's point of view.
The app is a normal Kubernetes pod using a normal PVC. The storage stack is the
seaweed-block alpha service underneath it.
app pod image: busybox:1.36
storage images: sw-block:local, sw-block-csi:local
Kubernetes object: PersistentVolumeClaim
storage path: PVC -> CSI -> iSCSI -> blockvolume -> walstore
The demo does two app runs against the same PVC:
- writer pod writes
/data/demo.binand/data/demo.sha256; - writer pod is deleted while the PVC remains;
- reader pod mounts the same PVC and verifies the checksum.
This is easier to explain than the automated smoke because viewers can see that ordinary app pods are using the volume.
Prerequisites
Same as the README quick start:
- Docker,
kubectl,- a running Kubernetes cluster such as k3s,
iscsi_tcploadable on the node,KUBECONFIGset for the cluster, or a default k3s config at/etc/rancher/k3s/k3s.yaml.
Build and import local images first:
SW_BLOCK_IMPORT_K3S=1 \
SW_BLOCK_ARTIFACT_DIR=/tmp/sw-block-alpha-build \
bash scripts/build-alpha-images.sh "$PWD"
The build artifact directory records image IDs and component --version
output, which is the useful evidence when a demo host might have stale k3s
containerd images.
For an existing cluster that pulls images from a registry:
export SW_BLOCK_IMAGE=registry.example.com/storage/sw-block:alpha
export SW_BLOCK_CSI_IMAGE=registry.example.com/storage/sw-block-csi:alpha
bash scripts/build-alpha-images.sh "$PWD"
docker push "$SW_BLOCK_IMAGE"
docker push "$SW_BLOCK_CSI_IMAGE"
Run
bash scripts/run-k8s-demo.sh "$PWD"
Expected final line:
[app-demo] PASS: app pod wrote data, replacement app pod read it back through the same PVC, cleanup complete
Useful proof points:
cat /tmp/sw-block-app-demo-*/writer.log
cat /tmp/sw-block-app-demo-*/reader.log
sudo iscsiadm -m session || true
kubectl get all -A | grep sw-block || true
The writer log should show:
/data/demo.bin: OK
The reader log should also show:
/data/demo.bin: OK
The second check proves the replacement app pod read data written by the first app pod through the same PVC.
Demo Talk Track
Use this short explanation:
This is a normal Kubernetes app pod. It asks for a PVC. The CSI controller asks blockmaster to create a volume. Blockmaster launches a blockvolume workload. The CSI node logs into that blockvolume through iSCSI and mounts it for the pod. The writer pod writes data, exits, and is deleted. A reader pod mounts the same PVC and verifies the file. The current alpha harness still performs the generated blockvolume cleanup; a controller will own that in the production path.
Non-Claims
This demo does not claim:
- multi-node production readiness,
- failover while the app remains mounted,
- durable state across blockvolume pod restart (restart persistence with a hostPath state root is a separate gated path, see Kubernetes status),
- real operator reconciliation,
- performance or soak readiness.