Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jellyfin #14

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion base/bazarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 6767
protocol: TCP
targetPort: 6767
name: webui
name: http-webui
selector:
run: bazarr
---
Expand Down
4 changes: 2 additions & 2 deletions base/emby.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 8096
protocol: TCP
targetPort: 8096
name: webui
name: http-webui
selector:
run: emby
---
Expand Down Expand Up @@ -55,4 +55,4 @@ spec:
subPath: media/tv
- mountPath: /movies
name: htpc-home
subPath: media/movies
subPath: media/movies
20 changes: 12 additions & 8 deletions base/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,31 @@ spec:
rules:
- http:
paths:
- path: /
# - path: /
# backend:
# serviceName: jellyfin
# servicePort: http-webui
- path: /jellyfin
backend:
serviceName: emby
servicePort: webui
serviceName: jellyfin
servicePort: http-webui
- path: /jackett
backend:
serviceName: jackett
servicePort: webui
servicePort: http-webui
- path: /sonarr
backend:
serviceName: sonarr
servicePort: webui
servicePort: http-webui
- path: /radarr
backend:
serviceName: radarr
servicePort: webui
servicePort: http-webui
- path: /bazarr
backend:
serviceName: bazarr
servicePort: webui
servicePort: http-webui
- path: /transmission
backend:
serviceName: transmission
servicePort: webui
servicePort: http-webui
2 changes: 1 addition & 1 deletion base/jackett.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 9117
protocol: TCP
targetPort: 9117
name: webui
name: http-webui
selector:
run: jackett
---
Expand Down
71 changes: 71 additions & 0 deletions base/jellyfin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
apiVersion: v1
kind: Service
metadata:
name: jellyfin
spec:
ports:
- name: http-webui
port: 8096
protocol: TCP
targetPort: 8096
selector:
run: jellyfin
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jellyfin
spec:
selector:
matchLabels:
run: jellyfin
template:
metadata:
labels:
run: jellyfin
spec:
containers:
- env:
- name: TZ
value: Pacific/Auckland
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: linuxserver/jellyfin
imagePullPolicy: IfNotPresent
name: jellyfin
ports:
- containerPort: 8096
protocol: TCP
- containerPort: 7359
protocol: UDP
- containerPort: 1900
protocol: UDP
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: jellyfin
- mountPath: /data/tv
name: htpc-home
subPath: media/tv
readOnly: True
- mountPath: /data/movies
name: htpc-home
readOnly: True
subPath: media/movies
3 changes: 2 additions & 1 deletion base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ resources:
- sonarr.yaml
- bazarr.yaml
- transmission.yaml
- emby.yaml
# - emby.yaml
- jellyfin.yaml
- ingress.yaml

patchesStrategicMerge:
Expand Down
2 changes: 1 addition & 1 deletion base/radarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 7878
protocol: TCP
targetPort: 7878
name: webui
name: http-webui
selector:
run: radarr
---
Expand Down
2 changes: 1 addition & 1 deletion base/sonarr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 8989
protocol: TCP
targetPort: 8989
name: webui
name: http-webui
selector:
run: sonarr
---
Expand Down
38 changes: 21 additions & 17 deletions base/transmission.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
- port: 9091
protocol: TCP
targetPort: 9091
name: webui
name: http-webui
selector:
run: transmission
---
Expand Down Expand Up @@ -45,20 +45,22 @@ spec:
- mountPath: /watch
name: htpc-home
subPath: watch
- name: setup-transmission
image: busybox
securityContext:
runAsUser: 1000
runAsGroup: 1000
command: ["sh", "-c"]
args:
- "echo starting;
echo '{\"download-dir\": \"/downloads\", \"rpc-whitelist-enabled\": false, \"rpc-host-whitelist-enabled\": false}' > /config/settings.json;
echo done;"
volumeMounts:
- mountPath: /config
name: htpc-home
subPath: transmission
# - name: setup-transmission
# image: busybox
# securityContext:
# runAsUser: 1000
# runAsGroup: 1000
# command:
# - sh
# - -c
# - |
# echo Saving settings.json
# echo '{"download-dir": "/downloads", "rpc-whitelist-enabled": false, "rpc-host-whitelist-enabled": false}' > /config/settings.json;
# echo settings.json successfully saved
# volumeMounts:
# - mountPath: /config
# name: htpc-home
# subPath: transmission
containers:
- name: transmission
image: linuxserver/transmission
Expand All @@ -69,6 +71,10 @@ spec:
value: "1000"
- name: PGID
value: "1000"
- name: WHITELIST
value: ""
- name: HOST_WHITELIST
value: ""
ports:
- containerPort: 9091
name: webui
Expand All @@ -79,7 +85,6 @@ spec:
- containerPort: 51413
name: torrent-udp
protocol: UDP
resources: {}
volumeMounts:
- mountPath: /config
name: htpc-home
Expand All @@ -90,4 +95,3 @@ spec:
- mountPath: /watch
name: htpc-home
subPath: watch

17 changes: 15 additions & 2 deletions base/volumes_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,32 @@ spec:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: emby
# spec:
# template:
# spec:
# volumes:
# - hostPath:
# path: /opt/htpc
# type: DirectoryOrCreate
# name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: emby
name: jellyfin
spec:
template:
spec:
volumes:
- hostPath:
path: /opt/htpc
type: DirectoryOrCreate
name: htpc-home
name: htpc-home
---
apiVersion: apps/v1
kind: Deployment
Expand Down
Loading