Skip to content

Commit 2a79e1b

Browse files
authored
fix(charts): Added extraLBAnnotations and fixed mismatched ports
fix(charts): Added extraLBAnnotations and fixed mismatched ports
2 parents f88512f + ad268b0 commit 2a79e1b

File tree

8 files changed

+51
-15
lines changed

8 files changed

+51
-15
lines changed

helm-charts/k8s-mediaserver/templates/jackett-resources.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ apiVersion: v1
142142
kind: Service
143143
metadata:
144144
name: jackett-lb
145+
{{- with .Values.jackett.service.extraLBAnnotations }}
145146
annotations:
146-
{{- include .Values.jackett.service.extraLBService.annotations . | nindent 4 }}
147+
{{- . | toYaml | nindent 4 }}
148+
{{- end }}
147149
labels:
148150
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
149151
spec:

helm-charts/k8s-mediaserver/templates/plex-resources.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,10 @@ apiVersion: v1
108108
kind: Service
109109
metadata:
110110
name: plex-lb
111+
{{- with .Values.plex.service.extraLBAnnotations }}
111112
annotations:
112-
{{- include .Values.plex.service.extraLBService.annotations . | nindent 4 }}
113+
{{- . | toYaml | nindent 4 }}
114+
{{- end }}
113115
labels:
114116
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
115117
spec:

helm-charts/k8s-mediaserver/templates/prowlarr-resources.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ spec:
111111
configMap:
112112
defaultMode: 493
113113
name: init-prowlarr-cm
114-
{{- with merge .Values.prowlarr.container.nodeSelector .Values.general.nodeSelector }}
114+
{{- with merge .Values.prowlarr.container.nodeSelector .Values.general.nodeSelector }}
115115
nodeSelector:
116116
{{- toYaml . | nindent 8 }}
117117
{{- end }}
@@ -142,8 +142,10 @@ apiVersion: v1
142142
kind: Service
143143
metadata:
144144
name: prowlarr-lb
145+
{{- with .Values.prowlarr.service.extraLBAnnotations }}
145146
annotations:
146-
{{- include .Values.prowlarr.service.extraLBService.annotations . | nindent 4 }}
147+
{{- . | toYaml | nindent 4 }}
148+
{{- end }}
147149
labels:
148150
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
149151
spec:

helm-charts/k8s-mediaserver/templates/radarr-resources.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,10 @@ apiVersion: v1
151151
kind: Service
152152
metadata:
153153
name: radarr-lb
154+
{{- with .Values.radarr.service.extraLBAnnotations }}
154155
annotations:
155-
{{- include .Values.radarr.service.extraLBService.annotations . | nindent 4 }}
156+
{{- . | toYaml | nindent 4 }}
157+
{{- end }}
156158
labels:
157159
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
158160
spec:

helm-charts/k8s-mediaserver/templates/sabnzbd-resources.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ spec:
455455
type: {{ .Values.sabnzbd.service.https.type }}
456456
ports:
457457
- port: {{ .Values.sabnzbd.service.https.port }}
458-
targetPort: {{ .Values.sabnzbd.container.port.http }}
458+
targetPort: {{ .Values.sabnzbd.container.port.https }}
459459
protocol: TCP
460460
name: sabnzbd-https
461461
{{ if eq .Values.sabnzbd.service.http.type "NodePort" }}
@@ -469,8 +469,10 @@ apiVersion: v1
469469
kind: Service
470470
metadata:
471471
name: sabnzbd-lb
472+
{{- with .Values.sabnzbd.service.http.extraLBAnnotations }}
472473
annotations:
473-
{{- include .Values.sabnzbd.service.extraLBService.annotations . | nindent 4 }}
474+
{{- . | toYaml | nindent 4 }}
475+
{{- end }}
474476
labels:
475477
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
476478
spec:
@@ -489,6 +491,10 @@ apiVersion: v1
489491
kind: Service
490492
metadata:
491493
name: sabnzbd-lb-https
494+
{{- with .Values.sabnzbd.service.https.extraLBAnnotations }}
495+
annotations:
496+
{{- . | toYaml | nindent 4 }}
497+
{{- end }}
492498
labels:
493499
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
494500
spec:

helm-charts/k8s-mediaserver/templates/sonarr-resources.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ apiVersion: v1
149149
kind: Service
150150
metadata:
151151
name: sonarr-lb
152+
{{- with .Values.sonarr.service.extraLBAnnotations }}
152153
annotations:
153-
{{- include .Values.sonarr.service.extraLBService.annotations . | nindent 4 }}
154+
{{- . | toYaml | nindent 4 }}
155+
{{- end }}
154156
labels:
155157
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
156158
spec:

helm-charts/k8s-mediaserver/templates/transmission-resources.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,15 +255,17 @@ apiVersion: v1
255255
kind: Service
256256
metadata:
257257
name: transmission-lb
258+
{{- with .Values.transmission.service.utp.extraLBAnnotations }}
258259
annotations:
259-
{{- include .Values.transmission.service.extraLBService.annotations . | nindent 4 }}
260+
{{- . | toYaml | nindent 4 }}
261+
{{- end }}
260262
labels:
261263
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
262264
spec:
263265
type: LoadBalancer
264266
ports:
265-
- port: {{ .Values.transmission.service.port }}
266-
targetPort: {{ .Values.transmission.container.port }}
267+
- port: {{ .Values.transmission.service.utp.port }}
268+
targetPort: {{ .Values.transmission.container.port.utp }}
267269
protocol: TCP
268270
name: trans-port
269271
selector:
@@ -275,6 +277,10 @@ apiVersion: v1
275277
kind: Service
276278
metadata:
277279
name: transmission-lb-peer-tcp
280+
{{- with .Values.transmission.service.peer.extraLBAnnotations }}
281+
annotations:
282+
{{- . | toYaml | nindent 4 }}
283+
{{- end }}
278284
labels:
279285
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
280286
spec:
@@ -291,6 +297,10 @@ apiVersion: v1
291297
kind: Service
292298
metadata:
293299
name: transmission-lb-peer-udp
300+
{{- with .Values.transmission.service.peer.extraLBAnnotations }}
301+
annotations:
302+
{{- . | toYaml | nindent 4 }}
303+
{{- end }}
294304
labels:
295305
{{- include "k8s-mediaserver.labels" . | nindent 4 }}
296306
spec:

helm-charts/k8s-mediaserver/values.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ general:
1616
pvcName: mediaserver-pvc
1717
size: 5Gi
1818
pvcStorageClass: ""
19-
accessMode: ""
2019
# 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
2120
subPaths:
2221
tv: media/tv
@@ -43,6 +42,7 @@ sonarr:
4342
port: 8989
4443
nodePort:
4544
extraLBService: false
45+
extraLBAnnotations: {}
4646
# Defines an additional LB service, requires cloud provider service or MetalLB
4747
ingress:
4848
enabled: true
@@ -73,8 +73,9 @@ radarr:
7373
type: ClusterIP
7474
port: 7878
7575
nodePort:
76-
extraLBService: false
7776
# Defines an additional LB service, requires cloud provider service or MetalLB
77+
extraLBService: false
78+
extraLBAnnotations: {}
7879
ingress:
7980
enabled: true
8081
annotations: {}
@@ -103,6 +104,7 @@ jackett:
103104
port: 9117
104105
nodePort:
105106
extraLBService: false
107+
extraLBAnnotations: {}
106108
# Defines an additional LB service, requires cloud provider service or MetalLB
107109
ingress:
108110
enabled: true
@@ -133,16 +135,20 @@ transmission:
133135
utp:
134136
type: ClusterIP
135137
port: 9091
138+
# if type is NodePort, nodePort must be set
136139
nodePort:
137140
# Defines an additional LB service, requires cloud provider service or MetalLB
138141
extraLBService: false
142+
extraLBAnnotations: {}
139143
peer:
140144
type: ClusterIP
141145
port: 51413
146+
# if type is NodePort, nodePort and nodePortUDP must be set
142147
nodePort:
143148
nodePortUDP:
144149
# Defines an additional LB service, requires cloud provider service or MetalLB
145150
extraLBService: false
151+
extraLBAnnotations: {}
146152
ingress:
147153
enabled: true
148154
annotations: {}
@@ -180,12 +186,14 @@ sabnzbd:
180186
nodePort:
181187
# Defines an additional LB service, requires cloud provider service or MetalLB
182188
extraLBService: false
189+
extraLBAnnotations: {}
183190
https:
184191
type: ClusterIP
185192
port: 9090
186193
nodePort:
187194
# Defines an additional LB service, requires cloud provider service or MetalLB
188195
extraLBService: false
196+
extraLBAnnotations: {}
189197
ingress:
190198
enabled: true
191199
annotations: {}
@@ -205,16 +213,17 @@ sabnzbd:
205213

206214
prowlarr:
207215
enabled: true
208-
container:
216+
container:
209217
image: docker.io/linuxserver/prowlarr
210218
tag: develop
211219
nodeSelector: {}
212220
port: 9696
213221
service:
214222
type: ClusterIP
215223
port: 9696
216-
nodePort:
224+
nodePort:
217225
extraLBService: false
226+
extraLBAnnotations: {}
218227
ingress:
219228
enabled: true
220229
annotations: {}
@@ -246,6 +255,7 @@ plex:
246255
nodePort:
247256
# Defines an additional LB service, requires cloud provider service or MetalLB
248257
extraLBService: false
258+
extraLBAnnotations: {}
249259
ingress:
250260
enabled: true
251261
annotations: {}

0 commit comments

Comments
 (0)