blob: c2c07c25ad63dda234fb9b377b4ac7f6b3fa42c4 [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
Woojoong Kimd3c132c2020-08-26 14:46:47 -07006
7*/ -}}
8
9---
10apiVersion: v1
11kind: Service
12metadata:
13 name: tb-web-ui
14spec:
15 type: ClusterIP
16 selector:
17 app: tb-web-ui
18 ports:
19 - port: {{ .Values.config.webUi.port }}
20 name: http
21
22---
23apiVersion: v1
24kind: Service
25metadata:
26 name: tb-web-ui-external
27spec:
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 }}