Skip to content

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

Closed

Description

@dan-petty

Problem or Motivation

The cluster has no object store. #2144, dan-petty/homelab#332, the project review reports and later the Argo artifacts need an S3 target that keeps copies off the source node. kubectl get crd shows no store, and kubectl get pv shows 19 local-path PVs with no backup. The owner asks for a permissive license (decision 1 of #4742), so the store is SeaweedFS (Apache-2.0) and not Garage (AGPL-3.0).

Proposed Solution & Architectural Design

  • Namespace object-store (Pod Security restricted) and a new stack storage.
  • Argo CD Application seaweedfs-operator: Helm repository https://seaweedfs.github.io/seaweedfs-operator, chart 0.1.47 or newer (appVersion 1.0.44), app 1.0.44 or newer, CRDs from the chart, sync-wave -1. Argo CD Application object-store for k8s/object-store/.
  • Version rule (owner, 2026-11-11): no minimum release age. Pin the newest SeaweedFS release on the build day that fixes the known security and bug issues, that the operator and the chart support, and that passes the tests. On 2026-11-11 that is 4.53 (2026-11-08). Never pin a release older than 4.52: releases 4.48 to 4.51 break minio-go multipart uploads (seaweedfs/seaweedfs#12177), and 4.52 has the fix (seaweedfs/seaweedfs#12194). Pin the image chrislusf/seaweedfs by digest. Pin the newest operator app and chart that support that release: operator app 1.0.44 builds against SeaweedFS 4.53 (commit 4ab66fb76da8, release notes of 1.0.44), and chart 0.1.47 has appVersion 1.0.44.
  • Seaweed CR:
    • 3 masters (Raft, defaultReplication 001, volumeSizeLimitMB 1000, volume growth copy_2 2, extra argument -telemetry=false);
    • 3 volume servers (hostname anti-affinity, 300Gi fast-nvme claims, maxVolumeCounts 300, minFreeSpacePercent 10);
    • 2 filers (leveldb2 on 10Gi claims, no S3 in the filer, because the operator marks it deprecated);
    • the standalone S3 gateway spec.s3 with 2 replicas on port 8333;
    • 1 admin with credentialsSecret seaweedfs-admin (GHSA-m3m8-mrgq-hf9h: with no password, the admin HTTP API has no authentication);
    • 1 worker (vacuum, volume balance, admin script and S3 lifecycle; no erasure coding).
  • JWT signing for volume and filer writes. S3 Tables, Iceberg, Lance, STS, OIDC, SFTP, WebDAV and the IAM API stay off. Restricted security contexts, PodDisruptionBudgets and metrics ports.
  • The AppProject sourceRepos entry and destination.
  • NetworkPolicy object-store-perimeter: only the worker pods reach the admin gRPC port 33646 (GHSA-3qr2-qw48-cj6q: that listener has no authentication); no internet egress.
  • ClusterSecret rows for seaweedfs-admin (a new keyring row) and the JWT signing keys.
  • A PrometheusRule (under-replicated volumes, no leader, a volume server down, read-only volumes, low node disk) and the SeaweedFS dashboard ConfigMap from the pinned tag.
  • A placement row that reads the storage class of the Seaweed CR.
  • A test in the k8s row that fails when a manifest holds fs.mergeVolumes (seaweedfs/seaweedfs#12521 can lose a completed object).
  • A README section with the node restore and the version rule, and a new ADR (the next free number) that records the store choice.

Target Subsystem

Kubernetes & Minikube Automation (k8s/object-store/, k8s/argocd/, k8s/monitoring/).

Existing Tool Considered

SeaweedFS and the SeaweedFS operator (both Apache-2.0, checked with the GitHub license API on 2026-11-11). The operator makes the StatefulSets, Deployments and Services, so no hand-written workload. Rejected: Garage and MinIO (AGPL-3.0), Ceph RGW (LGPL, raw devices), RustFS (at least 4 nodes, a CLA that allows a relicense), versitygw (no replication), s3proxy (no lifecycle), Apache Ozone and CubeFS (4 or 5 service types). #4742 gives the reasons. No custom code.

Acceptance Criteria

  • The pinned SeaweedFS release is the newest release on the build day that the operator supports: 4.53 or newer, and never 4.48 to 4.51. The operator is the newest app that supports it: app 1.0.44 or newer from chart 0.1.47 or newer.
  • kubectl -n object-store get pods -o wide shows 3 master, 3 volume, 2 filer, 2 s3, 1 admin, 1 worker and 1 operator pods Running. The 3 volume pods are on 3 different nodes, and the claims are Bound with class fast-nvme.
  • The admin UI (through port-forward) refuses a request with no password.
  • A TCP connect from a files pod to port 33646 fails. From the worker pod, it works.
  • The master command line holds -telemetry=false.
  • The Argo CD apps seaweedfs-operator and object-store are Synced and Healthy.
  • kubectl get ingress -A shows no host for the master, volume, filer or admin ports.
  • Namespace object-store requests at most 1 CPU and 3 GiB of memory.
  • The build test passes, and the PR gives the results:
    • 4 parallel 150 MB multipart uploads with boto3, and one minio-go streaming upload of unknown size, through the S3 Service;
    • a key written through one S3 gateway pod shows in ListObjectsV2 through the other within 10 seconds (the PR gives the delay);
    • with one volume pod deleted, a PUT and a GET succeed.
  • The k8s row of devops ci passes with the new placement, network policy, Secret gate and fs.mergeVolumes rows.
  • A person ran uv run devops k8s push-secrets before the merge.

Dependencies

Source: #4742

Alternatives check of 2026-11-20: in-use.
The item already names this tool.
Tool: seaweedfs/seaweedfs-operator (https://github.com/seaweedfs/seaweedfs-operator), Apache-2.0, last activity 2026-11-18, maintained.
Reason: Web searches returned nothing usable, but the repository facts and the operator README confirm the SeaweedFS operator reconciles masters, volume servers, filers and an S3 gateway from a Seaweed CR, so the store needs no custom workload.

Covers:

  • Creates master, volume, filer, S3, admin and worker workloads from one Seaweed CR
  • Ships the Seaweed CRD in the Helm chart
  • Manages multi-node masters and volume servers with rolling upgrades
  • Serves an S3-compatible API with IAM authentication

Lacks:

  • Project NetworkPolicy, PodDisruptionBudgets and ServiceMonitor
  • ClusterSecret rows, Argo CD Applications and AppProject entries
  • Placement, Secret-gate and fs.mergeVolumes checks plus the cluster test script
  • ADR 0026 is already the OpenTofu GitHub settings ADR

Proposed design

Problem statement

The cluster has no S3-compatible object store for #2144, dan-petty/homelab#332, the project review reports and the Argo artifacts, and its 19 local-path volumes have no backup. The change adds a three-node SeaweedFS store in namespace object-store, deployed by the SeaweedFS operator and its Helm chart, with replication 001, a standalone S3 gateway, JWT signing, a worker-only admin perimeter, ClusterSecret rows, alerts, a dashboard and the k8s checks. SeaweedFS and the operator are Apache-2.0, which meets the permissive-license rule of CONTRIBUTING.md:24.

Acceptance criteria

Requirement: Object-store namespace

The object-store Namespace SHALL set Pod Security restricted and the Prune=false,Delete=false sync annotation.

Scenario: Restricted namespace

  • WHEN uv run devops ci --check --only k8s runs on a fixture whose object-store Namespace lacks the restricted label.
  • THEN The row fails and names the object-store Namespace.

Requirement: Operator application

The Argo CD Application seaweedfs-operator SHALL use project homelab, the SeaweedFS chart 0.1.47 or newer, chart CRDs and sync-wave -1.

Scenario: Operator app fields

  • WHEN uv run devops ci --check --only k8s renders the Application seaweedfs-operator.
  • THEN The row passes with project homelab, the SeaweedFS repository, a chart at least 0.1.47, chart CRDs and sync-wave -1.

Requirement: Object-store application

The Argo CD Application object-store SHALL deploy k8s/object-store/ in project homelab after the operator.

Scenario: Object-store app fields

  • WHEN uv run devops ci --check --only k8s renders the Application object-store.
  • THEN The row passes with source path k8s/object-store/, project homelab and a sync-wave greater than -1.

Requirement: AppProject access

The AppProject homelab SHALL add the SeaweedFS repository to sourceRepos and namespace object-store to its destinations.

Scenario: AppProject fields

  • WHEN uv run devops ci --check --only k8s renders k8s/argocd/apps/projects.yaml.
  • THEN The row passes with the SeaweedFS repository and a destination of namespace object-store.

Requirement: Infra stack entries

The infra stack SHALL name the SeaweedFS operator chart in HELM_REPOS_BY_STACK and HELM_RELEASES_BY_STACK.

Scenario: Infra stack entries

  • WHEN A test imports HELM_REPOS_BY_STACK and HELM_RELEASES_BY_STACK from src/devops_cli/commands/k8s/stack_lifecycle.py.
  • THEN Both maps have an infra entry for the SeaweedFS operator chart.

Requirement: Release pin

The image chrislusf/seaweedfs SHALL use a release tag of 4.53 or newer with a digest and MUST NOT use 4.48 to 4.51.

Scenario: Release guard

  • WHEN uv run devops ci --check --only k8s runs on a fixture image reference of 4.48.
  • THEN The row fails and names the excluded release.

Requirement: Operator version

The operator Application SHALL use chart 0.1.47 or newer with app version 1.0.44 or newer.

Scenario: Operator version guard

  • WHEN uv run devops ci --check --only k8s runs on a fixture operator chart 0.1.46.
  • THEN The row fails and names the chart floor.

Requirement: Master quorum

The Seaweed CR SHALL run 3 masters with replication 001, volumeSizeLimitMB 1000 and volume growth copy_2 2.

Scenario: Master fields

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with 3 masters, replication 001, volumeSizeLimitMB 1000 and volume growth copy_2 2.

Requirement: Volume servers

The Seaweed CR SHALL run 3 volume servers with fast-nvme claims, hostname anti-affinity, maxVolumeCounts 300 and minFreeSpacePercent 10.

Scenario: Volume fields

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with 3 volume servers, fast-nvme claims, hostname anti-affinity, maxVolumeCounts 300 and minFreeSpacePercent 10.

Requirement: Filers and S3 gateway

The Seaweed CR SHALL run 2 filers on leveldb2 with no S3, and a 2-replica S3 gateway on port 8333.

Scenario: Filer and S3 fields

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with 2 leveldb2 filers, no S3 in the filer, and a 2-replica S3 gateway on port 8333.

Requirement: Admin and worker

The Seaweed CR SHALL run 1 admin and 1 worker with vacuum, volume balance, admin script and S3 lifecycle, and no erasure coding.

Scenario: Admin and worker fields

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with 1 admin, 1 worker and no erasure coding.

Requirement: Admin credentials and JWT

The Seaweed CR SHALL set credentialsSecret seaweedfs-admin on the admin and enable JWT signing for volume and filer writes.

Scenario: Admin and JWT fields

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with credentialsSecret: seaweedfs-admin and JWT signing on the volume and filer specs.

Requirement: Admin authentication

The admin UI SHALL refuse a request with no password.

Scenario: No password

  • WHEN curl -s -o /dev/null -w '%{http_code}' http://localhost:23646/ runs through a port-forward with no credentials.
  • THEN The response is 401 or 403.

Requirement: Telemetry off

The Seaweed master command line SHALL hold -telemetry=false.

Scenario: Telemetry off

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with -telemetry=false in the master command line.

Requirement: Optional features off

The Seaweed CR SHALL leave S3 Tables, Iceberg, Lance, STS, OIDC, SFTP, WebDAV and the IAM API off.

Scenario: Optional features off

  • WHEN uv run devops ci --check --only k8s runs on a fixture that turns on S3 Tables.
  • THEN The row fails and names the optional feature.

Requirement: Worker-only perimeter

NetworkPolicy object-store-perimeter SHALL admit only worker pods on TCP 33646.

Scenario: Worker-only perimeter

  • WHEN uv run devops ci --check --only k8s runs on a fixture whose perimeter admits a non-worker pod on 33646.
  • THEN The row fails and names the NetworkPolicy.

Requirement: No internet egress

NetworkPolicy object-store-perimeter SHALL deny internet egress from namespace object-store.

Scenario: No internet egress

  • WHEN uv run devops ci --check --only k8s runs on a fixture whose perimeter allows egress to 0.0.0.0/0.
  • THEN The row fails and names the NetworkPolicy.

Requirement: Workload security and budgets

The object-store pods SHALL use a restricted security context, each workload SHALL have a PodDisruptionBudget, and each SeaweedFS Service SHALL declare a metrics port.

Scenario: Workload security and budgets

  • WHEN kubectl -n object-store get pods,pdb,services -o json runs after the store is deployed.
  • THEN Every pod reports runAsNonRoot: true and allowPrivilegeEscalation: false, every workload has a budget, and every SeaweedFS Service has a metrics port.

Requirement: Pod counts

The object-store namespace SHALL run 3 master, 3 volume, 2 filer, 2 S3, 1 admin, 1 worker and 1 operator pods.

Scenario: Live pod counts

  • WHEN kubectl -n object-store get pods -o wide runs.
  • THEN Every pod is Running with the required counts.

Requirement: Volume placement

The 3 volume pods SHALL run on 3 different nodes, and their claims SHALL be Bound with class fast-nvme.

Scenario: Live volume placement

  • WHEN kubectl -n object-store get pods -o wide and kubectl -n object-store get pvc run.
  • THEN The 3 volume pods are on 3 different nodes, and the volume claims are Bound with class fast-nvme.

Requirement: ServiceMonitor

The change SHALL add a ServiceMonitor in k8s/object-store/ for the SeaweedFS metrics ports in namespace object-store.

Scenario: ServiceMonitor fields

  • WHEN uv run devops ci --check --only k8s renders the k8s/object-store/ kustomization.
  • THEN The row passes with a ServiceMonitor that names namespace object-store, a non-empty selector and a metrics port.

Requirement: ClusterSecret rows

CLUSTER_SECRETS SHALL hold rows for object-store/seaweedfs-admin and each JWT signing key with stack infra.

Scenario: ClusterSecret rows

  • WHEN A test imports CLUSTER_SECRETS from src/devops_cli/k8s/cluster_secrets.py.
  • THEN Rows name object-store/seaweedfs-admin and the JWT signing keys with stack infra and a generator for each value.

Requirement: Secret gate

The k8s row SHALL fail when a manifest references a Secret with no ClusterSecret row.

Scenario: Secret gate

  • WHEN uv run devops ci --check --only k8s runs on a fixture that references a Secret with no row.
  • THEN The row fails and names the Secret.

Requirement: Secret push

A person SHALL run uv run devops k8s push-secrets for object-store/seaweedfs-admin and each JWT key after namespace object-store exists.

Scenario: Admin Secret pushed

  • WHEN The person runs uv run devops k8s push-secrets --only object-store/seaweedfs-admin --plan after the push.
  • THEN The plan shows unchanged for object-store/seaweedfs-admin.

Requirement: Alerts and dashboard

The seaweedfs alert group SHALL cover the five conditions, and the SeaweedFS dashboard SHALL be in the configMapGenerator.

Scenario: Alerts and dashboard

  • WHEN promtool check rules runs on the rendered alerting_rules.yml and uv run devops ci --check --only k8s renders the dashboards kustomization.
  • THEN promtool accepts the group with an alert for each of the five conditions, and the row passes with a grafana_dashboard label of 1 for SeaweedFS.

Requirement: Placement guard

The k8s row SHALL fail when a Seaweed CR volume claim or affinity lacks the control-plane anti-affinity.

Scenario: Seaweed CR placement

  • WHEN uv run devops ci --check --only k8s runs on a fixture Seaweed CR whose volume claim has no control-plane anti-affinity.
  • THEN The row fails and names the Seaweed CR.

Requirement: Forbidden merge field

The k8s row SHALL fail when a rendered manifest holds fs.mergeVolumes.

Scenario: Forbidden field

  • WHEN uv run devops ci --check --only k8s runs on a fixture manifest that includes fs.mergeVolumes.
  • THEN The row fails and names the field.

Requirement: No Ingress host

The master, volume, filer and admin ports SHALL have no Ingress host.

Scenario: No Ingress host

  • WHEN uv run devops ci --check --only k8s renders all Ingress resources.
  • THEN The row passes with no Ingress host for the master, volume, filer or admin ports.

Requirement: Resource budget

The sum of the requests in namespace object-store SHALL be at most 1 CPU and 3 GiB of memory.

Scenario: Resource budget

  • WHEN uv run devops ci --check --only k8s renders the Seaweed CR.
  • THEN The row passes with a request sum of at most 1 CPU and 3 GiB.

Requirement: Cluster test

The object-store test script SHALL check 4 parallel 150 MB multipart uploads, one minio-go streaming upload, cross-gateway visibility, a volume-pod failure and TCP 33646 reachability.

Scenario: Cluster test

  • WHEN The object-store test script runs against the cluster.
  • THEN It reports each upload, the cross-gateway delay within 10 seconds, a successful PUT and GET with one volume pod deleted, a failed TCP connect from a files pod to 33646 and a successful one from the worker pod.

Requirement: CI row

The k8s row of devops ci SHALL pass with the new checks.

Scenario: k8s CI row

  • WHEN uv run devops ci --check --only k8s runs on the change.
  • THEN The row passes with the new placement, network policy, Secret gate, ServiceMonitor and fs.mergeVolumes checks.

Requirement: Argo CD health

The Argo CD Applications seaweedfs-operator and object-store SHALL be Synced and Healthy.

Scenario: Argo CD health

  • WHEN kubectl -n argocd get applications seaweedfs-operator object-store -o json runs after the sync.
  • THEN Both Applications report Synced and Healthy.

Requirement: Documentation

The README SHALL document node restore and the version rule, and ADR 0030 SHALL record the SeaweedFS choice.

Scenario: Documentation files

  • WHEN uv run devops ci --check --only docs runs on the change.
  • THEN The row passes with the README node-restore and version-rule sections and ADR 0030 in the ADR index.

Existing Tool Considered

seaweedfs/seaweedfs-operator (https://github.com/seaweedfs/seaweedfs-operator), Apache-2.0, last activity 2026-11-18, maintained, in use. The alternatives block of 2026-11-20 lists what the tool lacks. It reconciles the SeaweedFS masters, volume servers, filers, S3 gateway, admin and worker from one Seaweed CR, so the change writes no custom workload.

Key questions

  • Which object store and license does the change use?: Use SeaweedFS with the SeaweedFS operator. Both are Apache-2.0. CONTRIBUTING.md:24 permits Apache-2.0, MIT, BSD or a similar permissive license and forbids AGPL, SSPL and BSL, so Garage and MinIO fail. Ceph RGW adds raw-device operations. (best practice) [sources: CONTRIBUTING.md:24, https://github.com/seaweedfs/seaweedfs-operator]
    • Chosen: SeaweedFS with the SeaweedFS operator. Apache-2.0, maintained, and the operator reconciles the workloads from a Seaweed CR.
    • Rejected: Garage. AGPL-3.0 fails the permissive-license rule of CONTRIBUTING.md.
    • Rejected: MinIO. AGPL-3.0 fails the permissive-license rule of CONTRIBUTING.md.
    • Rejected: Ceph RGW. LGPL and raw devices add operational cost.
  • Does the change use the SeaweedFS operator or hand-written workloads?: Use the SeaweedFS operator. Its README (fetched 2026-11-21) says it manages the complete SeaweedFS infrastructure on Kubernetes, including the master servers, volume servers and filer services with an S3-compatible API and embedded IAM, with automatic rolling upgrades, and that the Helm chart ships the Seaweed CRD. The change writes no custom workload. (best practice) [sources: https://github.com/seaweedfs/seaweedfs-operator]
    • Chosen: SeaweedFS operator. It is Apache-2.0, maintained, and reconciles every workload from the Seaweed CR.
    • Rejected: Hand-written StatefulSets and Deployments. It adds code that the operator maintains.
  • Which SeaweedFS and operator versions does the change pin?: Follow the owner rule in CONTRIBUTING.md:35: no minimum release age. On the build day pin the newest SeaweedFS release that fixes the known security and bug issues, that the operator and chart support, and that passes the tests. Never pin 4.48 to 4.51 because they break minio-go multipart uploads; 4.52 has the fix. On 2026-11-11 that is 4.53 with operator app 1.0.44 from chart 0.1.47. Pin the image by digest. The k8s row enforces the floor and the excluded range. (best practice) [sources: CONTRIBUTING.md:35, https://github.com/seaweedfs/seaweedfs-operator]
    • Chosen: Newest supported release on the build day. The owner rule of 2026-11-11 removes the minimum release age and lets a security or bug fix ship at once.
    • Rejected: Freeze 4.53 until a later item. A frozen pin keeps later security fixes out.
    • Rejected: Two-week minimum release age. The owner removed this rule on 2026-11-11.
  • Which S3 gateway mode does the change use?: Use the standalone spec.s3 gateway with 2 replicas on port 8333, and keep S3 off the filer spec. The operator README (fetched 2026-11-21) says the operator runs the filer services with an S3-compatible API and embedded IAM and creates an Ingress for S3, so the S3 API is an operator-managed workload with its own Service rather than something the change writes. (best practice) [sources: https://github.com/seaweedfs/seaweedfs-operator]
    • Chosen: Standalone spec.s3 gateway. It keeps the S3 API in its own stateless Deployment and Service, apart from the filers and their metadata volumes.
    • Rejected: S3 in the filer. It couples the S3 API to the filer pods and their metadata volumes; the operator documents S3 as its own ingress target.
  • Where do the operator chart and ClusterSecret rows go, and who pushes the secret?: Add the SeaweedFS operator chart to HELM_REPOS_BY_STACK and HELM_RELEASES_BY_STACK under infra. Add the object-store/seaweedfs-admin row and each JWT signing key row to CLUSTER_SECRETS with stack infra. Do not add a storage stack: CONST_K8S_STACKS is infra, llm, logging, devops, gitea and chat, so deploy-stack would not push a storage row. Keep credentialsSecret: seaweedfs-admin and JWT signing. The owner merges first so Application base creates namespace object-store; the pods wait in CreateContainerConfigError. The owner then runs uv run devops k8s push-secrets --only object-store/seaweedfs-admin with one more --only for each JWT signing key Secret, and repeats --plan until each key shows unchanged. An agent then checks that the pods start and the admin API refuses a request with no credential. (best practice) [sources: src/devops_cli/commands/k8s/stack_lifecycle.py:76, src/devops_cli/commands/k8s/stack_lifecycle.py:129, src/devops_cli/config/constants.py:1218, src/devops_cli/k8s/cluster_secrets.py:220, k8s/README.md:736]
    • Chosen: Existing infra stack and owner rollout. The stack exists, so deploy-stack pushes the rows; the owner creates the namespace first.
    • Rejected: New storage stack. CONST_K8S_STACKS has no storage stack, so deploy-stack would never push the rows.
    • Rejected: No credentials. The admin HTTP API would have no authentication.
  • How does the change protect the admin gRPC port 33646?: Add NetworkPolicy object-store-perimeter that admits only worker pods on TCP 33646 and denies internet egress, and keep the admin UI reachable only through a port-forward. Advisory GHSA-3qr2-qw48-cj6q (published 2026-11-09, fetched 2026-11-21) says the worker/plugin gRPC control plane requires no authentication, binds to all interfaces and defaults to the admin HTTP port plus 10000 (33646). It lists affected versions <= 4.47 and no patched version, so the change does not rely on a fixed release and the network allow-list remains the control. (best practice) [sources: https://github.com/seaweedfs/seaweedfs/security/advisories/GHSA-3qr2-qw48-cj6q]
    • Chosen: Worker-only NetworkPolicy. The advisory says the worker gRPC control plane has no authentication and binds to all interfaces.
    • Rejected: No network policy. It leaves an unauthenticated control plane reachable from every pod in the cluster.
  • Which storage class and claim size do the volume servers use?: Use 300Gi fast-nvme claims with hostname anti-affinity across 3 nodes. fast-nvme is the local-path provisioner with reclaim policy Retain, so a deleted claim keeps its volume, and replication 001 keeps copies on other nodes. (best practice) [sources: k8s/README.md:35, k8s/README.md:455, k8s/README.md:480]
    • Chosen: 300Gi fast-nvme claims. The class keeps a volume after the claim is deleted, and the placement rule reads the claims.
    • Rejected: Default local-path claims. local-path reclaims the volume with Delete, which drops the store data with the claim.
  • Which Argo CD project holds the object-store Applications?: Use the existing homelab project. Add the SeaweedFS Helm repository to its sourceRepos and namespace object-store to its destinations. Workload Applications such as qdrant, llm and monitoring use homelab; homelab-system holds cluster-wide addons. infra is the deploy-stack and ClusterSecret stack, not a new AppProject. (best practice) [sources: k8s/argocd/apps/projects.yaml:4, k8s/argocd/apps/projects.yaml:11, k8s/argocd/apps/projects.yaml:24, k8s/argocd/apps/qdrant.yaml:9, k8s/argocd/apps/cert-manager.yaml:9]
    • Chosen: Existing homelab project. The workload Applications use homelab, and its destinations already hold each workload namespace.
    • Rejected: New storage AppProject. The repository keeps homelab and homelab-system; a third duplicates the source list and the destinations.
  • Where does the object-store namespace live?: In k8s/namespaces.yaml with Pod Security restricted and argocd.argoproj.io/sync-options: Prune=false,Delete=false, applied by Application base. (best practice) [sources: k8s/namespaces.yaml:100, k8s/namespaces.yaml:110, k8s/kustomization.yaml:5]
    • Chosen: k8s/namespaces.yaml. It is the one list of the cluster namespaces, and the sync option keeps the namespace when a sync prunes.
    • Rejected: A manifest in k8s/object-store/. Two Applications would own the namespace, and a prune of object-store could delete it with the store data.
  • Where do the SeaweedFS alerts and dashboard go?: Put the seaweedfs group in k8s/monitoring/prometheus-values.yaml under serverFiles.alerting_rules.yml, with a row per alert in the README alert table. Put the dashboard JSON in k8s/monitoring/dashboards/ and list it in the configMapGenerator. (best practice) [sources: k8s/monitoring/prometheus-values.yaml:203, k8s/monitoring/dashboards/kustomization.yaml:32, k8s/README.md:620, k8s/README.md:622]
    • Chosen: Environment rule file and dashboards generator. Environment rules live in serverFiles.alerting_rules.yml, and the Grafana sidecar loads the generated ConfigMaps.
    • Rejected: A PrometheusRule and ConfigMap in k8s/object-store/. It splits the environment rules across two owners and puts a dashboard where the generator does not read it.
  • How does the change scrape the SeaweedFS metrics?: Add a ServiceMonitor in k8s/object-store/ for the metrics ports of the SeaweedFS Services. The prometheus-operator-crds release installs the CRD, and Alloy scrapes every ServiceMonitor. (best practice) [sources: k8s/README.md:314, k8s/llm/gateway/servicemonitor.yaml:2, k8s/llm/kustomization.yaml:12]
    • Chosen: ServiceMonitor. Alloy scrapes the ServiceMonitors of the cluster services, and the infra stack installs the CRD first.
    • Rejected: Pod annotations. The operator owns the pod templates, so the change cannot keep the scrape annotations on the pods it creates.
  • How does the k8s row cover the Seaweed CR placement and the forbidden fs.mergeVolumes field?: Add both checks to the k8s row in tests/gate/k8s_checks: a reader for the Seaweed CR volume claim templates and affinity, and a check that fails on fs.mergeVolumes in any rendered manifest. uv run devops ci --check --only k8s is the proof. The placement test that fix(k8s): the placement rule fits the NVMe and covers CNPG clusters #3782 extends stays the rule for pod claims; the Seaweed CR gets its own k8s-row reader. (best practice) [sources: tests/gate/k8s.py:1, tests/gate/k8s_checks/argocd_apps.py:90, docs/TESTING.md:68, openspec/changes/3782-the-placement-rule-fits-the-nvme/proposal.md:9]
    • Chosen: Extend the k8s row. The row already renders every application and is the validator that a manifest criterion names.
    • Rejected: Extend only the core placement test. uv run devops ci test is no proof for a manifest criterion, and the k8s row already renders each application.
    • Rejected: A new standalone test file. It repeats the render and the claim readers.
  • Which ADR number records the store choice?: ADR 0030. Records 0026 to 0029 exist, so 0026 is already the OpenTofu GitHub settings ADR and 0030 is the next free number. (best practice) [sources: docs/adr/0026-github-settings-are-opentofu-code-the-owner-applies.md, docs/adr/0029-the-roadmap-service-serves-a-read-only-api.md]
    • Chosen: ADR 0030. It is the next free number after records 0026 to 0029.
    • Rejected: ADR 0026. 0026 is already the OpenTofu GitHub settings ADR.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#3782

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/k8s
    status/new
    value/high
    effort/high
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The feat prefix of the title gives the type.
    • Scope: scope/k8s. The (k8s) scope of the title gives the scope.
    • Priority: P2-Medium. Multiple projects need an S3 target, but this is a new capability rather than a fix for a broken state. The advisory GHSA-m3m8-mrgq-hf9h does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Value: High. The cluster has no object store and at least three projects depend on an S3 target for off-node copies.
    • Effort: High. The deployment spans 13 pods across 6 roles, plus monitoring, security policies, tests, docs, and an ADR.
    • Related: fix(k8s): the placement rule fits the NVMe and covers CNPG clusters #3782, which asks for a different change. Both touch NVMe storage placement on the cluster, but dan-petty/devops-cli#3782 fixes the existing local-path placement rule while the candidate adds a new placement row for the SeaweedFS storage class.
  4. added
    priority/p2-medium
    on Nov 11, 2026
  5. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Owner direction of 2026-11-11:

    not sure about the "at least two weeks old" rule, sometimes security updates and bugfixes need to be used within minues of their release, as long as the tooling supports that version, it is fine to update

    New rule: no minimum release age for dependencies, images, charts or tools. Pin the newest release that fixes the known security and bug issues and that the surrounding tools support (the tests pass).

    Body changes: the minimum release age and the hold "merges on or after 2026-11-16" are removed. The pin is the newest SeaweedFS release that the operator supports: 4.53 (2026-11-08) or newer. Releases older than 4.52 stay out, because 4.48 to 4.51 break minio-go multipart uploads (seaweedfs/seaweedfs#12177). The operator pin is app 1.0.44 or newer (its release notes show the build against SeaweedFS 4.53) from chart 0.1.47 or newer (appVersion 1.0.44). All other parts of the body did not change.

  6. devops-cli-service commented on Nov 14, 2026

    @devops-cli-service
    Contributor

    Alternatives check: in-use

    Reason: The issue already names the SeaweedFS operator (and SeaweedFS) as the chosen tool, and the GitHub facts confirm it is an open, Apache-2.0, actively maintained project that covers the need: an operator that turns a Seaweed CR into the masters, volume servers, filers, S3 gateway, admin and worker workloads. No ADR in force rejects it, so it covers the whole need of running an S3-compatible object store off the source node.

    The item already names this tool.

    Tool: seaweedfs/seaweedfs-operator (https://github.com/seaweedfs/seaweedfs-operator)

    • License: Apache-2.0
    • Last activity: 2026-11-10
    • Maintained: yes

    Covers:

    • SeaweedFS is an Apache-2.0 S3-compatible object store with masters, volume servers, filers and an S3 gateway, and replication keeps copies off the source node.
    • The SeaweedFS operator (Apache-2.0, Helm chart 0.1.47, appVersion 1.0.44) creates the StatefulSets, Deployments and Services from a Seaweed CR, so no hand-written workload is needed.
    • The operator chart ships the CRDs and the app image that the issue pins (SeaweedFS 4.53, operator 1.0.44).

    Lacks:

    • The operator does not supply the project-specific NetworkPolicy, PodDisruptionBudgets, PrometheusRule, dashboard ConfigMap or ClusterSecret rows; the issue writes those manifests itself.
    • The project still adds the k8s tests, README section and a new ADR.

    Tools considered:

    Searches run:

    • S3-compatible object store Kubernetes operator permissive license alternative to MinIO, results: 5
    • SeaweedFS operator Kubernetes S3 object store Apache-2.0, results: 5
    • SeaweedFS Kubernetes operator GitHub, results: 5
    • SeaweedFS vs MinIO vs Garage license object storage Kubernetes, results: 5
    • SeaweedFS S3 gateway filer volume server replication Kubernetes operator, results: 5

    Sources:

    Checked on 2026-11-14. A person decides what this means for the item. The check changes no label and closes no issue.

  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Owner question: How does the change keep the admin HTTP API authenticated? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 20, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Answer: keep credentialsSecret: seaweedfs-admin and JWT signing. Put the rows for seaweedfs-admin and each JWT signing key in an existing stack (infra), not storage. CONST_K8S_STACKS has no storage stack, so deploy-stack would never push those rows.

    Namespace object-store is new, and push-secrets --only stops on a missing namespace. So the rollout follows the Gitea rollout of k8s/README.md:

    1. I merge. Application base creates the namespace. The pods wait in CreateContainerConfigError.
    2. I run uv run devops k8s push-secrets --only object-store/seaweedfs-admin, with one more --only for each JWT signing key Secret.
    3. I run the same command with --plan until each key shows unchanged.
    4. An agent checks that the pods start and that the admin API refuses a request with no credential.
  10. added
    status/ready
    and removed
    status/new
    on Nov 21, 2026
  11. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Next step: the stage job writes the plan of the item. See the section Proposed design of the body.

  12. added
    owner/agent
    status/in-progress
    and removed
    status/ready
    on Nov 21, 2026
  13. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Store perimeter: admit client namespaces by the label backup-client: "true", which the tenant chart sets (dan-petty/infra#14), and not by namespace name. Then no service name goes into the store policy. A part of this item that is not merged before plan step 10 of #5134 lands in homelab (the step 12 freeze refuses changes to the old environment paths here), and its Secret rows go to homelab k8s/cluster-secrets.toml (dan-petty/homelab#96). The general settings of the SeaweedFS operator are a shared platform stack: after this item lands, a later infra item adds them as a values template, and a homelab switch follows.

  14. added
    status/in-review
    and removed
    status/in-progress
    on Nov 21, 2026
  15. removed
    status/in-review
    owner/agent
    on Nov 21, 2026
  16. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-21 23:18 UTC

  17. dan-petty commented on Nov 21, 2026

    @dan-petty
    OwnerAuthor

    Rollout and build test of the object store on 2026-11-21, after the merge of #6689 and the Secret push (--plan showed each key unchanged).

    Rollout check (k8s/README.md, Object Store, step 4): pass.

    • 13 pods Ready: 3 master, 3 volume (on 3 nodes), 2 filer, 2 S3, 1 admin, 1 worker, 1 operator. The operator reports Seaweed cluster is ready.
    • 8 claims Bound with class fast-nvme. Applications seaweedfs-operator and object-store are Synced and Healthy. No Ingress names a SeaweedFS Service. The master command line holds -telemetry=false.

    Build test.

    • Step 4: fail. The filer reaches the admin gRPC port: nc -z -w 3 seaweedfs-admin 33646 from seaweedfs-filer-0 exits 0 (want not 0); from the worker it exits 0. Cause: the network policy controller of the cluster does not apply the ingress rules of a pod when an egress rule of the source pod allows the traffic, and object-store-perimeter allows in-namespace egress on all ports. The fix is fix(k8s): narrow the in-namespace egress of the object store #6707 (P1); the same shape in 7 other namespaces is fix(k8s): an in-namespace egress allow skips the ingress rules #6708.
    • Step 5: pass. With no credential, the admin UI root answers 307 to /login and /api/cluster/topology answers 401. An unsigned request to a gateway answers 403.
    • Steps 1 to 3 and 6 need the temporary identity build-test from the admin UI and its keys, so they are person steps. No namespace has the label backup-client: "true" yet, so no pod outside the namespace reaches the S3 gateway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/highpriority/p2-mediumscope/k8ssource/agenttype/featurevalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions