From 99c396600f7adb4378b3c2328753741726fe8781 Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Mon, 2 Feb 2026 19:50:47 +0100 Subject: [PATCH] Split lingo in 2 --- lingo/lingo-deployment.yaml | 16 ++++++++++++++-- lingo/lingo-ingress.yaml | 8 ++++++++ lingo/lingo-service.yaml | 5 ++++- 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/lingo/lingo-deployment.yaml b/lingo/lingo-deployment.yaml index 7f307d5..6f90579 100644 --- a/lingo/lingo-deployment.yaml +++ b/lingo/lingo-deployment.yaml @@ -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 diff --git a/lingo/lingo-ingress.yaml b/lingo/lingo-ingress.yaml index 12834d1..079b8e4 100644 --- a/lingo/lingo-ingress.yaml +++ b/lingo/lingo-ingress.yaml @@ -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: diff --git a/lingo/lingo-service.yaml b/lingo/lingo-service.yaml index af09b31..3a3736e 100644 --- a/lingo/lingo-service.yaml +++ b/lingo/lingo-service.yaml @@ -6,7 +6,10 @@ metadata: name: lingo spec: ports: - - name: "8001" + - name: "api" + port: 8000 + targetPort: 8000 + - name: "frontend" port: 8001 targetPort: 8001 selector: