Skip to content

feat(k8s): run a three-node SeaweedFS object store - #6689

Merged
dan-petty merged 6 commits into
mainfrom
feat/4750-seaweedfs-object-store
Nov 21, 2026
Merged

dan-petty merged 6 commits into
mainfrom
feat/4750-seaweedfs-object-store

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Add the SeaweedFS object store in namespace object-store for the off-node backups of the other services. The SeaweedFS operator (chart 0.1.48, operator 1.0.45) makes each workload from one Seaweed CR on SeaweedFS 4.54: 3 masters, 3 volume servers on 3 nodes with replication 001, 2 filers, 2 S3 gateways, 1 admin and 1 worker.

Only the worker reaches the admin gRPC port, a namespace with the label backup-client: "true" reaches S3, and no SeaweedFS pod has internet egress. The admin UI has a generated password, and the S3 gateway refuses each request until an identity exists. An update of the image or the chart waits for an approval on the Dependency Dashboard. ADR 0034 records the choice.

Closes #4750

Change: openspec/changes/archive/2026-11-21-4750-seaweedfs-object-store/

Plan #4750 as the OpenSpec change 4750-seaweedfs-object-store: the
Seaweed CR, its operator, the perimeter, the Secrets, the deploy path,
the alerts, the build test and the checks of the k8s row.
Add namespace object-store, the Argo CD Applications seaweedfs-operator
(chart 0.1.48, operator 1.0.45) and object-store, and the Seaweed CR on
SeaweedFS 4.54: 3 masters, 3 volume servers on 3 nodes with replication
001, 2 filers, 2 S3 gateways, the admin and the worker. Add the
perimeter, the budgets, the two ClusterSecret rows, the infra stack
entries, the k8s row checks, the seaweedfs alerts, the dashboard, the
build test, ADR 0034 and the README section Object Store.
Sync the object-store capability into openspec/specs and move the change
to openspec/changes/archive/2026-11-21-4750-seaweedfs-object-store.
@dan-petty dan-petty added type/feature Type feature: a new function scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 21, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Steps for a person (after the merge)

  1. Merge. Application base makes namespace object-store, seaweedfs-operator installs the operator, and object-store applies the CR. The admin and S3 pods wait in CreateContainerConfigError until their Secrets exist.
  2. Run uv run devops k8s push-secrets --only object-store/seaweedfs-admin --only object-store/seaweedfs-s3.
  3. Run the same command with --plan until each key shows unchanged.
  4. Run the checks of k8s/README.md, section Object Store, Rollout step 4, then the steps of the section Build test, and post the result lines on feat(k8s): run a three-node SeaweedFS object store #4750 (no key).

Environment move #5134: this pull request changes environment paths (k8s/argocd/apps/, k8s/object-store/, k8s/namespaces.yaml, k8s/monitoring/). The pre-check of plan step 10 (git diff --stat S origin/main -- <environment paths>) finds it, so the homelab copy syncs again before the switch.

Points for the owner review (differences from the refine design)

  • ADR 0034, not 0030: 0030 and 0031 exist, and 0032 and 0033 are reserved.
  • Versions. SeaweedFS 4.54 with chart 0.1.48 (operator 1.0.45), the newest on the build day: the release notes of operator 1.0.45 name SeaweedFS commit 5ef99c1d8dbb, the commit of tag 4.54. 4.54 holds many S3 authorization fixes.
  • No ClusterSecret rows for the JWT keys. Operator 1.0.45 (internal/controller/controller_tls.go, ensureSecuritySecret) mints each key and keeps it in Secret seaweedfs-security, which the CR owns. A pushed copy would fight the operator.
  • New Secret object-store/seaweedfs-s3 (literal {"identities": []}), not in the design. SeaweedFS 4.54 weed/s3api/auth_credentials.go:419-427 allows every request when the gateway has no config file and no identity. With the file it refuses each request until an identity exists (make one per client in the admin UI).
  • S3 gateway iam: false, -port.iceberg=0, -port.lance=0. The operator passes no flag for Iceberg (8181) or Lance (9101), which weed s3 serves by default. GHSA-25hp-4mw7-9c75 (critical, no fix) needs the IAM subsystem, which -iam=false keeps off (weed/s3api/s3api_server.go:408). S3 Tables routes have no off switch; with IAM off, an unsigned request gets an error.
  • ServiceMonitors from the operator (spec.serviceMonitor.enabled and metricsPort 9327 on each component), not a hand-written one in k8s/object-store/. The operator ClusterRole grants servicemonitors.
  • Master claims (1Gi fast-nvme), not in the design. freeze_on_topology_mismatch defaults to true (weed/server/master_server.go:143), so masters with no volume would freeze volume growth after a restart of all three.
  • Clients by the label backup-client: "true", as the plan direction of 2026-11-21 asks; the design named no client namespace.
  • Webhook certificate from cert-manager (webhook.certManager.enabled), in place of the certgen hook Jobs of the chart. The rendered webhook configurations hold no caBundle, so the Argo CD diff does not see the field that cainjector writes.
  • Build test form. A kustomization that no Application applies (k8s/object-store/build-test/: a backup-client namespace, a boto3 Job and a minio-go Job), with the kubectl steps of the README for the cross-gateway delay, the volume pod loss and the 33646 checks. The repository holds no shell script and no Python outside src/ and tests/, and minio-go needs Go. The Jobs install boto3 and minio-go at run time with no version pin.
  • Catalog entry object-store: tier 2 and data class owned are my choice; change them if you want another tier.
  • Renovate. The Kubernetes manager will propose new chrislusf/seaweedfs tags, and the minor and patch automerge can merge one before an operator release builds against it. The README version rule says such a pull request waits for the chart; a package rule that stops the automerge of this image is not in this change.
  • ServiceAccount token. The CR has no field for automountServiceAccountToken, so the SeaweedFS pods mount the token of the default ServiceAccount of the namespace.
  • The k8s row fixtures. The design asked for an S3 Tables fixture for the feature rule; the fixture turns on the Iceberg catalog of the filer, because S3 Tables has no field to turn on.

Checks run before the push

  • uv run devops ci --check --only lint,format,docs,constructs,openspec,test-settings,test-tree,startup-imports,swallowed-failures,k8s,domain: pass.
  • uv run devops ci test on tests/commands/k8s, tests/k8s, tests/prometheus and the k8s, architecture and ADR invariants: pass. uv run mypy on the two changed source files: no issue.
  • uv run devops k8s lint: pass. uv run devops k8s image-pins k8s/object-store and k8s/object-store/build-test: each image resolves. uv run devops grafana dashboards lint: no error.
  • The rendered CR matches the Seaweed CRD of chart 0.1.48: no unknown key, and the OpenAPI schema accepts it.
  • Not proven yet (needs the merge and the person steps): the live pods, claims and placement, the Argo CD health, the admin login refusal, the 33646 reachability, the build test uploads and delays, and the push of the two Secrets.

…ucket first

- monitoring-default-perimeter limits the egress of every pod of
  namespace monitoring. It now lets the pods reach namespace
  object-store on the metrics port 9327, so Alloy scrapes the
  ServiceMonitors that the SeaweedFS operator makes. A new rule of the
  k8s row joins the egress of the monitoring policies and the ingress
  of the store for the alloy-metrics pod.
- SeaweedFS authorizes a bucket create as Admin, and the identity
  build-test has Read, Write, List and Tagging. Step 1 of the build
  test makes the bucket in the admin UI first, and the two Jobs no
  longer try to make it.
- The project review reads the workloads of namespace object-store.
@dan-petty

Copy link
Copy Markdown
Owner Author

Review fixes in e0a0e33:

  • Owner review point: the egress of monitoring-default-perimeter is wider. It now lets the pods of monitoring reach namespace object-store on TCP 9327. Before this rule, the perimeter dropped each scrape of the SeaweedFS ServiceMonitors, and SeaweedFSNoLeader and SeaweedFSVolumeServerDown fired through absent() on a healthy store. The rule has the same form as the cert-manager rule (feat(k8s): add cert-manager and the Barman Cloud plugin #4764). The new k8s row rule check_alloy_reaches_the_metrics_port_of_each_component joins this egress with the ingress of the store.
  • Person step changed: build test step 1. Make the bucket build-test in the admin UI (Object Store, Buckets) before the identity. SeaweedFS 4.54 authorizes PUT /<bucket> as ACTION_ADMIN (weed/s3api/s3api_server.go:1241), and the identity has Read, Write, List and Tagging only. The two Jobs no longer try to make the bucket.
  • object-store is now in DEFAULT_ROADMAP_PROJECT_REVIEW_NAMESPACES, so the project review reads the workloads of the store.

…s of the object store

The operator keeps the JWT keys in Secret seaweedfs-security-config. The
operator pod reaches the API server on 6443 only, as Argo Workflows does.
An update of the SeaweedFS image or the operator chart waits for an
approval on the Dependency Dashboard. The admin port rule counts a port
entry with no port or a named port as the admin port. ADR 0034 is
accepted.
@dan-petty

Copy link
Copy Markdown
Owner Author

Review points for the owner

  1. Secret push comes right after the merge. Namespace object-store exists only after Argo CD syncs the merge, so the design (feat(k8s): run a three-node SeaweedFS object store #4750, requirement "Secret push") puts the push after it. Run at once after the merge:
    uv run devops k8s push-secrets --only object-store/seaweedfs-admin --only object-store/seaweedfs-s3
    then the same command with --plan until each key shows unchanged. Until then the admin and S3 pods wait in ContainerCreating with a FailedMount event. No running service depends on the store yet.
  2. Exception to the Renovate automerge of feat(deps): merge minor, patch and digest Renovate updates #6547. The new rule in .github/renovate.json (group seaweedfs) sets dependencyDashboardApproval: true and automerge: false for the SeaweedFS image and the operator chart. Reason: a Renovate update takes the newest image tag, but the store must run the tag that the operator release builds against, so a person or an agent pins that tag on the branch and runs the build test before the merge. An automerge after the approval would merge the newest tag first. The SearXNG rule of fix(deps): give SearXNG its own Renovate branch behind approval #6052 is the same form without automerge: false. The merge of this PR confirms the exception.
  3. Unfixed advisories. Three SeaweedFS advisories have no release with a fix: GHSA-3qr2-qw48-cj6q (worker gRPC with no auth; closed by the worker-only rule on TCP 33646), GHSA-m3m8-mrgq-hf9h (admin UI with no auth by default; closed by the generated admin password) and GHSA-25hp-4mw7-9c75 (S3 Tables access; closed by iam: false, -port.iceberg=0 and -port.lance=0, and the 4.54 code refuses the unsigned path). An independent check read each advisory and its code path at tag 4.54. The other 55 advisories do not apply to 4.54 or to this configuration. SeaweedFS 4.54, chart 0.1.48 and operator 1.0.45 are the newest releases.
  4. Outside this PR: the API-server egress rules of other namespaces also allow TCP 443 to any address. The evidence is on dan-petty/homelab#346.

@dan-petty
dan-petty marked this pull request as ready for review November 21, 2026 22:17
@dan-petty
dan-petty merged commit 3f81cdb into main Nov 21, 2026
36 checks passed
@dan-petty
dan-petty deleted the feat/4750-seaweedfs-object-store branch November 21, 2026 22:49
dan-petty pushed a commit that referenced this pull request Nov 21, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.190.0](v0.189.0...v0.190.0)
(2026-11-21)


### Features

* **k8s:** run a three-node SeaweedFS object store
([#6689](#6689))
([3f81cdb](3f81cdb))
* **roadmap:** the Service reads each runner container by name
([#6695](#6695))
([84c0627](84c0627)),
closes [#6690](#6690)


### Bug Fixes

* **roadmap:** a new-branch run takes no closed draft
([#6693](#6693))
([9ae7d7b](9ae7d7b))
* **roadmap:** the base replay of a step runs the checkout Python
([#6692](#6692))
([db5de9b](db5de9b))


### Code Refactoring

* **roadmap:** fix-checks rebases onto main in its agent phase
([#6694](#6694))
([a2092bd](a2092bd)),
closes [#6639](#6639)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(k8s): run a three-node SeaweedFS object store

1 participant