New version of the common template. It unifies the naming convention between platform...
[it/dep.git] / ric-xapps / 90-xApps / helm / xapp-std / templates / service-http.yaml
 #   limitations under the License.                                             #
 ################################################################################
 
-{{ if .Values.ricapp.service.enabled }}
 apiVersion: v1
 kind: Service
 metadata:
-  name: {{ include "ricapp.name" . }}
+  name: {{ include "ricxapp.servicename.http" . }}
+  namespace: {{ include "ricxapp.namespace" . }}
   labels:
-    app.kubernetes.io/name: {{ include "ricapp.name" . }}
-    helm.sh/chart: {{ include "ricapp.chart" . }}
-    app.kubernetes.io/instance: {{ .Release.Name }}
-    app.kubernetes.io/managed-by: {{ .Release.Service }}
+    app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
+    chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
+    release: {{ .Release.Name }}
+    heritage: {{ .Release.Service }}
 spec:
-  type: {{ .Values.ricapp.service.type }}
+  type: ClusterIP
   ports:
-    - port: {{ .Values.ricapp.service.port }}
+    - port: {{ .Values.ricxapp.service.http.port }}
       targetPort: http
       protocol: TCP
       name: http
   selector:
-    app.kubernetes.io/name: {{ include "ricapp.name" . }}
-    app.kubernetes.io/instance: {{ .Release.Name }}
-{{ end }}
\ No newline at end of file
+    app: {{ include "ricxapp.namespace" . }}-{{ include "ricxapp.name" . }}
+    release: {{ .Release.Name }}