blob: 2d885bf30692db0d6928dc56cbab148cd80d7fc4 [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---
11apiVersion: networking.k8s.io/v1beta1
12kind: 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
63 servicePort: {{ .Values.config.webUi.port }}