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 |
Woojoong Kim | d3c132c | 2020-08-26 14:46:47 -0700 | [diff] [blame] | 6 | |
| 7 | */ -}} |
| 8 | |
| 9 | --- |
| 10 | apiVersion: v1 |
| 11 | kind: Service |
| 12 | metadata: |
| 13 | name: tb-web-ui |
| 14 | spec: |
| 15 | type: ClusterIP |
| 16 | selector: |
| 17 | app: tb-web-ui |
| 18 | ports: |
| 19 | - port: {{ .Values.config.webUi.port }} |
| 20 | name: http |
| 21 | |
| 22 | --- |
| 23 | apiVersion: v1 |
| 24 | kind: Service |
| 25 | metadata: |
| 26 | name: tb-web-ui-external |
| 27 | spec: |
| 28 | type: NodePort |
| 29 | selector: |
| 30 | app: tb-web-ui |
| 31 | ports: |
| 32 | {{- if .Values.config.webUi.nodePort.enabled }} |
| 33 | - port: {{ .Values.config.webUi.port }} |
| 34 | name: http |
| 35 | protocol: TCP |
| 36 | nodePort: {{ .Values.config.webUi.nodePort.port }} |
| 37 | {{- end }} |