mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
* helm: reload S3 identities with a SIGHUP sidecar instead of restarting The chart restarts the filer and S3 pods when the content of existingConfigSecret changes, so every identity change briefly takes S3 down, completely so with a single filer. SeaweedFS reloads the identities file on SIGHUP. filer.s3.configReloader and s3.configReloader, off by default, add an s3-config-reloader sidecar that sends SIGHUP to SeaweedFS when kubelet updates the mounted file, turn on shareProcessNamespace, and stop hashing the existing Secret into checksum/s3config. The sidecar uses the component's image and container security context, so it runs as the same user as SeaweedFS, and it logs a warning when it cannot signal it. * helm: address review of the S3 config reloader - Default the configReloader map to dict, so a release upgraded with --reuse-values from a chart without it still renders. - With the reloader and existingConfigSecret, leave checksum/s3config off the pod, so values of the Secret the chart generates cannot restart it. - README: the restart comes from the next Helm upgrade, the timing holds for the kubelet's default settings, and a reload re-creates the KMS providers, which replaces the in-memory keys of the local provider. * helm: describe Secret propagation as eventually consistent Kubernetes gives no bound on when a Secret volume is updated, so the README gives typical delays instead, and says a revoked identity keeps working until then.