feat: add production k3s deployment
This commit is contained in:
1 parent
6b74dfa70f
commit
16407cd208
3 files changed
+206
-2
No files matched your search
@@ -5,7 +5,7 @@
|
||||
- [`Dockerfile`](./Dockerfile): Python 3.12 runtime image for the calculator web service and shared static assets.
|
||||
- [`app/`](./app): calculation domain, report templates, JSON API, HTTP server, and VK Bots Long Poll adapter.
|
||||
- [`web/`](./web): calculator frontend plus legacy CatWar userscript assets.
|
||||
- [`deploy/k8s/`](./deploy/k8s): not-yet-applied namespace, web/bot Deployments, ClusterIP Service, and Secret example.
|
||||
- [`deploy/k8s/`](./deploy/k8s): namespace and production web/bot/PostgreSQL manifests.
|
||||
- [`tests/`](./tests): standard-library unit tests for calculation, reports, API, and VK parsing.
|
||||
- [`docs/staging/`](./docs/staging): working specification and implementation plan for the Belki calculator.
|
||||
- [`AGENTS.md`](./AGENTS.md): repo-specific instructions for future coding agents.
|
||||
@@ -28,7 +28,7 @@
|
||||
- VK photo attachments received during an active dialog are normalized into `input.attachments` and persisted with the calculation; `/admin` renders their thumbnails. With `BELKI_IMAGE_HOST_API_URL`, the bot mirrors each photo through image-hosting-web and stores `mirror_url`; Google Sheets export remains deferred.
|
||||
- `/admin` and `/api/admin/calculations` expose the calculation history for review. The API requires `X-Admin-Password` matching `BELKI_ADMIN_PASSWORD`; the web page supports sorting by kitten ID or name and does not persist the password in browser storage.
|
||||
- VK `messages.send` responses include a serialized context-aware keyboard; button payloads are translated back into the same dialog commands, while text commands remain supported.
|
||||
- No k3s deployment or cluster state change has been made. The SSH tunnel used for read-only service inventory was stopped.
|
||||
- Production k3s deployment (2026-08-16): namespace `belki` runs the web calculator, VK bot, and PostgreSQL 16 on a Longhorn 2 GiB PVC. The web LoadBalancer has MetalLB IP `10.12.0.212`; external Nginx should proxy `cat.nyan404.ru/belki` to this address. The image is `reg.nyan404.ru/cwshed-clone/belki:6b74dfa` (pushed as `latest` too). PostgreSQL is mirrored as `reg.nyan404.ru/library/postgres:16-alpine-amd64` because cluster nodes cannot pull Docker Hub directly. Registry pull credentials and runtime secrets are created out-of-band in the `belki` namespace.
|
||||
- Remote runner host: `root@10.3.1.236` (`docker-03.homelab.local`), GitLab Runner `stage-zone-runner`, Docker executor, privileged, with `docker:29.6.1-dind` as the service image.
|
||||
- 2026-08-16 `prevent-eol` check: `python:3.12-slim` is currently maintained through 2028-10-31; Docker `29.6.1-cli` was `unknown` to the EOL catalog (no finding). Docker/CI references remain tag-pinned rather than digest-pinned.
|
||||
|
||||
@@ -38,3 +38,4 @@
|
||||
- 2026-08-16: added the Belki calculator domain, report templates, local web form, VK Long Poll adapter, and draft k3s manifests. Deployment remains intentionally deferred.
|
||||
- 2026-08-16: made bulk entry conversational and separator-free; added API/web inspection and clarification flow.
|
||||
- 2026-08-16: rewrote VK help, welcome, and web hints as a concise neutral FAQ; command behavior is unchanged.
|
||||
- 2026-08-16: added the calculator/VK links to the CatWar home page and deployed the calculator stack to k3s; MetalLB assigned `10.12.0.212`.
|
||||
Reference in new issue
Block a user