apiVersion: v1
kind: Service
metadata:
  labels:
    name: {{ .Release.Name }}-{{ .Chart.Name }}
  name: {{ .Release.Name }}-{{ .Chart.Name }}
spec:
  ports:
    - name: mongodb
      port: 27017
      targetPort: 27017
  selector:
    app: {{ .Release.Name }}-{{ .Chart.Name }}

