unify k8s naming: drop be/fe split, single switchboard deployment
All checks were successful
CI/CD / detect-changes (push) Successful in 4s
CI/CD / test-frontend (push) Successful in 5s
CI/CD / test-go-pg (push) Successful in 2m0s
CI/CD / test-sqlite (push) Successful in 2m35s
CI/CD / build-and-deploy (push) Successful in 30s

- k8s/backend.yaml → k8s/switchboard.yaml (already renamed)
- Deployment/Service name: switchboard-be → switchboard
- Removed component:backend labels (single image, no component split)
- Ingress: all paths route to switchboard service on :8080
- CI: updated manifest render, apply, and rollout references
- Removed stale extractor sidecar and extraction env vars
- Updated CHANGELOG and ROADMAP with CI fixes and design decisions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-26 12:45:14 +00:00
parent 23a30cc6a8
commit 2dabbca5ed
5 changed files with 43 additions and 76 deletions

View File

@@ -13,7 +13,7 @@
#
# BASE_PATH is empty for prod, "/test" or "/dev" for others.
# Backend handles BASE_PATH via r.Group(cfg.BasePath).
# Frontend entrypoint injects BASE_PATH into nginx + HTML.
# Single unified image serves both API and static assets.
# ============================================
apiVersion: networking.k8s.io/v1
kind: Ingress
@@ -36,36 +36,11 @@ spec:
- host: "${DEPLOY_HOST}"
http:
paths:
# API routes → backend
- path: ${BASE_PATH}/api
pathType: Prefix
backend:
service:
name: switchboard-be${DEPLOY_SUFFIX}
port:
number: 8080
# Health check → backend
- path: ${BASE_PATH}/health
pathType: Prefix
backend:
service:
name: switchboard-be${DEPLOY_SUFFIX}
port:
number: 8080
# WebSocket → backend (must be Prefix, not Exact — Traefik's Exact
# doesn't reliably win over Prefix rules in the same Ingress resource)
- path: ${BASE_PATH}/ws
pathType: Prefix
backend:
service:
name: switchboard-be${DEPLOY_SUFFIX}
port:
number: 8080
# Everything else under this prefix → frontend
# All traffic → switchboard (unified image)
- path: ${BASE_PATH}/
pathType: Prefix
backend:
service:
name: switchboard-fe${DEPLOY_SUFFIX}
name: switchboard${DEPLOY_SUFFIX}
port:
number: 80
number: 8080