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
|
app: lingo
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: ghcr.io/rubenhensen/lingo:master
|
- image: ghcr.io/rubenhensen/lingo-api:master
|
||||||
name: lingo
|
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:
|
ports:
|
||||||
- containerPort: 8001
|
- containerPort: 8001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
|||||||
@@ -5,12 +5,20 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
cert-manager.io/cluster-issuer: prod-cluster-issuer
|
||||||
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
nginx.ingress.kubernetes.io/ssl-passthrough: "false"
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /$2
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
rules:
|
rules:
|
||||||
- host: lingo.hensen.io
|
- host: lingo.hensen.io
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
|
- path: /api(/|$)(.*)
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: lingo
|
||||||
|
port:
|
||||||
|
number: 8000
|
||||||
- path: /
|
- path: /
|
||||||
pathType: Prefix
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
|
|||||||
@@ -6,7 +6,10 @@ metadata:
|
|||||||
name: lingo
|
name: lingo
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "8001"
|
- name: "api"
|
||||||
|
port: 8000
|
||||||
|
targetPort: 8000
|
||||||
|
- name: "frontend"
|
||||||
port: 8001
|
port: 8001
|
||||||
targetPort: 8001
|
targetPort: 8001
|
||||||
selector:
|
selector:
|
||||||
|
|||||||
Reference in New Issue
Block a user