blob: 1837a75316526146436389e80fec00c78c2ee896 [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: v1
12kind: Service
13metadata:
14 name: tb-web-ui
15spec:
16 type: ClusterIP
17 selector:
18 app: tb-web-ui
19 ports:
20 - port: {{ .Values.config.webUi.port }}
21 name: http
22
23---
24apiVersion: v1
25kind: Service
26metadata:
27 name: tb-web-ui-external
28spec:
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 }}