blob: 90a6b5cb014d1faa81969326217e1efedcffb0ca [file] [log] [blame]
Woojoong Kimd3c132c2020-08-26 14:46:47 -07001{{- /*
2
3# Copyright 2020-present Open Networking Foundation
4#
5# SPDX-License-Identifier: Apache-2.0
6# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
7
8*/ -}}
9
10---
Hyunsun Moondea0cb52021-02-19 16:53:22 -080011apiVersion: networking.k8s.io/v1
Woojoong Kimd3c132c2020-08-26 14:46:47 -070012kind: Ingress
13metadata:
14 name: tb-ingress
15 annotations:
16 nginx.ingress.kubernetes.io/use-regex: "true"
17 nginx.ingress.kubernetes.io/ssl-redirect: "false"
18 nginx.ingress.kubernetes.io/proxy-read-timeout: "3600"
19 nginx.ingress.kubernetes.io/default-backend: "default-http-backend:33800"
20spec:
21 rules:
22 - http:
23 paths:
24 - path: /api/v1/.*
25 backend:
26 serviceName: tb-http-transport
27 servicePort: {{ .Values.config.transports.http.port }}
28 - path: /api/.*
29 backend:
30 serviceName: tb-node
31 servicePort: {{ .Values.config.tbNode.ports.http }}
32 - path: /swagger.*
33 backend:
34 serviceName: tb-node
35 servicePort: {{ .Values.config.tbNode.ports.http }}
36 - path: /webjars.*
37 backend:
38 serviceName: tb-node
39 servicePort: {{ .Values.config.tbNode.ports.http }}
40 - path: /v2/.*
41 backend:
42 serviceName: tb-node
43 servicePort: {{ .Values.config.tbNode.ports.http }}
44 - path: /static/rulenode/.*
45 backend:
46 serviceName: tb-node
47 servicePort: {{ .Values.config.tbNode.ports.http }}
48 - path: /oauth2/.*
49 backend:
50 serviceName: tb-node
51 servicePort: {{ .Values.config.tbNode.ports.http }}
52 - path: /login/oauth2/.*
53 backend:
54 serviceName: tb-node
55 servicePort: {{ .Values.config.tbNode.ports.http }}
56 - path: /
57 backend:
58 serviceName: tb-web-ui
59 servicePort: {{ .Values.config.webUi.port }}
60 - path: /.*
61 backend:
62 serviceName: tb-web-ui
Hyunsun Moondea0cb52021-02-19 16:53:22 -080063 servicePort: {{ .Values.config.webUi.port }}