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-node |
| 15 | spec: |
| 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 | --- |
| 26 | apiVersion: v1 |
| 27 | kind: Service |
| 28 | metadata: |
| 29 | name: tb-node-external |
| 30 | spec: |
| 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 }} |