charts/transmission/templates/service.yaml
Jonathan Ervine 842197f5d1 Fixed ports
2020-07-28 21:05:09 +08:00

36 lines
881 B
YAML

apiVersion: v1
kind: Service
metadata:
name: {{ include "transmission.fullname" . }}
labels:
{{- include "transmission.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: 9091
protocol: TCP
name: transmission
- port: {{ .Values.service.tcpPort }}
targetPort: 56451
protocol: TCP
name: dht-tcp
selector:
{{- include "transmission.selectorLabels" . | nindent 4 }}
---
apiVersion: v1
kind: Service
metadata:
name: {{ include "transmission.fullname" . }}-udp
labels:
{{- include "transmission.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.udpPort }}
targetPort: 56451
protocol: UDP
name: dht-udp
selector:
{{- include "transmission.selectorLabels" . | nindent 4 }}