# helm_charts_job-service.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ template "horovod.fullname" . }}-master
  labels:
    app: {{ template "horovod.name" . }}
    chart: {{ template "horovod.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  clusterIP: None
  ports:
  - name: ssh
    port: {{ .Values.ssh.port }}
    targetPort: {{ .Values.ssh.port }}
  selector:
    app: {{ template "horovod.name" . }}
    release: {{ .Release.Name }}
    role: master