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