apiVersion: v1 kind: Service metadata: name: {{ .Values.service.name }} labels: {{- include "ksmysql.labels" . | nindent 4 }} spec: type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} protocol: TCP name: mysql selector: {{- include "ksmysql.selectorLabels" . | nindent 4 }}