From 732ae66d43d14677408442f098a326fd5374debc Mon Sep 17 00:00:00 2001 From: bvanroll Date: Thu, 15 May 2025 15:24:03 +0200 Subject: [PATCH] books :) --- k8s_manifests/ingress.yaml | 20 ++++++++++++ k8s_manifests/mylar3/deployment.yaml | 45 +++++++++++++++++++++++++++ k8s_manifests/mylar3/service.yaml | 14 +++++++++ k8s_manifests/readarr/deployment.yaml | 45 +++++++++++++++++++++++++++ k8s_manifests/readarr/service.yaml | 14 +++++++++ k8s_manifests/slskd/deployment.yaml | 7 +++++ 6 files changed, 145 insertions(+) create mode 100644 k8s_manifests/mylar3/deployment.yaml create mode 100644 k8s_manifests/mylar3/service.yaml create mode 100644 k8s_manifests/readarr/deployment.yaml create mode 100644 k8s_manifests/readarr/service.yaml diff --git a/k8s_manifests/ingress.yaml b/k8s_manifests/ingress.yaml index 1d8534b..9236fec 100644 --- a/k8s_manifests/ingress.yaml +++ b/k8s_manifests/ingress.yaml @@ -15,6 +15,26 @@ spec: name: svc-truenas port: number: 443 + - host: "mylar3.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-mylar3 + port: + number: 80 + - host: "readarr.local" + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: svc-readarr + port: + number: 80 - host: "tdarr.local" http: paths: diff --git a/k8s_manifests/mylar3/deployment.yaml b/k8s_manifests/mylar3/deployment.yaml new file mode 100644 index 0000000..9cb27e2 --- /dev/null +++ b/k8s_manifests/mylar3/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: mylar3 + labels: + app.kubernetes.io/name: mylar3 +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: mylar3 + template: + metadata: + labels: + app.kubernetes.io/name: mylar3 + spec: + volumes: + - name: nfs-vol + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/ + - name: config + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/config/mylar3 + containers: + - name: mylar3 + image: lscr.io/linuxserver/mylar3:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: UMASK + value: "002" + - name: TZ + value: "Etc/UTC" + ports: + - containerPort: 8090 + volumeMounts: + - name: config + mountPath: /config + - name: nfs-vol + mountPath: /media + diff --git a/k8s_manifests/mylar3/service.yaml b/k8s_manifests/mylar3/service.yaml new file mode 100644 index 0000000..6307179 --- /dev/null +++ b/k8s_manifests/mylar3/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: svc-mylar3 +spec: + selector: + app.kubernetes.io/name: mylar3 + ports: + - name: webui + protocol: TCP + port: 80 + targetPort: 8090 + + diff --git a/k8s_manifests/readarr/deployment.yaml b/k8s_manifests/readarr/deployment.yaml new file mode 100644 index 0000000..3ac6047 --- /dev/null +++ b/k8s_manifests/readarr/deployment.yaml @@ -0,0 +1,45 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: readarr + labels: + app.kubernetes.io/name: readarr +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/name: readarr + template: + metadata: + labels: + app.kubernetes.io/name: readarr + spec: + volumes: + - name: nfs-vol + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/ + - name: config + nfs: + server: 192.168.0.99 + path: /mnt/test1/media/config/readarr + containers: + - name: readarr + image: ghcr.io/hotio/readarr:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: UMASK + value: "002" + - name: TZ + value: "Etc/UTC" + ports: + - containerPort: 8787 + volumeMounts: + - name: config + mountPath: /config + - name: nfs-vol + mountPath: /media + diff --git a/k8s_manifests/readarr/service.yaml b/k8s_manifests/readarr/service.yaml new file mode 100644 index 0000000..3775fb2 --- /dev/null +++ b/k8s_manifests/readarr/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: svc-readarr +spec: + selector: + app.kubernetes.io/name: readarr + ports: + - name: webui + protocol: TCP + port: 80 + targetPort: 8787 + + diff --git a/k8s_manifests/slskd/deployment.yaml b/k8s_manifests/slskd/deployment.yaml index 5c1e0c6..7511816 100644 --- a/k8s_manifests/slskd/deployment.yaml +++ b/k8s_manifests/slskd/deployment.yaml @@ -26,6 +26,13 @@ spec: containers: - name: slskd image: slskd/slskd:latest + livenessProbe: + httpGet: + path: /health + port: 5030 + initialDelaySeconds: 60 + failureThreshold: 6 + periodSeconds: 10 env: - name: SLSKD_REMOTE_CONFIGURATION value: "true"