New version of the common template. It unifies the naming convention between platform...
[it/dep.git] / ric-platform / 50-RIC-Platform / helm / appmgr / templates / service-http.yaml
@@ -18,7 +18,7 @@
 apiVersion: v1
 kind: Service
 metadata:
-  name: {{ include "common.servicename.appmgr" . }}
+  name: {{ include "common.servicename.appmgr.http" . }}
   namespace: {{ include "common.namespace" . }}
   labels:
     app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
@@ -26,12 +26,12 @@ metadata:
     release: {{ .Release.Name }}
     heritage: {{ .Release.Service }} 
 spec:
-  type: {{ .Values.appmgr.service.type }}
+  type: ClusterIP
   ports:
-    - port: {{ .Values.appmgr.service.port }}
-      protocol: {{ .Values.appmgr.service.protocol }}
-      name: "{{ .Values.appmgr.service.name }}"
-      {{ if (eq .Values.appmgr.service.type "NodePort") }}nodePort: {{ .Values.appmgr.service.extport }} {{ end }}
+    - port: {{ .Values.appmgr.service.http.port }}
+      protocol: "TCP"
+      name: "http"
+      targetPort: "http"
   selector:
     app: {{ include "common.namespace" . }}-{{ include "common.name" . }}
     release: {{ .Release.Name }}