aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/sample-apps/training/sample-horovod-app/templates/statefulset-service.yaml
blob: 70fd0478b437d1455a79084fcb69e24d1001c1d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
apiVersion: v1
kind: Service
metadata:
  name: {{ template "horovod.fullname" . }}
  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: worker