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