summaryrefslogtreecommitdiffstats
path: root/kubernetes/so/charts/mariadb/templates/service.yaml
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2018-04-19 23:41:22 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-19 23:41:22 +0000
commit4cb6d545d144933753535185c8c4353c4b992b3c (patch)
treea254c205bfe033e8c0639704fd50b6d075f5cd67 /kubernetes/so/charts/mariadb/templates/service.yaml
parent87274bc2e86ea15b777b82be36ad029e3f94bac7 (diff)
parent282751f1c3c062ab6c0c3aa6c49b32417de360e4 (diff)
Merge "Fix SO healthcheck on multi-node cluster"
Diffstat (limited to 'kubernetes/so/charts/mariadb/templates/service.yaml')
-rw-r--r--kubernetes/so/charts/mariadb/templates/service.yaml6
1 files changed, 3 insertions, 3 deletions
diff --git a/kubernetes/so/charts/mariadb/templates/service.yaml b/kubernetes/so/charts/mariadb/templates/service.yaml
index 11b3b48bd9..eeebdcbae2 100644
--- a/kubernetes/so/charts/mariadb/templates/service.yaml
+++ b/kubernetes/so/charts/mariadb/templates/service.yaml
@@ -15,7 +15,7 @@
apiVersion: v1
kind: Service
metadata:
- name: {{ include "common.fullname" . }}
+ name: {{ include "common.servicename" . }}
namespace: {{ include "common.namespace" . }}
labels:
app: {{ include "common.name" . }}
@@ -27,12 +27,12 @@ spec:
ports:
{{if eq .Values.service.type "NodePort" -}}
- port: {{ .Values.service.internalPort }}
- nodePort: {{ .Values.global.nodePortPrefix | default "302" }}{{ .Values.service.externalPort }}
+ nodePort: {{ .Values.global.nodePortPrefix | default "302" }}{{ .Values.service.nodePort }}
{{- else -}}
- port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
{{- end}}
- name: {{ .Values.service.name }}
+ name: {{ .Values.service.portName }}
selector:
app: {{ include "common.name" . }}
release: {{ .Release.Name }} \ No newline at end of file