mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
Split lingo in 2
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -6,7 +6,10 @@ metadata:
|
||||
name: lingo
|
||||
spec:
|
||||
ports:
|
||||
- name: "8001"
|
||||
- name: "api"
|
||||
port: 8000
|
||||
targetPort: 8000
|
||||
- name: "frontend"
|
||||
port: 8001
|
||||
targetPort: 8001
|
||||
selector:
|
||||
|
||||
Reference in New Issue
Block a user