From 394b384f4979390e4752c47d6c46481cf4499a5d Mon Sep 17 00:00:00 2001 From: Nils Stinnesbeck Date: Thu, 19 Nov 2026 11:09:22 +0100 Subject: [PATCH] k8s: image 960a6e6 and its digest (metrics) Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw --- SPECS.md | 2 +- k8s/base/kustomization.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SPECS.md b/SPECS.md index b104eb5..531bb7c 100644 --- a/SPECS.md +++ b/SPECS.md @@ -118,7 +118,7 @@ in the middle. | Fast proof-of-work miner (`internal/pow/mine.go`), default difficulty 24 for listings, reports and revocations | done; **network-wide change**: nodes still at 16 and nodes at 24 exchange no listings | | Abuse limits: per-peer gossip rate and ban (`internal/p2p/guard.go`), sync stream limits, 100 listings per author, 16 inbound connections per public IP, 600 API requests a minute per client, trusted proxies for `X-Forwarded-For` | done, tested, simulated | | Packaging: Dockerfile, Nix flake and module, `make image` | done | -| Kubernetes bootstrap node (`k8s/`, kustomize, Traefik IngressRoute; `DIFFICULTY`, `REGION`, `TRUSTED_PROXY` in `config.env`) | written and **deployed by the owner**. The manifest now pins image `85c26ad` (digest in `kustomization.yaml`, pushed 2026-11-19), which has everything above, peer exchange, the faster anti-entropy, recovery of own listings, `synchronous=NORMAL`, batched sync storage, the idle sync timeout and the "Invite someone" page included; whether it is applied is the owner's to say, and the previously running image is older than digest sync, anti-entropy and reports | +| Kubernetes bootstrap node (`k8s/`, kustomize, Traefik IngressRoute; `DIFFICULTY`, `REGION`, `TRUSTED_PROXY` in `config.env`) | written and **deployed by the owner**. The manifest now pins image `960a6e6` (digest in `kustomization.yaml`, pushed 2026-11-19), which has everything above, peer exchange, the faster anti-entropy, recovery of own listings, `synchronous=NORMAL`, batched sync storage, the idle sync timeout, the "Invite someone" page and the metrics port (9090, inside the cluster only) included; whether it is applied is the owner's to say, and the previously running image is older than digest sync, anti-entropy and reports | | Load tool `cmd/allmende-load` (signed invented listings into a data directory, mining-time measurement) and `scripts/fake-listings.mjs` | done. A 100,000-listing capacity test was started and **dropped on purpose** (owner: not a goal now); the limits noticed on the way are `maxSyncPages` 200 × page 500, `syncTimeout` 2 minutes, a `ListingDigest` that scans a whole region, one SQLite connection | | Network simulator `cmd/allmende-sim`: 100-300 real nodes, latency, connection loss, attackers, seeds down, repair (results in docs/PROTOCOL.md) | done | | Tests: Go (`-race`), web (`node:test` + jsdom), end-to-end with real binaries (`make e2e`) | all passing | diff --git a/k8s/base/kustomization.yaml b/k8s/base/kustomization.yaml index e324d75..a6cd77d 100644 --- a/k8s/base/kustomization.yaml +++ b/k8s/base/kustomization.yaml @@ -27,12 +27,12 @@ configMapGenerator: images: - name: allmende newName: git.stinnesbeck.com/nils/allmende - newTag: 85c26ad # the commit the image was built from; `make image` pushes and prints the next one + newTag: 960a6e6 # the commit the image was built from; `make image` pushes and prints the next one # The digest is what the cluster pulls (the tag above is for people: a tag can # be overwritten in the registry, a digest cannot). Change both together; get # the digest after pushing with: podman pull --policy=always : && # podman image inspect --format '{{.Digest}}' : - digest: sha256:97ee728d464c949429bd37270a7f8d60818a0bc030c6be39e4d82e0a735fd6cf + digest: sha256:b5e56d3c39548cffcaa5ae8c2ef6cf67faf76e115ce6cc60fd268b1eca8fb29b labels: - pairs: