Configure nginx ingress and routing

This commit is contained in:
2021-06-16 22:21:15 +02:00
parent 391683831f
commit 4d30f79900
7 changed files with 27 additions and 15 deletions
+21 -6
View File
@@ -2,11 +2,26 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dse2021-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/add-base-url: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/service-upstream: "true"
spec:
rules:
- host:
http:
paths:
- backend:
serviceName: controlcenter
servicePort: 80
- http:
paths:
- path: /(.+)
pathType: ImplementationSpecific
backend:
service:
name: controlcenter
port:
number: 80
- path: /xway/(.+)
pathType: ImplementationSpecific
backend:
service:
name: xway
port:
number: 5004