Seaweed Block (Alpha)
Seaweed Block is an experimental Kubernetes block storage service built around:
- normal Kubernetes PVC workflow,
- a CSI driver,
- Seaweed block components,
- read-only operations evidence.
The current alpha is focused on one user-visible loop:
install on Kubernetes
-> create a PVC-backed block volume
-> mount it in an app pod
-> write/read data
-> inspect status and support evidence
-> clean up
This is an alpha product path for supported lab clusters, not production.
Feature & Status
| Feature | Status | Feature | Status |
|---|---|---|---|
| Kubernetes PVC provisioning | Available | Helm install path | Available |
| First PVC writer/reader verification | Available | Read-only report/dashboard | Available |
| Support-bundle replay | Available | Negative-first status reasons | Available |
| Multi-volume RF=3 lab path | Gated | CSI reattach recovery | Gated |
| iSCSI ALUA/dm-multipath mounted failover | Gated | Restart persistence with hostPath | Gated |
| Actionable read-only CRD status + Events | Available | Bounded SwBlockVolume finalizer lifecycle | Beta candidate |
| Returned-replica ACK eligibility executor | Beta candidate | Returned-replica rebuild/failback | Planned |
| Backup/snapshot/restore | Planned | NVMe ANA parity | Planned |
| Production SLO/performance claims | Not claimed | Hosted production UI | Not claimed |
What You Can Do Today
- Install Seaweed Block through Helm on a supported Kubernetes/k3s lab.
- Create and mount PVC-backed block volumes through normal Kubernetes PVCs.
- Verify writer/reader persistence with ordinary app pods.
- Run multiple RF=3 volumes in the gated lab path.
- Validate gated recovery paths:
- CSI reattach with pod recreate,
- iSCSI ALUA + dm-multipath transparent mounted failover on the proven Stage-2 path,
- interleaved multi-volume failover isolation.
- Inspect cluster, volume, replica, primary, frontend, timeline, and reason evidence through read-only CLI/report/dashboard surfaces.
- Publish the same read-only status into Kubernetes-native
SwBlockCluster/SwBlockVolume.statusand Events on the gated operator-status path. - Inspect node readiness, support evidence refs, cleanup-required status, and safe read-only/scripted next-step hints through that same status model.
- Use the beta-candidate lifecycle-owner path to protect
SwBlockVolumeCRs with a Seaweed Block finalizer and release it only after clean externally supplied cleanup evidence. - Inspect install drift status for current versus desired chart/app/image identity. This is visibility only, not upgrade execution.
- In the gated returned-replica path, inspect a bounded authority-executor
result that records ACK eligibility on
SwBlockReplicaEligibility.statusafter live evidence proves the old primary remains fenced, the current primary is unchanged, and the required durable frontier is covered. - Replay support bundles offline.
These are narrow alpha claims tied to documented gates. See release notes for exact run evidence.
What You Should Not Expect Yet
- Production readiness or production SLOs.
- A production-grade operator or broad mutating admin workflow. The current
lifecycle-owner owns only the Seaweed Block
SwBlockVolumeprotection finalizer. - Automatic cleanup execution, host repair, or PVC/PV/workload deletion. Delete-safety uses externally supplied cleanup evidence.
- Backup, snapshot, or restore.
- Returned-replica rebuild traffic, frontend publication, or automatic failback. The beta-candidate executor records only ACK eligibility on its narrow target CRD status.
- Transparent Kubernetes node-loss failover without pod recreate.
- NVMe ANA parity for the transparent failover path.
- Broad distro/kernel/initiator compatibility.
- Upgrade or rollback execution. The status layer can report install drift, but it does not run Helm or kubectl mutations.
Five-Minute Quick Start
From the repository root:
go build -o sw-block ./cmd/sw-block
export PATH="$PWD:$PATH"
sw-block ops generate-helm-values \
--out values.day1.yaml \
--image ghcr.io/seaweedfs/seaweed-block:sha-dc2972d0059b \
--csi-image ghcr.io/seaweedfs/seaweed-block-csi:sha-dc2972d0059b
helm install sw-block charts/seaweed-block \
--namespace kube-system \
--create-namespace \
-f values.day1.yaml \
--wait \
--timeout 10m
SW_BLOCK_INSTALL_MODE=helm \
SW_BLOCK_HELM_RELEASE=sw-block \
SW_BLOCK_HELM_NAMESPACE=kube-system \
SW_BLOCK_HELM_VALUES_FILE=values.day1.yaml \
bash scripts/run-basic-app-example.sh "$PWD"
Expected summary in the latest /tmp/sw-block-basic-app-*/first-volume-summary.txt:
first_volume_status=ok
writer_verified=true
reader_verified=true
inventory_status=ok
status_report=status/report/index.html
cleanup_status=ok
Current validated published quickstart image tag: sha-dc2972d0059b.
This tag covers the v0.4 read-only/status foundation path. The v0.5
bounded lifecycle-owner path requires matching sw-block and sw-block-csi
images published from the Phase 44 release commit; do not use the older
quickstart tag to validate lifecycle-owner behavior.
The v0.6 returned-replica ACK eligibility executor path likewise requires
matching images published from the Phase 54 release commit and must be validated
with the release smoke before it is marked shipped.
Mutable :alpha is a smoke/demo tag only; it can drift from the source tree.
Operations
Port-forward blockmaster when reading live cluster state:
kubectl -n kube-system port-forward deploy/sw-blockmaster 9333:9333
Common read-only commands:
| Command | Use |
|---|---|
sw-block ops cluster --master-api 127.0.0.1:9333 -o json |
Cluster snapshot. |
sw-block ops volumes --master-api 127.0.0.1:9333 |
List volumes, status, primary, node, frontend. |
sw-block ops describe volume <id> --namespace default --master 127.0.0.1:9333 |
Describe one volume. |
sw-block ops timeline volume --from-bundle <dir> <id> -o jsonl |
Read a saved event timeline. |
sw-block ops explain volume --from-bundle <dir> <id> |
Explain ready, blocked, stale, or recovering state. |
sw-block ops report --master-api 127.0.0.1:9333 --out <dir> |
Generate static report artifacts. |
sw-block ops dashboard --master-api 127.0.0.1:9333 --listen 127.0.0.1:9334 |
Serve local read-only dashboard. |
sw-block ops inventory --namespace default --master 127.0.0.1:9333 --out <dir> |
Collect replica-level inventory. |
Reports and dashboard expose operator-snapshot.json, a read-only status
projection. The gated operator-status controller can publish that model into
Kubernetes CRD .status and Events, including node readiness, cleanup/delete
safety, and install-drift visibility. It has no mutating admin actions.
Support-bundle replay:
bash scripts/collect-helm-support-bundle.sh "$PWD"
sw-block ops report --from-bundle <bundle-or-artifact-dir> --out /tmp/sw-block-report
sw-block ops explain volume <volume-id> --from-bundle <bundle-or-artifact-dir>
sw-block ops dashboard --from-bundle <bundle-or-artifact-dir> --listen 127.0.0.1:9334
The status surface is negative-first. If evidence is missing or stale, the
system reports Ready=Unknown / EvidenceStale=True rather than claiming a
false ready state.
Cleanup
helm uninstall sw-block --namespace kube-system
bash scripts/uninstall-k8s-alpha.sh "$PWD"
bash scripts/verify-helm-cleanup.sh
The cleanup verifier checks Kubernetes resources, iSCSI sessions, iSCSI node
DB records, dm-multipath maps, dmsetup devices, product processes, and
hostPath residue.
Documentation
- Kubernetes quickstart - first install and PVC.
- User capabilities - detailed current behavior.
- Release notes - exact validated claims and evidence.
- Roadmap - public planning summary.
- Architecture, developer architecture, and runtime state machines - engineering references, not release-claim sources.
Development
Run release-relevant scoped tests:
go test ./cmd/sw-block ./core/ops ./core/csi ./core/launcher ./core/host/master -count=1
go test ./... is the full repository sweep and may include unrelated
in-progress packages outside the current release gate.
Script activation remains available for development/local-image fallback:
bash scripts/activate-k8s-alpha.sh "$PWD"
bash scripts/run-basic-app-example.sh "$PWD"
License
Apache-2.0