Configure CP S3 Storage Mount¶
The huddo-boards-cp chart deploys a SeaweedFS S3 service (huddo-boards-cp-s3) for file storage. This page prepares the NFS mount referenced by s3.persistence.nfs in your values file.
Warning
s3.persistence is required. Without it SeaweedFS has no durable storage and data will be lost on pod restart. Use either the NFS mount below or s3.persistence.storageClassName for dynamic provisioning.
Note
Upgrading an existing installation that uses MinIO? Follow the SeaweedFS migration guide instead — it copies your data across before the cutover. The legacy MinIO mount instructions remain available.
Deploy instructions¶
-
Create the folder on the
nfs.serversudo mkdir /pv-connections/huddo-boards-s3 sudo chown 1000:1000 /pv-connections/huddo-boards-s3 sudo chmod 755 /pv-connections/huddo-boards-s3Note
As of chart
2.3.5the SeaweedFS pod runs as user1000(the same as the MinIO pods), so the directory must be writable by uid1000. The chart also chowns it for you on start, so thechownabove is belt-and-braces — but it is required if you sets3.persistence.fixOwnership: false(see the chart history).On charts
2.1.0–2.3.4SeaweedFS ran asrootand required ano_root_squashexport. -
Ensure each Node in your Kubernetes cluster can mount this location.
Please modify the file
/etc/exportson your NFS Server to include this line/pv-connections/huddo-boards-s3 <IP_RANGE_OF_YOUR_SERVERS>/<SUBNET_MASK>(rw)For example:
/pv-connections/huddo-boards-s3 192.168.0.0/255.255.0.0(rw) -
Apply new NFS storage to exports
exportfs -ra -
Reference the mount in your values file
s3: persistence: nfs: server: <nfs-server-ip> path: /pv-connections/huddo-boards-s3 # Optional (chart >= 2.3.5) — extra NFS mount options, e.g.: # mountOptions: # - sec=sys