SeaweedFS Service Reference

Parameters

Common parameters

NameDescriptionTypeValue
hostThe hostname used to access SeaweedFS externally (defaults to ‘s3’ subdomain for the tenant host).string""
topologyThe topology of the SeaweedFS cluster.stringSimple
replicationFactorReplication factor: number of replicas for each volume in the SeaweedFS cluster.int2

SeaweedFS Components Configuration

NameDescriptionTypeValue
dbDatabase configuration.object{}
db.replicasNumber of database replicas.int2
db.sizePersistent Volume size.quantity10Gi
db.storageClassStorageClass used to store the data.string""
db.resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
db.resources.cpuNumber of CPU cores allocated.quantity""
db.resources.memoryAmount of memory allocated.quantity""
db.resourcesPresetDefault sizing preset used when resources is omitted.stringt1.small
masterMaster service configuration.object{}
master.replicasNumber of master replicas.int3
master.resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
master.resources.cpuNumber of CPU cores allocated.quantity""
master.resources.memoryAmount of memory allocated.quantity""
master.resourcesPresetDefault sizing preset used when resources is omitted.stringt1.small
master.volumeSizeLimitMBSize in MB at which a volume stops taking writes, and the divisor that sets how many buckets a volume server can serve. Lower it to fit more buckets on the same disk, at the cost of more volume files for the same stored data; on a large volume it is worth raising instead. Changing it on an instance that already holds data costs something either way: lowering it stops writes to every bucket whose volumes all reach the new value until that bucket can grow, and raising it takes the room new buckets grow into, so run the check in docs/operations/seaweedfs-lowering-the-volume-size-limit.md first. Must be between 1 and 30000. A value close to or above volume.size leaves each volume server a single slot rather than failing, since the server floors its slot count at one.int400
filerFiler service configuration.object{}
filer.replicasNumber of filer replicas.int2
filer.resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
filer.resources.cpuNumber of CPU cores allocated.quantity""
filer.resources.memoryAmount of memory allocated.quantity""
filer.resourcesPresetDefault sizing preset used when resources is omitted.stringt1.small
filer.grpcHostThe hostname used to expose or access the filer service externally.string""
filer.grpcPortThe port used to access the filer service externally.int443
filer.whitelistA list of IP addresses or CIDR ranges that are allowed to access the filer service.[]string[]
volumeVolume service configuration.object{}
volume.replicasNumber of volume replicas.int2
volume.sizePersistent Volume size.quantity10Gi
volume.storageClassStorageClass used to store the data.string""
volume.diskTypeSeaweedFS disk type tag for the default volume servers (e.g., “hdd”, “ssd”).string""
volume.resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
volume.resources.cpuNumber of CPU cores allocated.quantity""
volume.resources.memoryAmount of memory allocated.quantity""
volume.resourcesPresetDefault sizing preset used when resources is omitted.stringt1.small
volume.zonesA map of zones for MultiZone topology. Each zone can have its own number of replicas and size.map[string]object{}
volume.zones[name].replicasNumber of replicas in the zone.int0
volume.zones[name].sizeZone storage size.quantity""
volume.zones[name].dataCenterSeaweedFS data center name for this zone. Defaults to the zone name.string""
volume.zones[name].nodeSelectorYAML nodeSelector for this zone (default: topology.kubernetes.io/zone: ).string""
volume.zones[name].storageClassStorageClass used to store zone data. Defaults to volume.storageClass.string""
volume.zones[name].poolsA map of storage pools for this zone. Each pool creates a separate Volume StatefulSet per zone.map[string]object{}
volume.zones[name].pools[name].diskTypeSeaweedFS disk type tag (e.g., “ssd”, “hdd”, “nvme”).string""
volume.zones[name].pools[name].replicasNumber of volume replicas. Defaults to volume.replicas (Simple) or zone.replicas/volume.replicas (MultiZone).int0
volume.zones[name].pools[name].sizePersistent Volume size. Defaults to volume.size (Simple) or zone.size/volume.size (MultiZone).quantity""
volume.zones[name].pools[name].storageClassKubernetes StorageClass for the pool. Defaults to volume.storageClass.string""
volume.zones[name].pools[name].resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
volume.zones[name].pools[name].resources.cpuNumber of CPU cores allocated.quantity""
volume.zones[name].pools[name].resources.memoryAmount of memory allocated.quantity""
volume.zones[name].pools[name].resourcesPresetDefault sizing preset used when resources is omitted. Defaults to volume.resourcesPreset.string{}
volume.poolsA map of storage pools. Each pool creates a separate Volume StatefulSet with its own disk type.map[string]object{}
volume.pools[name].diskTypeSeaweedFS disk type tag (e.g., “ssd”, “hdd”, “nvme”).string""
volume.pools[name].replicasNumber of volume replicas. Defaults to volume.replicas (Simple) or zone.replicas/volume.replicas (MultiZone).int0
volume.pools[name].sizePersistent Volume size. Defaults to volume.size (Simple) or zone.size/volume.size (MultiZone).quantity""
volume.pools[name].storageClassKubernetes StorageClass for the pool. Defaults to volume.storageClass.string""
volume.pools[name].resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
volume.pools[name].resources.cpuNumber of CPU cores allocated.quantity""
volume.pools[name].resources.memoryAmount of memory allocated.quantity""
volume.pools[name].resourcesPresetDefault sizing preset used when resources is omitted. Defaults to volume.resourcesPreset.string{}
s3S3 service configuration.object{}
s3.replicasNumber of S3 replicas.int2
s3.resourcesExplicit CPU and memory configuration. When omitted, the preset defined in resourcesPreset is applied.object{}
s3.resources.cpuNumber of CPU cores allocated.quantity""
s3.resources.memoryAmount of memory allocated.quantity""
s3.resourcesPresetDefault sizing preset used when resources is omitted.stringt1.small
lifecycleS3 bucket lifecycle configuration.object{}
lifecycle.enabledRun the SeaweedFS admin server and a worker that applies bucket lifecycle rules, once a day. When disabled, rules are still accepted and stored, but not applied. Ignored with the Client topology, whose rules are enforced by the instance it connects to. Rules stored before enabling are applied on the first pass, minutes after the switch. While on, in a bucket without versioning enabled, an object overwritten between the daily listing and its expiry delete can be deleted although it is new.boolfalse
lifecycle.storageClassStorageClass of the admin server’s 1Gi job-state volume. Empty uses the cluster default; volume.storageClass is not used, because in MultiZone it can be local to one zone. Prefer a replicated class: on a node-local one, losing the node stops lifecycle enforcement. Set it before enabling lifecycle: the class is part of the admin StatefulSet’s volume claim template, which cannot change, so changing it while lifecycle is on makes every upgrade of the instance fail until it is reverted. To move the volume, disable lifecycle, delete the admin-data-seaweedfs-admin-0 PVC of the instance, change the class and enable lifecycle again.string""
cosiBucket provisioning configuration.object{}
cosi.orphanIdentitiesWhat installs and upgrades do with S3 identities left behind by deleted BucketAccesses: delete removes them, report only lists them in an Event, auto reports when filer.grpcHost is set (other clusters may use this filer) and removes them otherwise. Set report if the filer is reachable from other clusters some other way. Ignored with the Client topology, whose identities live on the filer of the instance it connects to.stringauto