diff --git a/charts/transmission/templates/deploy.yaml b/charts/transmission/templates/deploy.yaml index dea888e..aac775a 100644 --- a/charts/transmission/templates/deploy.yaml +++ b/charts/transmission/templates/deploy.yaml @@ -77,3 +77,31 @@ spec: sleep 5 done echo "ping succesfull, exiting" +--- +kind: Service +apiVersion: v1 +metadata: + name: transmission + annotations: + {{ (.serviceAnnotations | default dict) | toYaml | nindent 4 }} +spec: + selector: + {{ $labels | toYaml | nindent 8 }} + type: {{ $.Values.serviceType | default "ClusterIP" | quote }} + ports: + - targetPort: 9091 + port: 9091 + protocol: TCP + name: http-tcp + - targetPort: 9091 + port: 9091 + protocol: UDP + name: http-udp + - targetPort: 51413 + port: 51413 + protocol: TCP + name: torrent-tcp + - targetPort: 51413 + port: 51413 + protocol: UDP + name: torrent-udp