feat: single-port architecture and browser warning fixes (#390)
This commit is contained in:
@@ -16,8 +16,3 @@ data:
|
||||
|
||||
# Logging — auto-detects K8s and uses JSON format
|
||||
KANDEV_LOG_LEVEL: info
|
||||
|
||||
# Public URL — set when behind a reverse proxy / ingress that serves both
|
||||
# web and API on the same domain. Without this, the UI tries to reach the
|
||||
# backend API on port 8080 directly, which fails behind a proxy.
|
||||
# KANDEV_PUBLIC_URL: "https://kandev.example.com"
|
||||
|
||||
@@ -24,9 +24,6 @@ spec:
|
||||
- name: backend
|
||||
containerPort: 8080
|
||||
protocol: TCP
|
||||
- name: web
|
||||
containerPort: 3000
|
||||
protocol: TCP
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: kandev-config
|
||||
|
||||
+1
-24
@@ -18,33 +18,10 @@ spec:
|
||||
- host: kandev.example.com
|
||||
http:
|
||||
paths:
|
||||
# Backend API + WebSocket
|
||||
- path: /api
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kandev
|
||||
port:
|
||||
name: backend
|
||||
- path: /ws
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kandev
|
||||
port:
|
||||
name: backend
|
||||
- path: /health
|
||||
pathType: Exact
|
||||
backend:
|
||||
service:
|
||||
name: kandev
|
||||
port:
|
||||
name: backend
|
||||
# Web UI (catch-all)
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: kandev
|
||||
port:
|
||||
name: web
|
||||
name: http
|
||||
|
||||
+1
-5
@@ -9,11 +9,7 @@ spec:
|
||||
selector:
|
||||
app: kandev
|
||||
ports:
|
||||
- name: backend
|
||||
- name: http
|
||||
port: 8080
|
||||
targetPort: backend
|
||||
protocol: TCP
|
||||
- name: web
|
||||
port: 3000
|
||||
targetPort: web
|
||||
protocol: TCP
|
||||
|
||||
Reference in New Issue
Block a user