This commit is contained in:
ari committed 2025-08-05 19:05:11 -04:00
1 parent ff3ddf366e
commit 5d1bf73768
2 files changed
+75 -10

No files matched your search

+63 -10
View File
@@ -26,7 +26,8 @@ spec:
volumes: volumes:
{{ $.Values.volumes | toYaml | nindent 25 }} {{ $.Values.volumes | toYaml | nindent 25 }}
containers: containers:
- name: main {{ if $.Values.transmission.enabled }}
- name: transmission
env: env:
{{ include "envs" $.Values.transmission.env | nindent 25 }} {{ include "envs" $.Values.transmission.env | nindent 25 }}
image: "{{ $.Values.transmission.image }}" image: "{{ $.Values.transmission.image }}"
@@ -35,6 +36,22 @@ spec:
{{ $.Values.transmission.resources | toYaml | nindent 25 }} {{ $.Values.transmission.resources | toYaml | nindent 25 }}
volumeMounts: volumeMounts:
{{ $.Values.transmission.volumeMounts | toYaml | nindent 25 }} {{ $.Values.transmission.volumeMounts | toYaml | nindent 25 }}
{{ end }}
{{ if $.Values.qbittorrent.enabled }}
- name: qbittorrent
env:
- name: WEBUI_PORT
value: "{{ $.Values.qbittorrent.ports.webui }}"
- name: TORRENTING_PORT
value: "{{ $.Values.qbittorrent.ports.torrenting }}"
{{ include "envs" $.Values.qbittorrent.env | nindent 25 }}
image: "{{ $.Values.qbittorrent.image }}"
imagePullPolicy: Always
resources:
{{ $.Values.qbittorrent.resources | toYaml | nindent 25 }}
volumeMounts:
{{ $.Values.qbittorrent.volumeMounts | toYaml | nindent 25 }}
{{ end }}
initContainers: initContainers:
- name: vpn - name: vpn
env: env:
@@ -44,18 +61,34 @@ spec:
image: {{ $.Values.gluetun.image }} image: {{ $.Values.gluetun.image }}
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
ports: ports:
{{ if $.Values.transmission.enabled }}
- containerPort: 9091 - containerPort: 9091
protocol: TCP protocol: TCP
name: http-tcp name: t-webui-tcp
- containerPort: 9091 - containerPort: 9091
protocol: UDP protocol: UDP
name: http-udp name: t-webui-udp
- containerPort: 51413 - containerPort: 51413
protocol: TCP protocol: TCP
name: torrent-tcp name: t-torrent-tcp
- containerPort: 51413 - containerPort: 51413
protocol: UDP protocol: UDP
name: torrent-udp name: t-torrent-udp
{{ end }}
{{ if $.Values.qbittorrent.enabled }}
- containerPort: {{ $.Values.qbittorrent.ports.webui }}
protocol: TCP
name: q-webui-tcp
- containerPort: {{ $.Values.qbittorrent.ports.webui }}
protocol: UDP
name: q-webui-udp
- containerPort: {{ $.Values.qbittorrent.ports.torrenting }}
protocol: TCP
name: q-torrent-tcp
- containerPort: {{ $.Values.qbittorrent.ports.torrenting }}
protocol: UDP
name: q-torrent-udp
{{ end }}
resources: resources:
{{ $.Values.gluetun.resources | toYaml | nindent 25 }} {{ $.Values.gluetun.resources | toYaml | nindent 25 }}
restartPolicy: Always restartPolicy: Always
@@ -81,7 +114,7 @@ spec:
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
metadata: metadata:
name: transmission name: torrents
annotations: annotations:
{{ (.serviceAnnotations | default dict) | toYaml | nindent 4 }} {{ (.serviceAnnotations | default dict) | toYaml | nindent 4 }}
spec: spec:
@@ -89,19 +122,39 @@ spec:
{{ $labels | toYaml | nindent 8 }} {{ $labels | toYaml | nindent 8 }}
type: {{ $.Values.serviceType | default "ClusterIP" | quote }} type: {{ $.Values.serviceType | default "ClusterIP" | quote }}
ports: ports:
{{ if $.Values.transmission.enabled }}
- targetPort: 9091 - targetPort: 9091
port: 9091 port: 9091
protocol: TCP protocol: TCP
name: http-tcp name: t-webui-tcp
- targetPort: 9091 - targetPort: 9091
port: 9091 port: 9091
protocol: UDP protocol: UDP
name: http-udp name: t-webui-udp
- targetPort: 51413 - targetPort: 51413
port: 51413 port: 51413
protocol: TCP protocol: TCP
name: torrent-tcp name: t-torrent-tcp
- targetPort: 51413 - targetPort: 51413
port: 51413 port: 51413
protocol: UDP protocol: UDP
name: torrent-udp name: t-torrent-udp
{{ end }}
{{ if $.Values.qbittorrent.enabled }}
- targetPort: {{ $.Values.qbittorrent.ports.webui }}
port: {{ $.Values.qbittorrent.ports.webui }}
protocol: TCP
name: q-webui-tcp
- targetPort: {{ $.Values.qbittorrent.ports.webui }}
port: {{ $.Values.qbittorrent.ports.webui }}
protocol: UDP
name: q-webui-udp
- targetPort: {{ $.Values.qbittorrent.ports.torrenting }}
port: {{ $.Values.qbittorrent.ports.torrenting }}
protocol: TCP
name: q-torrent-tcp
- targetPort: {{ $.Values.qbittorrent.ports.torrenting }}
port: {{ $.Values.qbittorrent.ports.torrenting }}
protocol: UDP
name: q-torrent-udp
{{ end }}
+12
View File
@@ -2,6 +2,7 @@
volumes: [] volumes: []
transmission: transmission:
enabled: true
image: linuxserver/transmission image: linuxserver/transmission
env: env:
PUID: "1000" PUID: "1000"
@@ -10,6 +11,17 @@ transmission:
resources: {} resources: {}
volumeMounts: [] volumeMounts: []
qbittorrent:
enabled: true
image: lscr.io/linuxserver/qbittorrent:latest
ports:
webui: 3000
torrenting: 6881
env:
PUID: "1000"
PGID: "100"
TZ: Etc/UTC
gluetun: gluetun:
image: qmcgaw/gluetun:v3 image: qmcgaw/gluetun:v3
resources: {} resources: {}