Branding: bulk rename across 50+ files (Go, JS, CSS, HTML, YAML, JSON, shell scripts). Fix Helm chart description and git repo URLs. Fix test helper taglines. Admin surface: strip 14 gutted tabs (providers, models, personas, roles, knowledge, memory, tasks, health, routing, capabilities, channels, dashboard, usage, stats). Collapse to 4 categories: People, Workflows, System, Monitoring. Settings surface: strip 11 gutted tabs (models, personas, providers, roles, knowledge, memory, usage, workflows, tasks, data, gitkeys). Keep: general, appearance, profile, teams, connections, notifications. Team-admin surface: strip 5 gutted tabs (personas, providers, knowledge, tasks, usage). Keep: members, groups, connections, workflows, settings, activity. Components: delete chat-pane/ (13 files, 1938 lines) and notes-pane/ (10 files, 2381 lines). main.go: remove stale Health.Prune maintenance goroutine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
100 lines
2.4 KiB
YAML
100 lines
2.4 KiB
YAML
# k8s/frontend.yaml
|
|
# ============================================
|
|
# Switchboard Core - Frontend Deployment
|
|
# ============================================
|
|
# nginx serving the SPA + proxying page routes
|
|
# to the backend for Go template rendering.
|
|
#
|
|
# v0.22.6+: BACKEND_URL enables proxy_pass for
|
|
# /, /login, /admin, /editor, /notes, /settings.
|
|
# ============================================
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: switchboard-fe${DEPLOY_SUFFIX}
|
|
namespace: ${NAMESPACE}
|
|
labels:
|
|
app: switchboard
|
|
component: frontend
|
|
env: ${ENVIRONMENT}
|
|
spec:
|
|
replicas: ${FE_REPLICAS}
|
|
selector:
|
|
matchLabels:
|
|
app: switchboard
|
|
component: frontend
|
|
env: ${ENVIRONMENT}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: switchboard
|
|
component: frontend
|
|
env: ${ENVIRONMENT}
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: ${FE_IMAGE}:${IMAGE_TAG}
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
env:
|
|
- name: BASE_PATH
|
|
value: "${BASE_PATH}"
|
|
- name: ENVIRONMENT
|
|
value: "${ENVIRONMENT}"
|
|
- name: BACKEND_URL
|
|
value: "http://switchboard-be${DEPLOY_SUFFIX}:8080"
|
|
volumeMounts:
|
|
- name: branding
|
|
mountPath: /branding
|
|
readOnly: true
|
|
resources:
|
|
requests:
|
|
memory: "${FE_MEMORY_REQUEST}"
|
|
cpu: "${FE_CPU_REQUEST}"
|
|
limits:
|
|
memory: "${FE_MEMORY_LIMIT}"
|
|
cpu: "${FE_CPU_LIMIT}"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 80
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 80
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
volumes:
|
|
- name: branding
|
|
configMap:
|
|
name: switchboard-branding
|
|
optional: true
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: switchboard-fe${DEPLOY_SUFFIX}
|
|
namespace: ${NAMESPACE}
|
|
labels:
|
|
app: switchboard
|
|
component: frontend
|
|
env: ${ENVIRONMENT}
|
|
spec:
|
|
selector:
|
|
app: switchboard
|
|
component: frontend
|
|
env: ${ENVIRONMENT}
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
name: http
|