First version of ThingsBoard IoT Platform - an Aether edge app

Change-Id: Ia94164fb6ec9b1f2a31668b0e419f05e72eac27c
diff --git a/apps/thingsboard-iot-platform/templates/service-tb-node.yaml b/apps/thingsboard-iot-platform/templates/service-tb-node.yaml
new file mode 100644
index 0000000..ff8bc34
--- /dev/null
+++ b/apps/thingsboard-iot-platform/templates/service-tb-node.yaml
@@ -0,0 +1,46 @@
+{{- /*
+
+# 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-node
+spec:
+  type: ClusterIP
+  selector:
+    app: tb-node
+  ports:
+    - port: {{ .Values.config.tbNode.ports.http }}
+      name: http
+    - port: {{ .Values.config.tbNode.ports.rpc }}
+      name: rpc
+
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: tb-node-external
+spec:
+  type: NodePort
+  selector:
+    app: tb-node
+  ports:
+{{- if .Values.config.tbNode.nodePort.http.enabled }}
+    - port: {{ .Values.config.tbNode.ports.http }}
+      name: http
+      protocol: TCP
+      nodePort: {{ .Values.config.tbNode.nodePort.http.port }}
+{{- end }}
+    {{- if .Values.config.tbNode.nodePort.rpc.enabled }}
+    - port: {{ .Values.config.tbNode.ports.rpc }}
+      name: http
+      protocol: TCP
+      nodePort: {{ .Values.config.tbNode.nodePort.rpc.port }}
+  {{- end }}
\ No newline at end of file