rustfs-operator
by RustFS
Kubernetes operator for managing RustFS storage clusters
About this chart
RustFS Operator Helm Chart
Helm chart for deploying the RustFS Kubernetes operator.
Prerequisites
- Kubernetes v1.30+
- Helm 3.0+
Installing the Chart
The public Helm repository is https://operator.rustfs.com. Published chart versions and package URLs are listed in its repository index.
Add the repository and list available versions:
helm repo add rustfs-operator https://operator.rustfs.com
helm repo update
helm search repo rustfs-operator/rustfs-operator --versions
Operator STS TLS is enabled while automatic certificate generation is disabled by default.
Before installing, pre-create sts-tls in the release namespace with tls.crt, tls.key, and
ca.crt. For development environments only, opt in to Operator-generated certificates with
--set sts.tls.auto=true.
Install the published chart with an explicit version:
helm install rustfs-operator rustfs-operator/rustfs-operator \
--version 0.0.9 \
--namespace rustfs-system \
--create-namespace
The examples pin chart version 0.0.9. Select another version from
helm search repo --versions when installing or upgrading. Inspect that version's
configuration with helm show values rustfs-operator/rustfs-operator --version 0.0.9.
The chart publishes the seven bundled RustFS Grafana dashboards as ConfigMaps by default. It does not install Grafana or Prometheus. A Grafana dashboard sidecar must watch the ConfigMap namespace and match the configured discovery labels.
Argo CD
Use the published chart as the Helm source for an Argo CD Application:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: rustfs-operator
namespace: argocd
spec:
project: default
source:
repoURL: https://operator.rustfs.com
chart: rustfs-operator
targetRevision: "0.0.9"
destination:
server: https://kubernetes.default.svc
namespace: rustfs-system
syncPolicy:
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
Set metadata.namespace, spec.project, and spec.destination for your Argo CD
installation. The AppProject must allow this repository, the destination, and
the chart's cluster-scoped resources, including CRDs and ClusterRoles.
targetRevision selects a published chart version. Server-side apply supports
the chart's large CRDs. Prepare sts-tls in rustfs-system before syncing, as
described above, and supply custom chart settings through spec.source.helm.valuesObject.
See the Argo CD Helm documentation
for additional configuration.
Install from a Local Checkout
To install the chart from a checkout of this repository, run from the repository root:
helm install rustfs-operator deploy/rustfs-operator/ \
--namespace rustfs-system \
--create-namespace
OpenShift Installation
Enable the OpenShift profile so the chart omits the fixed Pod and container security contexts from the Operator, Console, and optional Console frontend Deployments. OpenShift SecurityContextConstraints (SCC) then assigns values valid for the installation namespace, matching the MinIO Operator installation contract:
helm upgrade --install rustfs-operator deploy/rustfs-operator/ \
--namespace rustfs-system \
--create-namespace \
--set openshift.enabled=true
For Tenant workloads, use explicit empty Pool security contexts as shown in
examples/openshift-tenant.yaml:
spec:
pools:
- name: pool-0
securityContext: {}
containerSecurityContext: {}
The empty objects delegate UID, GID, FSGroup, and container security settings
to the namespace SCC. They are an OpenShift-specific contract; generic
Kubernetes Pod Security admission validates fields but does not assign an
allowed runtime identity. Keep openshift.enabled=false and omit the Tenant
fields on generic Kubernetes so the RustFS defaults remain in effect.
This profile provides SCC-compatible manifests but does not by itself imply
OpenShift certification or OperatorHub distribution. Chart-managed Deployments
set hostUsers: false when openshift.enabled=true, and Tenant workloads do
the same for an explicit empty security-context pair or spec.hostUsers: false,
covering the OpenShift restricted-v3 host-user-namespace control.
The RustFS server image is an independent prerequisite. It must support an
arbitrary SCC-assigned UID: writable image-layer directories, including
/data and /logs, must be owned by group 0 and grant the group the same
permissions as the owner. Images that keep those directories as
10001:10001 with mode 0750 are not compatible even after fixed IDs are
removed from the Pod spec. Use a rebuilt or fixed image before applying the
OpenShift Tenant example; the chart cannot repair image filesystem ownership.
The optional split frontend is disabled by default. Its image must also be
verified for arbitrary-UID execution, writable nginx runtime paths, and
unprivileged port binding before setting console.frontend.enabled=true on
OpenShift. Omitting its securityContext does not make an incompatible nginx
image OpenShift-ready.
Uninstalling the Chart
To uninstall/delete the rustfs-operator deployment:
helm uninstall rustfs-operator --namespace rustfs-system
Configuration
The following table lists the configurable parameters of the RustFS Operator chart and their default values.
Grafana Dashboard Configuration
| Parameter | Description | Default |
|---|---|---|
dashboard.enabled | Publish the bundled RustFS Grafana dashboards as ConfigMaps | true |
dashboard.namespace | Dashboard ConfigMap namespace; empty uses the operator namespace | "" |
dashboard.additionalLabels | Labels used by a Grafana sidecar to discover dashboard ConfigMaps | {grafana_dashboard: "1"} |
The bundled dashboards require a Prometheus data source containing RustFS metrics.
The default grafana_dashboard: "1" label matches the dashboard sidecar defaults
used by kube-prometheus-stack. When a Grafana sidecar only watches its own
namespace, set dashboard.namespace to that namespace or configure the sidecar
to search the Operator release namespace. The target namespace must already
exist and the Helm installer must be authorized to create ConfigMaps there.
Disable dashboard ConfigMaps when they are managed separately:
helm upgrade --install rustfs-operator deploy/rustfs-operator/ \
--set dashboard.enabled=false
Operator Configuration
| Parameter | Description | Default |
|---|---|---|
operator.replicas | Number of operator replicas | 1 |
operator.image.repository | Operator image repository | docker.io/rustfs/operator |
operator.image.tag | Operator image tag; empty uses Chart.appVersion | "" |
operator.image.pullPolicy | Image pull policy | IfNotPresent |
operator.imagePullSecrets | Image pull secrets | [] |
operator.leaderElect | Enable leader election override (null/unset for auto by replicas) | null |
operator.resources.requests.cpu | CPU resource requests | 100m |
operator.resources.requests.memory | Memory resource requests | 128Mi |
operator.resources.limits.cpu | CPU resource limits | 500m |
operator.resources.limits.memory | Memory resource limits | 512Mi |
operator.metrics.enabled | Enable operator /metrics, /healthz, and /readyz endpoint | true |
operator.metrics.port | Operator observability container port | 8080 |
operator.serviceMonitor.enabled | Create a Prometheus Operator ServiceMonitor | false |
operator.prometheusRule.enabled | Create Prometheus alert rules for operator and tenant storage health | false |
operator.tenantMonitor.enabled | Poll RustFS tenant storage health and capacity metrics | true |
operator.tenantMonitor.intervalSeconds | Tenant storage monitor interval | 300 |
operator.bindAddress | Optional literal IPv4/IPv6 bind address for operator HTTP sockets; empty prefers :: then 0.0.0.0 | "" |
clusterDomain | Kubernetes cluster DNS domain used for Tenant peer URLs, generated TLS SANs, and operator STS auto TLS | cluster.local |
operator.env | Environment variables | [{name: RUST_LOG, value: info}] |
operator.nodeSelector | Node selector for pod placement | {} |
operator.tolerations | Tolerations for pod scheduling | [] |
operator.affinity | Affinity rules for pod scheduling | {} |
Chart-managed environment variables must not be duplicated in operator.env. Configure
OPERATOR_CLUSTER_DOMAIN, OPERATOR_NAMESPACE, and the chart-managed OPERATOR_STS_* settings
through their documented chart values so the Deployment, Service, generated certificate, and RBAC
manifests remain consistent.
Operator STS Configuration
| Parameter | Description | Default |
|---|---|---|
sts.enabled | Enable the operator STS endpoint | true |
sts.audience | Kubernetes TokenReview audience expected by the operator STS endpoint | sts.rustfs.com |
sts.port | Operator container port for STS | 4223 |
sts.tls.enabled | Serve the operator STS endpoint over TLS | true |
sts.tls.auto | Create and rotate an invalid, legacy, or soon-to-expire Operator-managed STS TLS Secret with namespaced write RBAC | false |
sts.service.type | Kubernetes Service type for STS | ClusterIP |
sts.service.port | Kubernetes Service port for STS | 4223 |
The RustFS operator STS endpoint intentionally uses an explicit Tenant route:
POST /sts/{tenantNamespace}/{tenantName}
This differs from MinIO Operator's namespace-only route. A PolicyBinding still lives in the Tenant namespace, but the workload must call STS with both the Tenant namespace and the Tenant name.
The STS service is HTTPS by default, and sts.tls.auto=false makes externally issued certificates the default ownership model. Pre-create the fixed sts-tls Secret in the operator namespace with tls.crt, tls.key, and ca.crt; startup fails with an actionable error when TLS is enabled and that Secret is absent. Update the Secret to rotate the certificate manually, and the operator hot-loads valid replacement material within five minutes while retaining the last valid configuration on refresh failures. The chart does not grant namespaced Secret write access in this mode.
Set sts.tls.auto=true explicitly for development or other deployments that accept an Operator-managed self-signed CA. The operator then creates sts-tls when missing and rotates invalid, legacy, or soon-to-expire managed material. Server certificates are valid for one year and rotate 30 days before expiry while retaining the same ten-year CA. The Operator-managed sts-tls Secret stores ca.key so leaf renewal can reuse the CA without breaking existing client trust; operations must keep this sensitive key within the intended security boundary when replicating or backing up the Secret. The CA is replaced only during legacy-policy migration or when it enters its own 30-day renewal window. Existing legacy Operator-managed Secrets do not contain ca.key and are replaced once after upgrade, so refresh every STS client's trusted ca.crt as part of that upgrade. Use the CA-expiry metric to plan a coordinated trust update when the ten-year CA approaches expiry. With rbac.create=true, the chart creates a namespaced Role that can create Secrets and update only sts-tls; the ClusterRole keeps all Secret and ConfigMap access read-only. If rbac.create=false, provide an equivalent Role and RoleBinding for the operator ServiceAccount: namespaced Secret create, plus get and update restricted to the sts-tls resource name.
Monitor rustfs_operator_sts_tls_certificate_expiry_timestamp_seconds and rustfs_operator_sts_tls_ca_expiry_timestamp_seconds and alert before either timestamp is reached.
STS only issues credentials for TLS-enabled Tenants. For Tenant upstream calls, the operator selects the Tenant HTTPS service endpoint and trusts the CA recorded in status.certificates.tls.caSecretRef.
When calling an mTLS-enabled Tenant (caTrust.clientCaSecretRef), the operator presents the Tenant's default certificate (status.certificates.tls.serverSecretRef) as its client certificate identity. If a Tenant requires a client certificate but serverSecretRef is unavailable, Operator STS rejects the request with HTTP 400 and TenantTlsClientCertificateUnsupported.
When operator.serviceMonitor.enabled=true, the chart creates scrape targets for both the operator observability endpoint and the Console API /metrics endpoint.
Tenant RPC Authentication
Use spec.rpcSecret to keep RustFS internode RPC authentication independent from
the administrator credentials in spec.credsSecret:
apiVersion: v1
kind: Secret
metadata:
name: rustfs-rpc-auth
namespace: storage
type: Opaque
stringData:
rpc-secret: "replace-with-a-dedicated-rpc-secret"
---
apiVersion: rustfs.com/v1alpha1
kind: Tenant
metadata:
name: rustfs-a
namespace: storage
spec:
credsSecret:
name: rustfs-admin-creds
rpcSecret:
name: rustfs-rpc-auth
key: rpc-secret
The operator maps the selected Secret key to RUSTFS_RPC_SECRET in every RustFS
Pod. Before applying workloads, it verifies that the Secret and selected key
exist and that the value is valid UTF-8, non-blank, contains no NUL bytes, and is
not the RustFS default credential value (rustfsadmin). Keep this value stable
while rotating administrator credentials. Secret updates enqueue every Tenant
whose spec references the Secret, including when multiple Tenants share it. A
Secret update does not change the environment of already-running Pods.
Coordinated restart and hot reload are outside this feature. If spec.rpcSecret
is omitted,
Deploy rustfs-operator with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rustfs-operator 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-operator 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