video hosting

This commit is contained in:
ari committed 2023-04-16 19:00:46 +00:00
1 parent 7116e52293
commit 4ff4713cad
8 files changed
+92 -56

No files matched your search

@@ -22,7 +22,18 @@ spec:
app: {{ $k }}
type: ClusterIP
ports:
{{- $v.ports | toYaml | nindent 4 }}
{{ range $portName, $portValue := $v.ports.tcp }}
- port: {{ $portValue }}
targetPort: {{ $portValue }}
name: "{{ $portName }}"
protocol: TCP
{{ end }}
{{ range $portName, $portValue := $v.ports.udp }}
- port: {{ $portValue }}
targetPort: {{ $portValue }}
name: "{{ $portName }}"
protocol: UDP
{{ end }}
---
apiVersion: apps/v1
kind: StatefulSet
@@ -66,6 +77,15 @@ spec:
- containerPort: {{ $port.targetPort }}
protocol: {{ $port.protocol | default "TCP" }}
{{ end }}
{{ range $portName, $portValue := $v.ports.tcp }}
- containerPort: {{ $portValue }}
protocol: TCP
{{ end }}
{{ range $portName, $portValue := $v.ports.udp }}
- containerPort: {{ $portValue }}
protocol: UDP
{{ end }}
volumeMounts:
- name: config
mountPath: /config
@@ -75,6 +95,6 @@ spec:
- name: torrents
nfs:
server: "{{ $.Values.global.nfs.server }}"
path: "{{ $.Values.nfs.shares.torrents }}"
path: "{{ $.Values.global.nfs.additionalShares.torrents }}"
readOnly: false
{{ end }}
@@ -149,10 +149,10 @@ spec:
- name: torrents
nfs:
server: "{{ $.Values.global.nfs.server }}"
path: "{{ $.Values.nfs.shares.torrents }}"
path: "{{ $.Values.global.nfs.additionalShares.torrents }}"
readOnly: true
- name: family-videos
nfs:
server: "{{ $.Values.global.nfs.server }}"
path: "{{ .Values.nfs.shares.familyvideos }}"
path: "{{ .Values.global.nfs.additionalShares.familyvideos }}"
readOnly: true
@@ -1,7 +1,3 @@
nfs:
shares:
torrents: "/mnt/EightTerra/DownloadedTorrents"
familyvideos: "/mnt/EightTerra/FamilyStorage/Video"
plex:
repo: "plexinc/pms-docker"
tag: "1.31.3.6868-28fc46b27"
@@ -11,16 +7,11 @@ linuxserverServices:
repo: lscr.io/linuxserver/transmission
tag: "4.0.2"
ports:
- port: 9091
targetPort: 9091
name: "web"
- port: 51413
targetPort: 51413
name: "51413"
- port: 51413
targetPort: 51413
protocol: UDP
name: "51413-udp"
tcp:
web: 9091
51413: 51413
udp:
51413: 51413
podResources:
limits:
cpu: 1
@@ -49,9 +40,8 @@ linuxserverServices:
limits:
storage: 100Gi
ports:
- port: 8989
targetPort: 8989
name: "web"
tcp:
web: 8989
radarr:
repo: lscr.io/linuxserver/radarr
tag: "4.3.2"
@@ -68,9 +58,8 @@ linuxserverServices:
limits:
storage: 100Gi
ports:
- port: 7878
targetPort: 7878
name: "web"
tcp:
web: 7878
jackett:
repo: lscr.io/linuxserver/jackett
tag: "0.20.3772"
@@ -89,34 +78,5 @@ linuxserverServices:
limits:
storage: 100Gi
ports:
- port: 9117
targetPort: 9117
name: "web"
# qbittorrent:
# repo: lscr.io/linuxserver/qbittorrent
# tag: "4.5.2"
# envVars:
# AUTO_UPDATE: "true"
# podResources:
# limits:
# cpu: 2
# memory: "2Gi"
# requests:
# cpu: 1
# memory: "500M"
# configVolumesResources:
# requests:
# storage: 10Gi
# limits:
# storage: 100Gi
# ports:
# - port: 8080
# targetPort: 8080
# name: "web"
# - port: 6881
# targetPort: 6881
# name: "6881"
# - port: 6881
# targetPort: 6881
# protocol: UDP
# name: "6881-udp"
tcp:
web: 9117
+3
View File
@@ -9,3 +9,6 @@ global:
nfs:
server: "192.168.8.107"
share: "/mnt/EightTerra/k3s-cluster"
additionalShares:
torrents: "/mnt/EightTerra/DownloadedTorrents"
familyvideos: "/mnt/EightTerra/FamilyStorage/Video"
+54 -1
View File
@@ -15,8 +15,36 @@ global:
storageClass: "nfs-generic"
server: "changme"
share: "changeme"
additionalShares:
torrents: "changeme"
familyvideos: "changeme"
videohosting:
linuxserverServices:
transmission:
ports:
tcp:
web: 9091
51413: 51413
udp:
51413: 51413
sonarr:
ports:
tcp:
web: 8989
radarr:
ports:
tcp:
web: 7878
jackett:
ports:
tcp:
web: 9117
apps:
videohosting:
values: |-
{{ .Values.videohosting | toYaml }}
nextcloud:
values: |-
nextcloud:
@@ -30,7 +58,32 @@ apps:
nextcloudData:
storageClass: {{ .Values.global.nfs.storageClass }}
existingClaim: {{ .Values.storage.nextcloudData.name }}
ingresses: {}
ingresses:
values: |-
services:
- prefix: "argocd.core"
service: "argocd-server"
namespace: "argocd"
- prefix: "demo"
service: "dummy-app"
namespace: "apps-ingresses"
- prefix: "nextcloud"
service: "nextcloud"
namespace: "apps-nextcloud"
port: 8080
middleware: "apps-nextcloud-nextcloud"
{{ range $name, $data := .Values.videohosting.linuxserverServices }}
- prefix: "{{ $name }}.vh"
service: {{ $name }}
namespace: "apps-videohosting"
port: {{ $data.tcp.web }}
middleware: "ingresses-chain-authelia"
{{ end }}
- prefix: "plex"
service: "plex"
namespace: "apps-videohosting"
port: 32400
db-users:
namespace: chart-database
values: |-