Skip to content

Commit

Permalink
fix(charts): Added extraLBAnnotations and fixed mismatched ports
Browse files Browse the repository at this point in the history
fix(charts): Added extraLBAnnotations and fixed mismatched ports
  • Loading branch information
kubealex authored Nov 25, 2023
2 parents f88512f + ad268b0 commit 2a79e1b
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 15 deletions.
4 changes: 3 additions & 1 deletion helm-charts/k8s-mediaserver/templates/jackett-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ apiVersion: v1
kind: Service
metadata:
name: jackett-lb
{{- with .Values.jackett.service.extraLBAnnotations }}
annotations:
{{- include .Values.jackett.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
4 changes: 3 additions & 1 deletion helm-charts/k8s-mediaserver/templates/plex-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ apiVersion: v1
kind: Service
metadata:
name: plex-lb
{{- with .Values.plex.service.extraLBAnnotations }}
annotations:
{{- include .Values.plex.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
6 changes: 4 additions & 2 deletions helm-charts/k8s-mediaserver/templates/prowlarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ spec:
configMap:
defaultMode: 493
name: init-prowlarr-cm
{{- with merge .Values.prowlarr.container.nodeSelector .Values.general.nodeSelector }}
{{- with merge .Values.prowlarr.container.nodeSelector .Values.general.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down Expand Up @@ -142,8 +142,10 @@ apiVersion: v1
kind: Service
metadata:
name: prowlarr-lb
{{- with .Values.prowlarr.service.extraLBAnnotations }}
annotations:
{{- include .Values.prowlarr.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
4 changes: 3 additions & 1 deletion helm-charts/k8s-mediaserver/templates/radarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ apiVersion: v1
kind: Service
metadata:
name: radarr-lb
{{- with .Values.radarr.service.extraLBAnnotations }}
annotations:
{{- include .Values.radarr.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
10 changes: 8 additions & 2 deletions helm-charts/k8s-mediaserver/templates/sabnzbd-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ spec:
type: {{ .Values.sabnzbd.service.https.type }}
ports:
- port: {{ .Values.sabnzbd.service.https.port }}
targetPort: {{ .Values.sabnzbd.container.port.http }}
targetPort: {{ .Values.sabnzbd.container.port.https }}
protocol: TCP
name: sabnzbd-https
{{ if eq .Values.sabnzbd.service.http.type "NodePort" }}
Expand All @@ -469,8 +469,10 @@ apiVersion: v1
kind: Service
metadata:
name: sabnzbd-lb
{{- with .Values.sabnzbd.service.http.extraLBAnnotations }}
annotations:
{{- include .Values.sabnzbd.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand All @@ -489,6 +491,10 @@ apiVersion: v1
kind: Service
metadata:
name: sabnzbd-lb-https
{{- with .Values.sabnzbd.service.https.extraLBAnnotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
4 changes: 3 additions & 1 deletion helm-charts/k8s-mediaserver/templates/sonarr-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,10 @@ apiVersion: v1
kind: Service
metadata:
name: sonarr-lb
{{- with .Values.sonarr.service.extraLBAnnotations }}
annotations:
{{- include .Values.sonarr.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
16 changes: 13 additions & 3 deletions helm-charts/k8s-mediaserver/templates/transmission-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,15 +255,17 @@ apiVersion: v1
kind: Service
metadata:
name: transmission-lb
{{- with .Values.transmission.service.utp.extraLBAnnotations }}
annotations:
{{- include .Values.transmission.service.extraLBService.annotations . | nindent 4 }}
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
type: LoadBalancer
ports:
- port: {{ .Values.transmission.service.port }}
targetPort: {{ .Values.transmission.container.port }}
- port: {{ .Values.transmission.service.utp.port }}
targetPort: {{ .Values.transmission.container.port.utp }}
protocol: TCP
name: trans-port
selector:
Expand All @@ -275,6 +277,10 @@ apiVersion: v1
kind: Service
metadata:
name: transmission-lb-peer-tcp
{{- with .Values.transmission.service.peer.extraLBAnnotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand All @@ -291,6 +297,10 @@ apiVersion: v1
kind: Service
metadata:
name: transmission-lb-peer-udp
{{- with .Values.transmission.service.peer.extraLBAnnotations }}
annotations:
{{- . | toYaml | nindent 4 }}
{{- end }}
labels:
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
spec:
Expand Down
18 changes: 14 additions & 4 deletions helm-charts/k8s-mediaserver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ general:
pvcName: mediaserver-pvc
size: 5Gi
pvcStorageClass: ""
accessMode: ""
# the path starting from the top level of the pv you're passing. If your share is server.local/share/, then tv is server.local/share/media/tv
subPaths:
tv: media/tv
Expand All @@ -43,6 +42,7 @@ sonarr:
port: 8989
nodePort:
extraLBService: false
extraLBAnnotations: {}
# Defines an additional LB service, requires cloud provider service or MetalLB
ingress:
enabled: true
Expand Down Expand Up @@ -73,8 +73,9 @@ radarr:
type: ClusterIP
port: 7878
nodePort:
extraLBService: false
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
ingress:
enabled: true
annotations: {}
Expand Down Expand Up @@ -103,6 +104,7 @@ jackett:
port: 9117
nodePort:
extraLBService: false
extraLBAnnotations: {}
# Defines an additional LB service, requires cloud provider service or MetalLB
ingress:
enabled: true
Expand Down Expand Up @@ -133,16 +135,20 @@ transmission:
utp:
type: ClusterIP
port: 9091
# if type is NodePort, nodePort must be set
nodePort:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
peer:
type: ClusterIP
port: 51413
# if type is NodePort, nodePort and nodePortUDP must be set
nodePort:
nodePortUDP:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
ingress:
enabled: true
annotations: {}
Expand Down Expand Up @@ -180,12 +186,14 @@ sabnzbd:
nodePort:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
https:
type: ClusterIP
port: 9090
nodePort:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
ingress:
enabled: true
annotations: {}
Expand All @@ -205,16 +213,17 @@ sabnzbd:

prowlarr:
enabled: true
container:
container:
image: docker.io/linuxserver/prowlarr
tag: develop
nodeSelector: {}
port: 9696
service:
type: ClusterIP
port: 9696
nodePort:
nodePort:
extraLBService: false
extraLBAnnotations: {}
ingress:
enabled: true
annotations: {}
Expand Down Expand Up @@ -246,6 +255,7 @@ plex:
nodePort:
# Defines an additional LB service, requires cloud provider service or MetalLB
extraLBService: false
extraLBAnnotations: {}
ingress:
enabled: true
annotations: {}
Expand Down

0 comments on commit 2a79e1b

Please sign in to comment.