apiVersion: v1
kind: Service
metadata:
  name: subchart2-{{ .Chart.Name }}
  labels:
    helm.sh/hart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
spec:
  type: {{ .Values.service.type }}
  ports:
  - port: {{ .Values.service.externalPort }}
    targetPort: {{ .Values.service.internalPort }}
    protocol: TCP
    name: subchart2-{{ .Values.service.name }}
  selector:
    app.kubernetes.io/name: {{ .Chart.Name }}
