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