Make all services independent of helm Release.Name
[oom.git] / kubernetes / common / mariadb-galera / templates / service.yaml
index f5f93ed..d17d350 100644 (file)
@@ -3,7 +3,7 @@ kind: Service
 metadata:
   annotations:
     service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
-  name: {{ include "common.fullname" . }}
+  name: {{ include "common.servicename" . }}
   namespace: {{ include "common.namespace" . }}
   labels:
     app: {{ include "common.fullname" . }}
@@ -12,8 +12,8 @@ metadata:
     heritage: "{{ .Release.Service }}"
 spec:
   ports:
-    - name: {{ .Values.service.name }}
+    - name: {{ .Values.service.portName }}
       port: {{ .Values.service.internalPort }}
   clusterIP: None
   selector:
-    app: {{ include "common.fullname" . }}
\ No newline at end of file
+    app: {{ include "common.fullname" . }}