s3d
by artur9010
s3d is a S3-compatible storage service backed by Sia, developed by the Sia Foundation.
About this chart
Unofficial Sia s3d Helm Chart
Helm chart for Sia s3d software.
Helm repository
helm repo add artur9010 https://charts.motyka.pro
helm install s3d artur9010/s3d
Or from the OCI registry:
helm install s3d oci://ghcr.io/artur9010/charts/s3d --version <version>
First installation
s3d keeps its app key, users, access keys and object metadata in a SQLite database in /data, so keep persistence.enabled: true (the default).
-
Create the Secret with the admin API password (or set
createSecret: trueandsecretContent.S3D_ADMIN_PASSWORD):kubectl create secret generic s3d --from-literal=S3D_ADMIN_PASSWORD="$(openssl rand -base64 32)" -
Install the chart with
setupMode: true. The pod then runssleep infinityinstead of s3d. -
Register s3d with the Sia indexer. It asks for the indexer URL (default
https://sia.storage) and your 12-word recovery phrase, or generates a new one if you leave it blank. Then it prints a URL where you approve the connection:kubectl exec -it s3d-0 -- s3d login -
Upgrade the release with
setupMode: false. s3d now starts. -
Create a user and an S3 access key. The key pair is generated when both flags are omitted, and the secret key is printed only once:
kubectl exec s3d-0 -- s3d users create <username> kubectl exec s3d-0 -- s3d keys create [--access-key <id> --secret-key <secret>] <username>
kubectl exec s3d-0 -- s3d status shows the upload pipeline, and s3d keys list / s3d users list show existing credentials.
Upgrading from 1.x to 2.0.0 (breaking)
Chart 2.0.0 moves from s3d bf33bf3 to s3d 0.2.1. That version cannot open a database created by bf33bf3, so you have to start with an empty /data volume and go through First installation again.
Value changes:
sia.keyPairsis removed. Create access keys withs3d users createands3d keys create.sia.indexerURLis removed. The indexer URL is set durings3d login.secretContent.S3D_RECOVERY_PHRASEand theS3D_RECOVERY_PHRASESecret key are no longer used. The phrase is entered durings3d login.- New: the Secret must contain
S3D_ADMIN_PASSWORD. - New:
setupMode,apiHTTPSAddress,adminAddress,sia.diskUsageLimit,sia.uploadThreads,sia.dataShards,sia.parityShards,service.s3.httpsPort. persistence.enablednow defaults totrue.apiAddressnow defaults to":8000"and is actually applied. Before, the image's-api.s3 :8000overrode it.nodeSelector,affinity,tolerationsandtopologySpreadConstraintsare now rendered on the pod spec. Before, they were wrongly placed on the container.
Old:
secretContent:
S3D_RECOVERY_PHRASE: "..."
sia:
indexerURL: "https://sia.storage"
keyPairs:
- accessKey: "..."
secretKey: "..."
New:
secretContent:
S3D_ADMIN_PASSWORD: "..."
sia:
diskUsageLimit: 6442450944
Looking for perfect server to run renterd? Check netcup
ARM servers are available from 7 eur per month. Check netcup for more info.
Use code 36nc17460389834 to get 5 EUR off.
Looking for more netcup coupons? Check netcup-coupons.com
Values
Open this page on artifacthub and click Values on sidebar.
Deploy s3d with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has s3d on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the charts3d is pinned at v2.0.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply