1
0
Fork 0

Compare commits

..

No commits in common. "23ef2d1a3d016c1f67c38c0d1e2e28059a92a114" and "7a170337a1052d75298f1664bb76ecc1e924f952" have entirely different histories.

12 changed files with 14 additions and 234 deletions

View File

@ -1,105 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: server
labels:
app.kubernetes.io/name: deluge
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: deluge
template:
metadata:
labels:
app.kubernetes.io/name: deluge
spec:
containers:
- image: lscr.io/linuxserver/deluge
name: deluge
ports:
- name: http
containerPort: 8112
- name: deluge-daemon
containerPort: 58846
- name: torrent-tcp
containerPort: 6881
hostPort: 6881
protocol: TCP
- name: torrent-udp
containerPort: 6881
hostPort: 6881
protocol: UDP
resources:
requests:
cpu: 1500m
memory: 250Mi
limits:
cpu: 1500m
memory: 250Mi
volumeMounts:
- name: deluge-config-pvc
mountPath: /config
volumes:
- name: deluge-config-pvc
persistentVolumeClaim:
claimName: deluge-config-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: deluge-config-pvc
labels:
app.kubernetes.io/name: deluge
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: Service
metadata:
name: webui
labels:
app.kubernetes.io/name: deluge
spec:
selector:
app.kubernetes.io/name: deluge
ports:
- name: http
port: 80
targetPort: http
---
apiVersion: v1
kind: Service
metadata:
name: daemon
labels:
app.kubernetes.io/name: deluge
spec:
type: NodePort
selector:
app.kubernetes.io/name: deluge
ports:
- port: 58846
targetPort: deluge-daemon
nodePort: 31000
---
apiVersion: v1
kind: Service
metadata:
name: torrent
labels:
app.kubernetes.io/name: deluge
spec:
type: NodePort
selector:
app.kubernetes.io/name: deluge
ports:
- port: 6881
targetPort: deluge-daemon
nodePort: 31001

View File

@ -1,19 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: webui
labels:
app.kubernetes.io/name: deluge
probe: blackbox-http
spec:
rules:
- host: ${DELUGE_EXTERNAL_HOST}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: webui
port:
name: http

View File

@ -1,25 +0,0 @@
resources:
- deluge-deployment.yaml
- deluge-ingress.yaml
namePrefix: deluge-
commonLabels:
app.kubernetes.io/name: deluge
configMapGenerator:
- name: kustomize-generated-config
literals:
- DELUGE_EXTERNAL_HOST=deluge.badjware.dev
replacements:
- source:
kind: ConfigMap
name: kustomize-generated-config
fieldPath: data.DELUGE_EXTERNAL_HOST
targets:
- select:
kind: Ingress
name: webui
fieldPaths:
- spec.rules.0.host

View File

@ -41,12 +41,6 @@ spec:
# value: "true"
- name: GF_INSTALL_PLUGINS
value: marcusolsson-json-datasource,marcusolsson-treemap-panel
- name: GF_FEATURE_TOGGLES_ENABLE
value: nestedFolders
- name: GF_AUTH_GENERIC_OAUTH_SKIP_ORG_ROLE_SYNC
value: "true"
- name: GF_AUTH_OAUTH_ALLOW_INSECURE_EMAIL_LOOKUP
value: "true"
args: ['--config', '/etc/grafana/provisioning/config/custom.ini']
readinessProbe:
failureThreshold: 3

View File

@ -7,7 +7,7 @@ spec:
apiVersion: apps/v1
kind: Deployment
name: server
minReplicas: 1
minReplicas: 2
maxReplicas: 4
metrics:
- type: Resource

View File

@ -16,26 +16,13 @@ spec:
labels:
app.kubernetes.io/name: jellyfin
spec:
# securityContext:
# runAsUser: 33
# runAsGroup: 33
# fsGroup: 33
affinity:
nodeAffinity:
# TODO: eviction policy
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
# we require to be scheduled on a raspberry pi for hardware transcoding to work
- key: kubernetes.io/arch
operator: In
values:
- arm64
securityContext:
runAsUser: 33
runAsGroup: 33
fsGroup: 33
containers:
- image: jellyfin/jellyfin
name: jellyfin
securityContext:
privileged: true # required for hardware transcode
env:
- name: JELLYFIN_PublishedServerUrl
value: ${JELLYFIN_EXTERNAL_URL}
@ -58,15 +45,6 @@ spec:
mountPath: /config
- name: jellyfin-cache-pvc
mountPath: /cache
- name: jellyfin-transcode
mountPath: /config/transcodes
# below mounts are for hardware transcode
- mountPath: /dev/video10
name: device-video10
- mountPath: /dev/video11
name: device-video11
- mountPath: /dev/video12
name: device-video12
volumes:
- name: jellyfin-config-pvc
persistentVolumeClaim:
@ -74,18 +52,6 @@ spec:
- name: jellyfin-cache-pvc
persistentVolumeClaim:
claimName: jellyfin-cache-pvc
- name: jellyfin-transcode
emptyDir:
sizeLimit: 80Gi
- name: device-video10 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video10
- name: device-video11 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video11
- name: device-video12 #Only needed if you want to use your Raspberry Pi V4L2 video encoding.
hostPath:
path: /dev/video12
---
apiVersion: v1
kind: PersistentVolumeClaim

View File

@ -17,7 +17,6 @@ spec:
app.kubernetes.io/component: cron
spec:
backoffLimit: 0 # no retry
ttlSecondsAfterFinished: 86400
template:
metadata:
labels:

View File

@ -17,7 +17,6 @@ spec:
app.kubernetes.io/component: previewgenerator
spec:
backoffLimit: 0 # no retry
ttlSecondsAfterFinished: 86400
template:
metadata:
labels:

View File

@ -9,7 +9,6 @@ resources:
- ../../overlays/nextcloud
- ../../overlays/home-assistant
- ../../overlays/jellyfin
- ../../overlays/deluge
# resources:
# - probes/external-services-bobcat-miner.yaml
@ -19,30 +18,28 @@ buildMetadata:
images:
- name: gitea/gitea
newTag: 1.20.1
newTag: 1.16.9
- name: grafana/grafana
newTag: 10.1.2
newTag: 9.4.3
# - name: prom/node-exporter
# newTag: v0.18.1
- name: prom/blackbox-exporter
newName: badjware/blackbox-exporter-tweak
newTag: 0.21.1
# - name: drone/drone
# newTag: 2.14.0
# - name: drone/drone-runner-kube
# newTag: 1.0.0-rc.3
- name: drone/drone
newTag: 2.14.0
- name: drone/drone-runner-kube
newTag: 1.0.0-rc.3
- name: nextcloud
newTag: 27.1.1
newTag: 26.0.2
- name: collabora/code
newTag: 23.05.4.2.1
newTag: 23.05.0.5.1
- name: nextcloud/aio-imaginary
newTag: 20230613_120442-latest-arm64
- name: homeassistant/home-assistant
newTag: 2023.9.2
newTag: 2023.5.4
- name: jellyfin/jellyfin
newTag: 10.8.10
- name: lscr.io/linuxserver/deluge
newTag: latest
- name: postgres
newTag: 9.6.23
- name: redis
@ -80,11 +77,6 @@ patches:
kind: Deployment
name: jellyfin-server
path: patches/jellyfin-deployment-patch.yaml
- target:
version: v1
kind: Deployment
name: deluge-server
path: patches/deluge-deployment-patch.yaml
# - target:
# version: v1
# kind: Prometheus

View File

@ -1,12 +0,0 @@
- op: add
path: /spec/template/spec/containers/0/volumeMounts/-
value:
name: share-media-downloads-nfs
mountPath: /share/media/Downloads
- op: add
path: /spec/template/spec/volumes/-
value:
name: share-media-downloads-nfs
nfs:
server: 192.168.20.30
path: /mnt/pool0/media/Downloads

View File

@ -1,5 +0,0 @@
resources:
- namespace.yaml
- ../../bases/deluge
namespace: deluge

View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: deluge