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