rustfs-tenant
by RustFS
A RustFS Tenant with optional S3 and Console ingress resources
About this chart
RustFS Tenant chart
Deploy a Tenant and optional S3 API / Tenant Console networking as one Helm release,
or render ordinary Kubernetes YAML for GitOps and kubectl apply -f.
Install the RustFS Operator and its CRD separately; this chart has no Operator dependency.
See the networking guide for plain YAML, TLS,
virtual-hosted S3, verification, and lifecycle details.
Resource ownership
| Owner | Resources |
|---|---|
| This chart / your GitOps application | Tenant, optional Ingress / HTTPRoute / BackendTLSPolicy |
| RustFS Operator | Tenant Services, StatefulSets and other existing managed resources |
| Platform administrator | GatewayClass, Gateway, controllers, DNS and external certificates |
| Secret management system / administrator | Credentials, referenced TLS Secrets and CA ConfigMaps |
The chart does not change the Tenant CRD, controller RBAC, or existing Operator chart.
ingress and httpRoute are chart values, not new Tenant.spec fields.
The Operator Console's console.ingress setting belongs to the Operator chart and
is independent of the Tenant Console configured here.
Install from this repository
- Install the Operator and CRD using the Operator guide.
- Create
rustfs-storageand arustfs-credentialsSecret in that namespace, containing UTF-8accesskeyandsecretkeyvalues (minimum 8 characters each). Use your secret manager; do not commit credentials in values files. - Copy values.yaml to
tenant-values.yaml. Set a tested image, storage class, pool layout and capacity for your environment. The default is a single-node, single-disk development Tenant, not an HA layout. - Install without external access:
helm upgrade --install rustfs ./deploy/rustfs-tenant \
--namespace rustfs-storage --values tenant-values.yaml
To enable networking, edit the hostnames and platform references in one example:
# Choose Ingress OR Gateway API per endpoint.
helm upgrade --install rustfs ./deploy/rustfs-tenant \
--namespace rustfs-storage --values tenant-values.yaml \
--values deploy/rustfs-tenant/examples/gateway.yaml
The Ingress alternative is examples/ingress.yaml.
The example requires an installed IngressClass and a pre-created edge TLS Secret.
The Gateway example requires Gateway API CRDs, a controller, and an existing HTTPS
Gateway listener allowing routes from rustfs-storage. It does not create them.
These commands use the source chart. Use a published repository chart only after
a release containing rustfs-tenant is available; do not assume the existing
published 0.0.6 release already contains this addition. The release workflow
packages both charts under the release version. The Tenant chart deliberately
has no appVersion: it does not select a RustFS image through chart metadata.
Values contract
| Value | Meaning |
|---|---|
tenant.metadata.name | Tenant name; defaults to release name; DNS-1035, max 55 characters |
tenant.metadata.labels, annotations | Native metadata maps for the Tenant |
tenant.spec | Native Tenant spec, rendered without tpl evaluation or environment injection |
tenant.spec.readinessProbe | Optional readiness timing fields; the Operator supplies defaults and the health endpoint |
ingress.api, ingress.console | Independent Ingress settings; disabled by default |
ingress.*.hosts | Explicit DNS hostnames; no catch-all rule |
ingress.*.ingressClassName, tls | Native Ingress fields; TLS uses existing Secrets |
ingress.*.labels, annotations | Resource metadata, including controller-specific settings |
httpRoute.api, httpRoute.console | Independent HTTPRoute settings; disabled by default |
httpRoute.*.parentRefs, hostnames | Native Gateway references and explicit hostnames |
httpRoute.*.timeouts | Native rule timeouts; depends on controller support |
httpRoute.*.labels, annotations | HTTPRoute metadata |
httpRoute.*.backendTLS | Optional native BackendTLSPolicy spec.validation; requires v1.4+ CRDs and controller support |
Namespace comes from --namespace. Services are always <tenant>-io:9000 and
<tenant>-console:9001, matching the existing Operator contract. Each route uses
/ with prefix matching. The chart does not add rewrites, shared Gateways, DNS,
certificates, arbitrary extra resources, or controller-specific policies.
Use separate standard manifests for advanced platform policies.
Helm merges maps but replaces lists, including tenant.spec.pools and env.
Keep the complete desired lists in your values file. Clearing a default map uses
null, e.g. tenant.spec.credsSecret: null when using another supported credential
source. The installed Tenant CRD remains the authority for validating native spec
fields; chart schema validation covers the chart-owned settings.
Readiness timing
Configure readiness through the native Tenant spec in your values file:
tenant:
spec:
readinessProbe:
initialDelaySeconds: 0
timeoutSeconds: 5
periodSeconds: 10
failureThreshold: 3
successThreshold: 1
These are the Operator defaults. Each field is optional, so a values file can
override only timeoutSeconds, for example. The Operator selects the readiness
handler from Tenant TLS: HTTP/HTTPS uses /health/ready on port 9000, while
mTLS uses the authenticated exec probe or configured TCP probe. The five-second
timeout is the time Kubernetes allows for a probe response; the mTLS exec
command retains its separate two-second curl timeout, and server-side readiness
work has its own time budgets.
Install the updated Tenant CRD explicitly before applying these values; Helm
does not upgrade CRDs from the Operator chart's crds/ directory. Upgrading the
Operator also changes existing Tenants' default readiness timeout from one to
five seconds, which updates their StatefulSet Pod templates. When
spec.serviceAccountName is omitted, the Operator enforces RollingUpdate with
rollingUpdate.partition: 0 for default ServiceAccount token protection, and
eligible Pods are replaced automatically. With an explicit custom ServiceAccount,
the Operator preserves the existing RollingUpdate, rollingUpdate.partition,
or OnDelete settings.
See readiness timing and upgrade guidance
for validation rules, rollout behavior, and availability checks.
Upgrade and remove
Keep the release name, namespace and Tenant name stable. Renaming a Tenant creates
a different storage cluster; this chart does not implement data migration.
Do not adopt an existing Tenant or user-managed networking by adding Helm ownership
annotations or using --take-ownership. Existing installations can keep using
plain YAML unchanged. Plan any ownership migration separately.
Set an endpoint's enabled: false and apply a Helm upgrade to remove its chart-owned
Ingress/HTTPRoute and its optional backend TLS policy. Disabled endpoints may
retain their configuration for later reuse. Reverting to an internal-only
deployment must disable all previously
enabled endpoints. Use complete desired values; avoid --reuse-values when removing
old exposure settings. Switching Ingress to HTTPRoute can interrupt traffic and
needs a planned cutover.
helm uninstall rustfs -n rustfs-storage deletes the chart-owned Tenant and routes;
Tenant deletion triggers the Operator/Kubernetes workload cleanup. Treat it as a
storage teardown, not a networking-only operation. Check PVC/PV retention and
backups before teardown. Referenced credential/certificate resources and shared
Gateways are not deleted by this chart.
Deleting only the Tenant CR does not garbage-collect the chart-owned routes: there are intentionally no synthetic ownerReferences or lookup hooks. Use the Helm release lifecycle, or explicitly manage every resource with GitOps. Helm is not a continuous reconciler; use a GitOps controller if drift correction of networking resources is required.
Validation
From the repository root (Helm 3 required):
helm lint deploy/rustfs-tenant
cargo test --test tenant_chart
kubectl kustomize examples/networking/ingress
kubectl kustomize examples/networking/gateway
Rendering does not verify the installed CRDs, Gateway attachment, DNS, certificates, or S3 traffic. Follow the runtime verification steps on your target platform.
Deploy rustfs-tenant with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rustfs-tenant 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 chartrustfs-tenant is pinned at v0.0.9 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