Files
minio/helm/silo/README.md
T
Feng Ruohang b7fc202ad9 fix(helm): use node health endpoints and preserve probe upgrade defaults
Share the built-in and custom probe rendering across both server workloads. Check live during startup and for restarts, and ready for Service traffic. Set the transport from the server TLS setting and target its API port.

An older release can supply none of the new defaults during --reuse-values. Omit inactive probes and supply the timing defaults when just an enabled flag is set. Cover both values paths and custom overrides in the Helm migration check.

Refs #288, #283.

Signed-off-by: Feng Ruohang <rh@vonng.com>
2026-12-03 16:43:59 +08:00

212 lines
8.2 KiB
Markdown

# Silo Helm Chart
This chart installs Silo, an independently maintained, S3-compatible object
storage server, on Kubernetes. It supports standalone and distributed modes.
The chart and server are licensed under AGPL-3.0-or-later.
## Prerequisites
- Kubernetes 1.19 or later
- Helm 3 or 4
- A PersistentVolume provisioner unless `persistence.enabled=false`
## Install
From the source checkout:
```bash
helm install silo ./helm/silo \
--namespace silo --create-namespace \
--set rootUser=silo-admin \
--set rootPassword='replace-with-a-long-random-secret'
```
For a version published on GHCR, use `oci://ghcr.io/pgsty/charts/silo` in
place of `./helm/silo` and pass `--version <chart-version>`.
For a disposable standalone installation:
```bash
helm install silo ./helm/silo \
--namespace silo --create-namespace \
--set mode=standalone \
--set replicas=1 \
--set persistence.enabled=false \
--set resources.requests.memory=512Mi \
--set rootUser=silo-admin \
--set rootPassword='replace-with-a-long-random-secret'
```
The default server image is `docker.io/pgsty/silo` (which contains the `silo`
server, `mcli`, and an `mc` client compatibility symlink, without a `minio`
server binary). Post-install resource jobs use `mcImage` (`docker.io/pgsty/mc`)
by default.
## Compatibility contract
The product and delivery names are Silo, while established interfaces remain
compatible:
- `MINIO_*` environment variables and existing values keys are unchanged.
- `/minio/*` API and metrics routes are unchanged.
- `minio_*` Prometheus metrics and `x-minio-*` protocol headers are unchanged.
- Existing storage, including `.minio.sys`, is used without conversion.
- `nameOverride`, `fullnameOverride`, and `serviceAccount.name` can pin existing
Kubernetes resource identities during an upgrade.
New installations default to Silo resource names and the `silo-sa` service
account.
## Upgrade an existing release
Do not upgrade an existing release without first pinning its current resource
names. Export the complete values and render the candidate chart offline:
```bash
helm get values my-release -n my-namespace -a > values.before-silo.yaml
SILO_TAG='<published-silo-release-tag>'
MCLI_TAG='<published-mcli-release-tag>'
helm template my-release ./helm/silo \
-n my-namespace \
-f values.before-silo.yaml \
--set nameOverride=minio \
--set fullnameOverride=my-existing-fullname \
--set serviceAccount.name=minio-sa \
--set image.repository=pgsty/silo \
--set mcImage.repository=pgsty/mc \
--set-string image.tag="${SILO_TAG}" \
--set-string mcImage.tag="${MCLI_TAG}" \
> rendered.silo.yaml
```
Compare the old and new manifests. Stop if the candidate changes immutable
selectors, StatefulSet or Service identity, PVC names, Secrets, or storage
mounts. After review, upgrade the chart and image together:
```bash
SILO_TAG='<published-silo-release-tag>'
MCLI_TAG='<published-mcli-release-tag>'
helm upgrade my-release ./helm/silo \
-n my-namespace \
-f values.before-silo.yaml \
--set nameOverride=minio \
--set fullnameOverride=my-existing-fullname \
--set serviceAccount.name=minio-sa \
--set image.repository=pgsty/silo \
--set mcImage.repository=pgsty/mc \
--set-string image.tag="${SILO_TAG}" \
--set-string mcImage.tag="${MCLI_TAG}"
```
Rollback is chart-level: use `helm rollback`, not an image-only downgrade. The
new chart invokes `silo server`; an old image does not provide that executable.
The new image accepts a legacy first argv token of `minio` only to support old
chart commands during the forward migration.
When upgrading an existing Silo release to `RELEASE.2026-11-12T00-00-00Z` (chart
`7.0.5`):
- `helm upgrade --reuse-values` keeps the previously saved `image.tag` and
`mcImage.tag`; pass `--set-string image.tag=RELEASE.2026-11-12T00-00-00Z` and
`--set-string mcImage.tag=RELEASE.2026-11-12T00-00-00Z` explicitly.
- When upgrading from `20261109`, avoid editing service accounts on un-upgraded
pods or peer sites until every node runs `20261112`, drain active batch jobs,
and pause pool decommission or concurrent multi-pool writes during rolling pod
restarts so lock-ordering and cross-pool `null`-version Object Lock checks
apply uniformly.
- When upgrading from `20261026` or earlier, drain or cancel active batch jobs
before upgrading; `20261026` cannot resume submitter-bound batch manifests on
downgrade, single-pool clusters whose erasure sets do not all share the same
pods/hosts require a drained stop-all upgrade rather than a rolling pod
restart, and `POST ?restore` returns `503` while mixed versions are serving.
See the [20261109 release notes](https://silo.pgsty.com/blog/release/silo-20261109/#upgrade)
and [server compatibility notes](https://silo.pgsty.com/compatibility/server/).
## Persistence and TLS
The default PersistentVolumeClaim mounts at `/export`. New claims use
`persistence.storageClass` or inherit `global.storageClass` from a parent chart.
Helm preserves the existing storage class during a connected upgrade when only
the parent supplies a default.
Use an existing claim with:
```bash
helm install silo ./helm/silo --set persistence.existingClaim=PVC_NAME
```
Create a TLS Secret containing `private.key` and `public.crt`, then set:
```bash
helm upgrade --install silo ./helm/silo \
--set tls.enabled=true \
--set tls.certSecret=silo-tls
```
Additional trusted CAs can be supplied through `trustedCertsSecret`.
## Kubernetes health probes
Enable each probe independently for the server container in either mode.
```yaml
startupProbe:
enabled: true
livenessProbe:
enabled: true
readinessProbe:
enabled: true
```
| Probe | Pod endpoint | Default action after consecutive failures |
| --- | --- | --- |
| Startup | `/minio/health/live` | Restart after 60 checks at 5-second intervals. The first success releases the liveness and readiness checks. |
| Liveness | `/minio/health/live` | Restart after 3 checks at 30-second intervals. A saturated request queue can fail this check. |
| Readiness | `/minio/health/ready` | Stop routing new Service traffic to the Pod after 3 checks at 15-second intervals. Resume traffic on recovery. |
Enable startup alongside liveness when a cold start may exceed the liveness
failure window. Built-in probes use `minioAPIPort` and switch to HTTPS with
`tls.enabled`.
Kubelet skips certificate verification for HTTPS probes. Readiness includes
configured KMS and etcd checks. Both endpoints can succeed while storage or IAM
is loading. The distributed headless Service publishes peer addresses during
bootstrap. Use cluster quorum checks for monitoring and a signed S3 write and
readback when an application needs to verify object access.
[Health check guide](https://silo.pgsty.com/operations/monitoring/healthcheck-probe/)
All three probes default to disabled, including on upgrades with `--reuse-values`
from charts that predate these settings. A chart version change updates the
Pod template checksums for the ConfigMap and Secret by default and can trigger
a rollout even with all probes disabled. Set timing fields on each probe, for
example `--set startupProbe.failureThreshold=120` for a ten-minute startup budget.
A nonempty `customStartupProbe`, `customLivenessProbe`, or `customReadinessProbe`
supplies the complete Kubernetes probe even when its built-in is disabled.
Custom probe fields are passed through literally.
## Existing Secrets and post-install resources
The chart treats `rootUser` and `rootPassword` as literal values. A parent chart
can opt into evaluating both as Helm templates with `tplRootCredentials: true`.
Set `existingSecret` to a Secret containing `rootUser` and `rootPassword`.
Buckets, users, policies, service accounts, and custom commands can be created
with the existing `buckets`, `users`, `policies`, `svcaccts`, and
`customCommands` values. The post-install job uses `mcli` through its `mc`
compatibility command. New custom commands should target `mysilo`; the legacy
`myminio` target remains registered so existing values continue to work.
## Configuration
See [values.yaml](./values.yaml) for the complete values surface and the
[Silo documentation](https://silo.pgsty.com/) for server operations.
To uninstall the chart:
```bash
helm uninstall silo -n silo
```
PersistentVolumeClaims may remain after uninstall; inspect them before any
manual deletion.