A look at seaweedfs/seaweedfs-csi-driver: 342 stars on GitHub, written primarily in Go. SeaweedFS CSI Driver https://github.com/seaweedfs/seaweedfs
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Container storage interface is an industry standard that enables storage vendors to develop a plugin once and have it work across a number of container orchestration systems.
SeaweedFS is a simple and highly scalable distributed file system, to store and serve billions of files fast!
Deployment
Kubernetes (kubectl)
Kubernetes (helm)
Update (Safe rollout)
Testing
Static and dynamic provisioning
DataLocality
Node topology
License
Code of conduct
Deployment
Kubernetes (kubectl)
Prerequisites:
Already have a working Kubernetes cluster (includes kubectl)
Check the kubelet root directory ,Execute the following command
ps -ef | grep kubelet | grep root-dir
If the result returned from the previous check command is not empty, the root directory (eg:--root-dir=/data/k8s/kubelet/data) representing the kubelet is not the default value (/var/lib/kubelet), so you need to update the kubelet root-dir in the CSI driven deployment file and deploy:
sed 's+/var/lib/kubelet+/data/k8s/kubelet/data+g' deploy/kubernetes/seaweedfs-csi.yaml | kubectl apply -f -
If the result returned by the previous check command is null, you can directly deploy it without modifying the configuration:
The provided static manifest deploy/kubernetes/seaweedfs-csi.yaml does not include TLS configuration by default. To enable TLS, it is recommended to use Helm with tlsSecret configured. If you must use static manifests, you will need to manually patch the seaweedfs-mount and seaweedfs-node DaemonSets to include the necessary TLS environment variables and volume mounts.
Updating seaweed-csi-driver DaemonSet (DS) will break processeses who implement fuse mount:
newly created pods will not remount net device.
For safe update set node.updateStrategy.type: OnDelete for manual update. Steps:
delete DS pods on the node where there is no seaweedfs PV
cordon or taint node
evict or delete pods with seaweedfs PV
delete DS pod on node
uncordon or remove taint on node
repeat all steps on [all nodes]
Testing
Create a persistent volume claim for 5GiB with name seaweedfs-csi-pvc and storage class seaweedfs-storage. The requested size is applied as a quota to the SeaweedFS collection used by the mount.
For dynamically provisioned volumes, resources.requests.storage is enforced by
the SeaweedFS FUSE mount and reported by df. Once the mount observes that the
quota has been reached, further writes fail with ENOSPC. PVC expansion updates
the mount quota.
The quota is collection-based and enforced by each CSI-managed mount, rather
than stored as an authoritative server-side limit. By default, every dynamic
volume gets its own collection, so its quota is isolated. If multiple volumes
are configured to use the same collection, their usage is shared and they do
not have independent per-directory quotas. Writes through another SeaweedFS
client that does not use the quota-configured mount are not restricted by this
CSI quota.
Because enforcement is mount-side, concurrent writers on different mounts can
briefly exceed the configured capacity before collection usage is refreshed.
For statically provisioned Kubernetes volumes, the driver reads
spec.capacity.storage from the PersistentVolume matching
spec.csi.volumeHandle. Other orchestrators receive volumeCapacity from
dynamic CreateVolume calls; static integrations can provide the same value in
bytes through the volume context.
Static and dynamic provisioning
By default, driver will create separate folder (/buckets/<volume-id>) and will use separate collection (volume-id)
for each request. Sometimes we need to use exact collection name or change replication options.
It can be done via creating separate storage class with options:
There is another use case when we need to access one folder from different pods with ro/rw access.
In this case we do not need additional StorageClass. We need to create PersistentVolume:
writebackCache=true enables FUSE writeback caching — data accepted before
the last flush is lost if the mount crashes. metadataFlushSeconds is
unrelated to that window: it periodically flushes file metadata to the
filer so long-running writes are not purged by volume.fsck; it does not
make cached data crash-safe.
dlm is mutually exclusive with writebackCache: weed mount runs
single-writer under writeback and silently disables the distributed lock
manager when both are requested, so the driver rejects the combination at
modify/create time. Set dlm on a separate class (without writeback) when
concurrent mounts need coordination.
Notes:
A class applied when the PVC is created reaches the first mount directly.
Changing the class of a bound PVC persists the accepted parameters on the
filer (under /.csi/vac/<volume>, outside /buckets); the volume picks
them up at its next stage (pod restart or reschedule).
The entry is removed with the volume on DeleteVolume.
On a filer with security enabled the store signs requests with the
jwt.filer_signing.key / jwt.filer_signing.read.key from the mounted
security.toml; the chart mounts it into both plugin containers. Set
vacStore.useTls so the tokens are not sent over plain HTTP.
The cluster's csi-resizer must support VolumeAttributesClass against the
k8s API version in use: released v1.14.0 still watches the
storage.k8s.io/v1beta1 API removed in Kubernetes 1.34 — use a build from
master (or a newer release once available).
DataLocality
DataLocality (inspired by Longhorn) allows instructing the storage-driver which volume-locations will be used or preferred in Pods to read & write.
It auto-sets mount-options based on the location a pod is scheduled in and the locality-option wanted.
The option can be set and overridden in Driver, StorageClass and PersistentVolume.
Sets the DataCenter-mount-option to the current Node-DataCenter, making writes local and allowing reads to occur wherever read data is stored. More Details
Requirements
Volume-Servers and the CSI-Driver-Node need to have the locality-option DataCenter correctly set (currently only this option is required).
This can be done manually (although quite tedious) or injected by the Container-Orchestration.
Automatic injection
Kubernetes
Unfortunately Kubernetes doesnt allow grabbing node-labels, which contain well-known region-labels, and setting them as environment-variables.
The DownwardAPI is very limited in that regard. (see #40610)
Therefore a workaround must be used. KubeMod can be used based on this comment. This of course requires KubeMod to be installed.
You can activate it in the Helm-Chart values.yaml -> node.injectTopologyInfoFromNodeLabel.enabled.
node.injectTopologyInfoFromNodeLabel.labels decides which labels are grabbed from the node.
It is recommended to use well-known labels to avoid confusion.
Node topology
When the driver only runs on some nodes, report the labels of those nodes as accessible topology. CSINode.spec.drivers[].topologyKeys then gets populated, provisioned PVs get a matching nodeAffinity and the scheduler stops placing pods with SeaweedFS PVCs on nodes without the driver.
Level
Location
Driver
Helm: values.yaml -> topologyKeys Or args --topologyKeys= on Container csi-seaweedfs-plugin (DaemonSet) and Container seaweedfs-csi-plugin (Deployment)
topologyKeys:
- topology.kubernetes.io/zone
Every key is looked up in the labels of the node the driver runs on; keys the node does not have are skipped. The CSI spec asks for a single key prefix across all topology keys, so prefer keys such as topology.kubernetes.io/zone and topology.kubernetes.io/region together. A StorageClass can then restrict where volumes are provisioned:
Does seaweedfs/seaweedfs-csi-driver have a project website?
No homepage URL was recorded for seaweedfs/seaweedfs-csi-driver in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
How many stars does seaweedfs/seaweedfs-csi-driver have?
seaweedfs/seaweedfs-csi-driver has 342 GitHub stars — refresh the page for the live number, or check github.com/seaweedfs/seaweedfs-csi-driver. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is seaweedfs/seaweedfs-csi-driver open source?
Yes — seaweedfs/seaweedfs-csi-driver ships under the Apache-2.0 license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/seaweedfs/seaweedfs-csi-driver.
What is seaweedfs/seaweedfs-csi-driver?
seaweedfs/seaweedfs-csi-driver (seaweedfs/seaweedfs-csi-driver) is a Go project on GitHub. From the project's own README: SeaweedFS CSI Driver https://github.com/seaweedfs/seaweedfs
Where do I read more about seaweedfs/seaweedfs-csi-driver?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/seaweedfs/seaweedfs-csi-driver is the definitive source.
Read full README in the tab above.
Still deciding about seaweedfs-csi-driver?
One click hands the question to an AI along with this page — see what it says about seaweedfs-csi-driver.