# helm_charts_service-ps.yaml
apiVersion: v1
kind: Service
metadata:
  name: {{ template "distributed-tensorflow.fullname" . }}-ps
  labels:
    app: {{ template "distributed-tensorflow.name" . }}
    chart: {{ template "distributed-tensorflow.chart" . }}
    release: {{ .Release.Name }}
    heritage: {{ .Release.Service }}
spec:
  clusterIP: None
  ports:
  - port: {{ .Values.ps.port }}
    targetPort: {{ .Values.ps.port }}
    protocol: TCP
    name: ps
  selector:
    app: {{ template "distributed-tensorflow.name" . }}
    release: {{ .Release.Name }}
    role: ps