Skip to content
Snippets Groups Projects
Commit d5c40bc9 authored by Steffen Vogel's avatar Steffen Vogel :santa_tone2:
Browse files

Update ingress-new.yaml

parent 09aa656e
No related branches found
No related tags found
No related merge requests found
......@@ -9,62 +9,55 @@ metadata:
cert-manager.io/cluster-issuer: letsencrypt-prod
eonerc.rwth-aachen.de/description: VILLASweb
eonerc.rwth-aachen.de/link: https://git.rwth-aachen.de/acs/public/villas/VILLASweb
nginx.ingress.kubernetes.io/rewrite-target: /$1
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
tls:
- hosts:
- villas-new.k8s.eonerc.rwth-aachen.de
secretName: letsencrypt-prod-villas-demo-new
rules:
- host: villas-new.k8s.eonerc.rwth-aachen.de
http:
paths:
- path: /
backend:
- backend:
serviceName: frontend-new
servicePort: http
- path: /api/
backend:
path: /.*
pathType: ImplementationSpecific
- backend:
serviceName: frontend-new
servicePort: http
path: /(static/.*)
pathType: ImplementationSpecific
- backend:
serviceName: backend-go
servicePort: http
- path: /rabbitmq/
backend:
path: /(api/.*)
pathType: ImplementationSpecific
- backend:
serviceName: broker
servicePort: web-admin
- path: /swagger/
backend:
path: /(rabbitmq/.*)
pathType: ImplementationSpecific
- backend:
serviceName: backend-go
servicePort: http
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: demo-rewrite-new
labels:
app.kubernetes.io/part-of: villas-web
annotations:
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
eonerc.rwth-aachen.de/description: VILLASweb
eonerc.rwth-aachen.de/link: https://git.rwth-aachen.de/acs/public/villas/VILLASweb
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
tls:
- hosts:
- villas-new.k8s.eonerc.rwth-aachen.de
secretName: letsencrypt-prod-villas-demo-new
rules:
- host: villas-new.k8s.eonerc.rwth-aachen.de
http:
paths:
- path: /ws/relay(/|$)(.*)
backend:
path: /(swagger/.*)
pathType: ImplementationSpecific
- backend:
serviceName: relay
servicePort: http
- path: /ws(/|$)(.*)
backend:
path: /ws/relay/(.*)
pathType: ImplementationSpecific
- backend:
serviceName: node
servicePort: http
- path: /mockup(/|$)(.*)
backend:
path: /ws/(.*)
pathType: ImplementationSpecific
- backend:
serviceName: node
servicePort: http
path: /mockup/(.*)
pathType: ImplementationSpecific
tls:
- hosts:
- villas-new.k8s.eonerc.rwth-aachen.de
secretName: letsencrypt-prod-villas-demo-new
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment