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

@@ -1,6 +1,6 @@
# k8s/backend.yaml
# k8s/switchboard.yaml
# ============================================
# Switchboard Core - Backend Deployment
# Switchboard Core - Deployment
# ============================================
# Secrets:
# switchboard-db-credentials - POSTGRES_USER, POSTGRES_PASSWORD
@@ -16,8 +16,6 @@
# STORAGE_CLASS - StorageClass for PVC (e.g. "cephfs")
# STORAGE_SIZE - PVC size (e.g. "10Gi" for PVC, "1Gi" for S3)
# STORAGE_BACKEND - "pvc" or "s3" (default: "pvc")
# EXTRACTION_CONCURRENCY - Max concurrent extractions (default "3")
# EXTRACTOR_IMAGE - Sidecar image (LibreOffice headless)
#
# S3 secrets (Gitea Secrets — only when STORAGE_BACKEND=s3):
# S3_ENDPOINT - e.g. "http://minio:9000" or Ceph RGW URL
@@ -32,28 +30,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: switchboard-be${DEPLOY_SUFFIX}
name: switchboard${DEPLOY_SUFFIX}
namespace: ${NAMESPACE}
labels:
app: switchboard
component: backend
env: ${ENVIRONMENT}
spec:
replicas: ${BE_REPLICAS}
replicas: ${REPLICAS}
selector:
matchLabels:
app: switchboard
component: backend
env: ${ENVIRONMENT}
template:
metadata:
labels:
app: switchboard
component: backend
env: ${ENVIRONMENT}
spec:
containers:
- name: backend
- name: switchboard
image: ${IMAGE}:${IMAGE_TAG}
imagePullPolicy: Always
ports:
@@ -121,10 +116,6 @@ spec:
value: "${STORAGE_BACKEND}"
- name: STORAGE_PATH
value: "/data/storage"
- name: EXTRACTION_MODE
value: "sidecar"
- name: EXTRACTION_CONCURRENCY
value: "${EXTRACTION_CONCURRENCY}"
# S3 storage (optional — only used when STORAGE_BACKEND=s3)
- name: S3_ENDPOINT
valueFrom:
@@ -191,29 +182,6 @@ spec:
timeoutSeconds: 5
failureThreshold: 3
# Extractor sidecar (v0.12.0 Phase 2):
# Uncomment when switchboard-extractor image is built.
# See DESIGN-0.12.0.md — Phase 2: Extraction Pipeline.
#
# - name: extractor
# image: ${EXTRACTOR_IMAGE}:${IMAGE_TAG}
# imagePullPolicy: Always
# env:
# - name: STORAGE_PATH
# value: "/data/storage"
# - name: EXTRACTION_CONCURRENCY
# value: "${EXTRACTION_CONCURRENCY}"
# volumeMounts:
# - name: storage
# mountPath: /data/storage
# resources:
# requests:
# memory: "256Mi"
# cpu: "100m"
# limits:
# memory: "1Gi"
# cpu: "1000m"
volumes:
- name: storage
persistentVolumeClaim:
@@ -222,16 +190,14 @@ spec:
apiVersion: v1
kind: Service
metadata:
name: switchboard-be${DEPLOY_SUFFIX}
name: switchboard${DEPLOY_SUFFIX}
namespace: ${NAMESPACE}
labels:
app: switchboard
component: backend
env: ${ENVIRONMENT}
spec:
selector:
app: switchboard
component: backend
env: ${ENVIRONMENT}
ports:
- protocol: TCP