Split lingo in 2

This commit is contained in:
Ruben Hensen
2026-02-02 19:50:47 +01:00
parent 491cec54bc
commit 99c396600f
3 changed files with 26 additions and 3 deletions
+14 -2
View File
@@ -17,8 +17,20 @@ spec:
app: lingo
spec:
containers:
- image: ghcr.io/rubenhensen/lingo:master
name: lingo
- image: ghcr.io/rubenhensen/lingo-api:master
name: lingo-api
ports:
- containerPort: 8000
protocol: TCP
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
- image: ghcr.io/rubenhensen/lingo-frontend:master
name: lingo-frontend
ports:
- containerPort: 8001
protocol: TCP
+8
View File
@@ -5,12 +5,20 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: lingo.hensen.io
http:
paths:
- path: /api(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: lingo
port:
number: 8000
- path: /
pathType: Prefix
backend:
+4 -1
View File
@@ -6,7 +6,10 @@ metadata:
name: lingo
spec:
ports:
- name: "8001"
- name: "api"
port: 8000
targetPort: 8000
- name: "frontend"
port: 8001
targetPort: 8001
selector: