Woojoong Kim | d3c132c | 2020-08-26 14:46:47 -0700 | [diff] [blame] | 1 | {{- /* |
| 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 Moon | dea0cb5 | 2021-02-19 16:53:22 -0800 | [diff] [blame] | 11 | apiVersion: networking.k8s.io/v1 |
Woojoong Kim | d3c132c | 2020-08-26 14:46:47 -0700 | [diff] [blame] | 12 | kind: Ingress |
| 13 | metadata: |
| 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" |
| 20 | spec: |
| 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 Moon | dea0cb5 | 2021-02-19 16:53:22 -0800 | [diff] [blame] | 63 | servicePort: {{ .Values.config.webUi.port }} |