apiVersion: v1 kind: Service metadata: name: mongo namespace: {{ .Values.namespace }} labels: app: mongo chart: {{ .Chart.Name }}-{{ .Chart.Version }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: type: ClusterIP ports: - port: {{ .Values.mongo.port }} targetPort: {{ .Values.mongo.port }} protocol: TCP name: mongo selector: app: mongo