Skip to content

chore: Kustomize k8s restructure, API image v0.19 - #24

Open
surrealwolf wants to merge 3 commits into
mainfrom
chore/k8s-kustomize-image-v0.19
Open

chore: Kustomize k8s restructure, API image v0.19#24
surrealwolf wants to merge 3 commits into
mainfrom
chore/k8s-kustomize-image-v0.19

Conversation

@surrealwolf

@surrealwolf surrealwolf commented Feb 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Restructure k8s manifests with Kustomize, update API image, and fix pooler/poller connection issues.

Changes

Kustomize structure

  • base/ – components: api, ui, poller, postgres, gateway, mcp, cloudflare
  • overlays/default/ – default overlay
  • docs/ – CLOUDFLARE_TUNNEL.md

Image updates

  • API blue/green: v0.17 → v0.21
  • Poller: v0.17 → v0.22 (requires high-command-api#35 for POOL_MAX_CONN)

Pooler fixes

  • Hostname: high-command-postgres-pooler (not -pooler-rw) – CloudNativePG service name
  • max_client_conn: 500 (for 6 API pods + poller)
  • POOL_MAX_CONN: 100 for poller (configurable pool size)

Secrets examples

  • Updated README and examples with correct pooler hostname

Deploy

kubectl apply -k overlays/default

surrealwolf and others added 3 commits February 8, 2026 21:05
- Use /api/livez for liveness (lightweight, no DB) to avoid SIGKILL on slow health
- Increase memory limit 1Gi -> 2Gi to reduce OOM risk
- Increase probe timeouts: liveness 5s->10s, readiness 3s->10s
- Increase readiness failureThreshold 2->3
- Bump API image to v0.17

Co-authored-by: Cursor <cursoragent@cursor.com>
- Restructure k8s/ with base/ and overlays/default
- Organize by component: api, ui, poller, postgres, gateway, mcp, cloudflare
- Add kustomization.yaml for each component
- Update API and poller image to v0.19
- Move CLOUDFLARE_TUNNEL.md to docs/
- Deploy with: kubectl apply -k overlays/default

Co-authored-by: Cursor <cursoragent@cursor.com>
- Fix pooler hostname: high-command-postgres-pooler (not -pooler-rw)
- Increase PgBouncer max_client_conn to 500 for 6 API pods + poller
- Add POOL_MAX_CONN=100 to poller for burst workload
- Bump API/poller image to v0.22
- Update README and secrets examples with correct hostname

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant