mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
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 <noreply@anthropic.com>
This commit is contained in:
1 parent
84aa2146a3
commit
f5e610cabe
3 files changed
+63
-48
No files matched your search
@@ -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-<commit>
|
||||
csiImage:
|
||||
tag: sha-<commit>
|
||||
|
||||
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`,
|
||||
|
||||
@@ -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-<commit>
|
||||
csiImage:
|
||||
tag: sha-<commit>
|
||||
|
||||
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
|
||||
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user