updated service type in testapp
Change-Id: Id7407f01a1509b8d33036877daebe7899dc0c98e
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 }}