Skip to content

Commit

Permalink
feat(load-balancer): transmission utp
Browse files Browse the repository at this point in the history
  • Loading branch information
95gabor committed Oct 3, 2024
1 parent d16b276 commit c0a7869
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,12 +276,12 @@ spec:
selector:
app: transmission
---
{{ if .Values.transmission.service.utp.extraLBService }}
{{ if .Values.transmission.service.utp.extraLbService.enabled }}
apiVersion: v1
kind: Service
metadata:
name: transmission-lb
{{- with .Values.transmission.service.utp.extraLBAnnotations }}
{{- with .Values.transmission.service.utp.extraLbService.annotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
Expand All @@ -290,10 +290,11 @@ metadata:
spec:
type: LoadBalancer
ports:
- port: {{ .Values.transmission.service.utp.port }}
- port: {{ .Values.transmission.service.utp.extraLbService.port | default .Values.transmission.service.utp.port }}
targetPort: {{ .Values.transmission.container.port.utp }}
protocol: TCP
name: trans-port
loadBalancerIP: {{ .Values.transmission.service.utp.extraLbService.IP }}
selector:
app: transmission
---
Expand Down
7 changes: 5 additions & 2 deletions helm-charts/k8s-mediaserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ transmission:
# if type is NodePort, nodePort must be set
nodePort:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
extraLbService:
enabled: false
annotations: {}
port: 80
loadBalancerIP:
peer:
type: ClusterIP
port: 51413
Expand Down

0 comments on commit c0a7869

Please sign in to comment.