blob: 8938f25fd994f06b0ed9470da834484600c21cab [file] [log] [blame]
{{- /*
# Copyright 2020-present Open Networking Foundation
#
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
*/ -}}
---
apiVersion: v1
kind: Service
metadata:
name: tb-coap-transport
spec:
type: ClusterIP
selector:
app: tb-coap-transport
ports:
- port: {{ .Values.config.transports.coap.port }}
name: coap
protocol: UDP
---
apiVersion: v1
kind: Service
metadata:
name: tb-coap-transport-external
spec:
type: NodePort
selector:
app: tb-coap-transport
ports:
{{- if .Values.config.transports.coap.nodePort.enabled }}
- port: {{ .Values.config.transports.coap.port }}
name: coap
protocol: UDP
nodePort: {{ .Values.config.transports.coap.nodePort.port }}
{{- end }}