updated service type in testapp

Change-Id: Id7407f01a1509b8d33036877daebe7899dc0c98e
diff --git a/5g-test-apps/Chart.yaml b/5g-test-apps/Chart.yaml
index 4e15d7c..fbc9993 100644
--- a/5g-test-apps/Chart.yaml
+++ b/5g-test-apps/Chart.yaml
@@ -8,7 +8,7 @@
 name: 5g-test-apps
 icon: https://guide.opencord.org/logos/cord.svg
 
-version: 0.2.1
+version: 0.2.2
 
 dependencies:
   - name: mongodb
diff --git a/5g-test-apps/templates/service-testapp.yaml b/5g-test-apps/templates/service-testapp.yaml
new file mode 100644
index 0000000..f5ff505
--- /dev/null
+++ b/5g-test-apps/templates/service-testapp.yaml
@@ -0,0 +1,23 @@
+{{/*
+# Copyright 2022-present Open Networking Foundation
+
+# SPDX-License-Identifier: Apache-2.0
+*/}}
+
+{{- if .Values.config.dbtestapp.deploy }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: dbtestapp
+  labels:
+{{ tuple "dbtestapp" . | include "5g-test-apps.metadata_labels" | indent 4 }}
+spec:
+  type: {{ .Values.config.dbtestapp.serviceType }}
+  selector:
+{{ tuple "dbtestapp" . | include "5g-test-apps.metadata_labels" | indent 4 }}
+  ports:
+  - name: http-api
+    port: {{ .Values.config.dbtestapp.httpServer.port }}
+    protocol: TCP
+{{- end }}
diff --git a/5g-test-apps/values.yaml b/5g-test-apps/values.yaml
index 4deaad3..4b08d4f 100644
--- a/5g-test-apps/values.yaml
+++ b/5g-test-apps/values.yaml
@@ -34,4 +34,8 @@
     path: /tmp/coredump
   dbtestapp:
     deploy: true
+    serviceType: ClusterIP
     replica: 1
+    httpServer:
+      enable: true
+      port: 8000