47 lines
994 B
YAML
47 lines
994 B
YAML
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: transmission-tcp
|
||
|
namespace: {{ .Values.namespace }}
|
||
|
labels:
|
||
|
app: {{ .Chart.Name }}
|
||
|
{{- include "transmission.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
ipFamilyPolicy: PreferDualStack
|
||
|
ipFamilies:
|
||
|
- IPv4
|
||
|
- IPv6
|
||
|
selector:
|
||
|
app: transmission
|
||
|
ports:
|
||
|
- port: {{ .Values.ports.transmission.web }}
|
||
|
targetPort: web
|
||
|
protocol: TCP
|
||
|
name: web
|
||
|
- port: {{ .Values.ports.transmission.torrent }}
|
||
|
targetPort: torrent-tcp
|
||
|
protocol: TCP
|
||
|
name: torrent
|
||
|
---
|
||
|
kind: Service
|
||
|
apiVersion: v1
|
||
|
metadata:
|
||
|
name: transmission-udp
|
||
|
namespace: {{ .Values.namespace }}
|
||
|
labels:
|
||
|
app: {{ .Chart.Name }}
|
||
|
{{- include "transmission.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
type: LoadBalancer
|
||
|
ipFamilyPolicy: PreferDualStack
|
||
|
ipFamilies:
|
||
|
- IPv4
|
||
|
- IPv6
|
||
|
selector:
|
||
|
app: transmission
|
||
|
ports:
|
||
|
- port: {{ .Values.ports.transmission.torrent }}
|
||
|
targetPort: torrent-udp
|
||
|
protocol: UDP
|
||
|
name: torrent
|