From 692e8fd9b64252f20947004f8a953f1ef3dbdf42 Mon Sep 17 00:00:00 2001 From: William P Date: Thu, 18 Sep 2025 17:41:47 -0400 Subject: [PATCH] add arr-stack --- arr-stack/radarr/deployment.yaml | 41 ++++++++++++++++++++++++++++++++ arr-stack/radarr/pvc.yaml | 11 +++++++++ arr-stack/tunnel/deployment.yaml | 33 +++++++++++++++++++++++++ arr-stack/tunnel/ssh-keys.yaml | 28 ++++++++++++++++++++++ arr-stack/tunnel/svc.yaml | 14 +++++++++++ 5 files changed, 127 insertions(+) create mode 100644 arr-stack/radarr/deployment.yaml create mode 100644 arr-stack/radarr/pvc.yaml create mode 100644 arr-stack/tunnel/deployment.yaml create mode 100644 arr-stack/tunnel/ssh-keys.yaml create mode 100644 arr-stack/tunnel/svc.yaml diff --git a/arr-stack/radarr/deployment.yaml b/arr-stack/radarr/deployment.yaml new file mode 100644 index 0000000..20972d5 --- /dev/null +++ b/arr-stack/radarr/deployment.yaml @@ -0,0 +1,41 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: radarr +spec: + replicas: 1 + selector: + matchLabels: + app: radarr + template: + metadata: + labels: + app: radarr + spec: + containers: + - name: radarr + image: linuxserver/radarr:version-5.27.5.10198 + volumeMounts: + - name: downloads + mountPath: /mnt/Downloads + - name: movies + mountPath: /mnt/movies + resources: + limits: + memory: "1Gi" + cpu: "1" + requests: + memory: "512Mi" + cpu: "0.5" + volumes: + - name: config + persistentVolumeClaim: + claimName: radarr-config + - name: movies + nfs: + server: 10.105.15.20 + path: /mnt/hdd-pool/movies + - name: downloads + nfs: + server: 10.105.15.20 + path: /mnt/hdd-pool/syncthing-downloads \ No newline at end of file diff --git a/arr-stack/radarr/pvc.yaml b/arr-stack/radarr/pvc.yaml new file mode 100644 index 0000000..b60b7f6 --- /dev/null +++ b/arr-stack/radarr/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: radarr-config +spec: + resources: + requests: + storage: 10Gi + volumeMode: Filesystem + accessModes: + - ReadWriteMany diff --git a/arr-stack/tunnel/deployment.yaml b/arr-stack/tunnel/deployment.yaml new file mode 100644 index 0000000..b27e12b --- /dev/null +++ b/arr-stack/tunnel/deployment.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: deluge-tunnel +spec: + selector: + matchLabels: + app: deluge-tunnel + template: + metadata: + labels: + app: deluge-tunnel + spec: + containers: + - name: deluge-tunnel + image: kroniak/ssh-client:3.21 + command: ["/bin/sh", "-c", "ssh -o StrictHostKeyChecking=no weyma-talos@45.152.211.243 -p 2222 -L 0.0.0.0:58846:127.0.0.1:58846 -L 0.0.0.0:8112:127.0.0.1:8112 -N"] + volumeMounts: + - name: ssh-keys + mountPath: /root/.ssh + resources: + limits: + memory: "512Mi" + cpu: "500m" + requests: + memory: "128Mi" + cpu: "200m" + volumes: + - name: ssh-keys + secret: + defaultMode: 0400 + secretName: ssh-keys + diff --git a/arr-stack/tunnel/ssh-keys.yaml b/arr-stack/tunnel/ssh-keys.yaml new file mode 100644 index 0000000..e9c780f --- /dev/null +++ b/arr-stack/tunnel/ssh-keys.yaml @@ -0,0 +1,28 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: ssh-keys +spec: + data: + - remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: deluge-ssh + metadataPolicy: None + property: private + secretKey: id_ed25519 + - remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: deluge-ssh + metadataPolicy: None + property: public + secretKey: id_ed25519.pub + refreshInterval: 1h + secretStoreRef: + kind: ClusterSecretStore + name: weyma-vault + target: + creationPolicy: Owner + deletionPolicy: Retain + name: ssh-keys \ No newline at end of file diff --git a/arr-stack/tunnel/svc.yaml b/arr-stack/tunnel/svc.yaml new file mode 100644 index 0000000..28d77f4 --- /dev/null +++ b/arr-stack/tunnel/svc.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: deluge +spec: + selector: + app: deluge-tunnel + ports: + - port: 58846 + targetPort: 58846 + name: deluge + - port: 8112 + targetPort: 8112 + name: web