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