From f5e610cabeb01b7d84ef4aaa6cde7f1e1f6aba81 Mon Sep 17 00:00:00 2001 From: pingqiu Date: Mon, 16 Nov 2026 16:14:29 -0800 Subject: [PATCH] charts: move the blockNodes example to examples/values-3node.yaml with documentation addresses The chart README carried a full values example with lab node names and addresses, and values.yaml defaulted blockNodes to a lab host name. - charts/seaweed-block/examples/values-3node.yaml: the README's values example as a file, with nodes node-a/node-b/node-c and RFC 5737 documentation addresses (192.0.2.x internal, 198.51.100.x frontend). - README: links the example instead of inlining it; the NVMe/RDMA snippet uses the same placeholder node and addresses. - values.yaml: the default block node is the placeholder block-node-1 (internalIP stays 127.0.0.1) with a pointer to the example. Co-Authored-By: Claude Opus 5.5 --- seaweed-block/charts/seaweed-block/README.md | 57 ++++--------------- .../seaweed-block/examples/values-3node.yaml | 48 ++++++++++++++++ .../charts/seaweed-block/values.yaml | 6 +- 3 files changed, 63 insertions(+), 48 deletions(-) create mode 100644 seaweed-block/charts/seaweed-block/examples/values-3node.yaml diff --git a/seaweed-block/charts/seaweed-block/README.md b/seaweed-block/charts/seaweed-block/README.md index 526ce9ef5c..f626a42c60 100644 --- a/seaweed-block/charts/seaweed-block/README.md +++ b/seaweed-block/charts/seaweed-block/README.md @@ -34,49 +34,14 @@ plain `helm install sw-block charts/seaweed-block` as a release-gated install: it does not run preflight, does not discover the live Kubernetes node set, and can leave placement/launcher evidence incomplete on real labs. -Example `values.day1.yaml`: +A complete three-node example is in +[`examples/values-3node.yaml`](examples/values-3node.yaml): image tags, network +and compat settings, CHAP, the StorageClass replication factor, and three +`blockNodes` (`node-a`, `node-b`, `node-c`, with RFC 5737 documentation +addresses). Copy it and replace the node names and addresses with your own: -```yaml -image: - tag: sha- -csiImage: - tag: sha- - -network: - externalISCSI: true - externalNVMe: false - externalStatus: true - rejectLoopbackPublishTargets: true - -compat: - launcherDurableImplFlag: false - launcherReplicationAckFlag: false - launcherRejectLoopbackFlag: false - -chap: - enabled: true - username: swblock - secret: replace-with-a-real-secret - -storageClass: - replicationFactor: 1 - -blockNodes: - - name: m01 - kubernetesNode: m01 - internalIP: 192.168.1.181 - frontendIP: 10.0.0.181 - frontendNetworkClass: 100gbe_tcp - - name: m02 - kubernetesNode: m02 - internalIP: 192.168.1.184 - frontendIP: 10.0.0.184 - frontendNetworkClass: 100gbe_tcp - - name: tp01 - kubernetesNode: tp01 - internalIP: 192.168.1.188 - frontendIP: 10.0.0.188 - frontendNetworkClass: 100gbe_tcp +```bash +helm install sw-block charts/seaweed-block -f my-values.yaml ``` `blockNodes[*].kubernetesNode` must match a real Kubernetes node name. The @@ -96,10 +61,10 @@ network: externalNVMe: true frontendNetworkClass: 100gbe_roce blockNodes: - - name: m02 - kubernetesNode: m02 - internalIP: 192.168.1.184 - frontendIP: 10.0.0.3 + - name: node-b + kubernetesNode: node-b + internalIP: 192.0.2.12 + frontendIP: 198.51.100.12 ``` RDMA requires a non-loopback RoCE frontend address and host `nvme-rdma`, diff --git a/seaweed-block/charts/seaweed-block/examples/values-3node.yaml b/seaweed-block/charts/seaweed-block/examples/values-3node.yaml new file mode 100644 index 0000000000..c27fd63bf2 --- /dev/null +++ b/seaweed-block/charts/seaweed-block/examples/values-3node.yaml @@ -0,0 +1,48 @@ +# Example values for a three-node install (see ../README.md). +# +# Node names and addresses are placeholders. The addresses come from the +# RFC 5737 documentation ranges: 192.0.2.0/24 stands for the internal +# (management/control-plane) network and 198.51.100.0/24 for the frontend +# (data-plane) network. Replace them with your own Kubernetes node names and +# addresses; `sw-block ops generate-helm-values` derives them from the live +# cluster. +image: + tag: sha- +csiImage: + tag: sha- + +network: + externalISCSI: true + externalNVMe: false + externalStatus: true + rejectLoopbackPublishTargets: true + +compat: + launcherDurableImplFlag: false + launcherReplicationAckFlag: false + launcherRejectLoopbackFlag: false + +chap: + enabled: true + username: swblock + secret: replace-with-a-real-secret + +storageClass: + replicationFactor: 1 + +blockNodes: + - name: node-a + kubernetesNode: node-a + internalIP: 192.0.2.11 + frontendIP: 198.51.100.11 + frontendNetworkClass: 100gbe_tcp + - name: node-b + kubernetesNode: node-b + internalIP: 192.0.2.12 + frontendIP: 198.51.100.12 + frontendNetworkClass: 100gbe_tcp + - name: node-c + kubernetesNode: node-c + internalIP: 192.0.2.13 + frontendIP: 198.51.100.13 + frontendNetworkClass: 100gbe_tcp diff --git a/seaweed-block/charts/seaweed-block/values.yaml b/seaweed-block/charts/seaweed-block/values.yaml index 732f543302..2b99961d80 100644 --- a/seaweed-block/charts/seaweed-block/values.yaml +++ b/seaweed-block/charts/seaweed-block/values.yaml @@ -115,8 +115,10 @@ nvme: # `kubectl get nodes` so node names and InternalIPs are verified against the # live cluster. blockNodes: - - name: m02 - serverID: m02 + # Placeholder for a single-node render. Replace with your own node (name = + # Kubernetes node name); see examples/values-3node.yaml. + - name: block-node-1 + serverID: block-node-1 internalIP: 127.0.0.1 # Optional frontend/data-plane bind address. When set, cluster-spec data_addr # and frontend publish targets use this IP while ctrl_addr keeps internalIP.