Deploy to n97-mini: systemd unit, nginx route, port 8310/8320, K3s pod #16
Labels
No labels
area/api
area/bridge
area/db
area/docs
area/ops
area/web
kind/bug
kind/chore
kind/feature
kind/spike
prio/p0
prio/p1
prio/p2
prio/p3
status/blocked
status/decision
status/needs-info
type/question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: sscoble/posts#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Without deployment, the in-memory store is local-only. The deployment shape (replica count, pod size) is deferred to VOPR (see #14). Initial deploy: 1 replica, default K3s pod sizing, GETs to
os.scoble.me/posts/api/*andos.scoble.me/posts/mcp/*.What to do
cd ~/projects/posts && nix build && cp result/bin/posts ~/.local/bin/posts.~/.config/systemd/user/posts.service:Type=simpleExecStart=/home/sscoble/.local/bin/postsEnvironment=POSTS_FLUSH_INTERVAL=5mEnvironment=POSTS_COLD_PATH=/mnt/nas/posts-coldEnvironment=ADDR=:8310(REST)Environment=MCP_ADDR=:8320Restart=always,RestartSec=5WantedBy=default.target"/posts/" = { proxyPass = "http://127.0.0.1:8310/"; ... };to/etc/nixos/modules/meos-gateway.nixandnixos-rebuild switch.k3s-cluster-opsskill): one replica initially, sizing TBD from VOPR.GET /api/healthzreturns 200/mnt/nas/posts-coldmounted with the existing NAS credentials, write access for thepostsuser.Open questions for Scott
terminationGracePeriodSeconds. Default 30s. Flush should complete well under that. Verify in #12.Acceptance
systemctl --user status postsshowsactive (running)curl https://os.scoble.me/posts/api/healthzreturns 200get_post(cross-surface visibility)kill -9: restart restores from latest cold Parquetnixos-rebuild switch: nginx route persistskill -TERM: zero mutation loss (verified by #12)Closed by dispatch system (c2328)
Subagent completed deployment artifacts for n97-mini. K3s deployment YAML + COS dispatcher bridge.
Delivered: K3s Deployment (1 replica, nodeSelector, 30s grace, hostPath volume, REST+MCP ports), Service (ClusterIP), COS dispatch bridge (poll loop, opt-in/always/never repo handling, closed-issue comment, clean stop). Tests cover all dispatch modes and edge cases.
Code is in working tree (uncommitted).