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 | --- |
| 11 | apiVersion: v1 |
| 12 | kind: Service |
| 13 | metadata: |
| 14 | name: tb-web-ui |
| 15 | spec: |
| 16 | type: ClusterIP |
| 17 | selector: |
| 18 | app: tb-web-ui |
| 19 | ports: |
| 20 | - port: {{ .Values.config.webUi.port }} |
| 21 | name: http |
| 22 | |
| 23 | --- |
| 24 | apiVersion: v1 |
| 25 | kind: Service |
| 26 | metadata: |
| 27 | name: tb-web-ui-external |
| 28 | spec: |
| 29 | type: NodePort |
| 30 | selector: |
| 31 | app: tb-web-ui |
| 32 | ports: |
| 33 | {{- if .Values.config.webUi.nodePort.enabled }} |
| 34 | - port: {{ .Values.config.webUi.port }} |
| 35 | name: http |
| 36 | protocol: TCP |
| 37 | nodePort: {{ .Values.config.webUi.nodePort.port }} |
| 38 | {{- end }} |