Quellcode durchsuchen

use new seedbox nfs srv

Josh Bicking vor 1 Tag
Ursprung
Commit
67d2e53c21
6 geänderte Dateien mit 36 neuen und 54 gelöschten Zeilen
  1. 6 11
      lidarr.yaml
  2. 1 1
      pulsarr.yaml
  3. 11 16
      qbittorrentvpn.yaml
  4. 6 11
      radarr.yaml
  5. 6 4
      seedbox-nfs.yaml
  6. 6 11
      sonarr.yaml

+ 6 - 11
lidarr.yaml

@@ -16,7 +16,7 @@ spec:
       labels:
         app: lidarr
       annotations:
-        backup.velero.io/backup-volumes-excludes: plex,seedbox,scratch
+        backup.velero.io/backup-volumes-excludes: plex,seedbox
     spec:
       containers:
       - name: lidarr
@@ -35,31 +35,26 @@ spec:
         volumeMounts:
         - mountPath: "/plex"
           name: plex
-        - mountPath: "/seedbox"
-          name: seedbox
         - mountPath: "/config"
           name: config
         - mountPath: "/scratch"
-          name: scratch
+          name: seedbox
         resources:
           requests:
             memory: "0"
           limits:
-            memory: "1Gi"
+            memory: "500Mi"
       volumes:
       - name: plex
         persistentVolumeClaim:
           claimName: plex-pvc
-      - name: seedbox
-        persistentVolumeClaim:
-          claimName: seedbox-pvc
       - name: config
         persistentVolumeClaim:
           claimName: lidarr-pvc
-      - name: scratch
+      - name: seedbox
         nfs:
-          server: 172.16.69.52
-          path: /data/torrents
+          server: 172.16.69.253
+          path: /seedbox/torrents
 ---
 apiVersion: v1
 kind: Service

+ 1 - 1
pulsarr.yaml

@@ -33,7 +33,7 @@ spec:
           requests:
             memory: "0"
           limits:
-            memory: "1Gi"
+            memory: "250Mi"
       - name: apprise
         image: caronc/apprise:latest
         imagePullPolicy: Always

+ 11 - 16
qbittorrentvpn.yaml

@@ -27,14 +27,9 @@ spec:
                 operator: In
                 values:
                 - "true"
-      tolerations:
-      - key: seedbox
-        operator: Equal
-        value: "true"
-        effect: NoSchedule
       containers:
       - name: qbittorrentvpn
-        image: binhex/arch-qbittorrentvpn:5.1.0-1-01
+        image: binhex/arch-qbittorrentvpn:5.1.4-1-01
         ports:
         - containerPort: 8080
           name: http-web-svc
@@ -47,8 +42,6 @@ spec:
           exec:
             command: ["curl", "--fail", "localhost:8080"]
         volumeMounts:
-        - mountPath: "/data"
-          name: seedbox
         - mountPath: "/media"
           name: media
         - mountPath: "/media2"
@@ -58,11 +51,13 @@ spec:
         - mountPath: "/config"
           name: config
         - mountPath: "/scratch"
-          name: scratch
+          name: seedbox
+        resources:
+          requests:
+            memory: "0"
+          limits:
+            memory: "4.5Gi"
       volumes:
-      - name: seedbox
-        persistentVolumeClaim:
-          claimName: seedbox-pvc
       - name: media
         persistentVolumeClaim:
           claimName: plex-pvc
@@ -75,9 +70,9 @@ spec:
       - name: config
         persistentVolumeClaim:
           claimName: qbittorrentvpn-pvc
-      - name: scratch
+      - name: seedbox
         hostPath:
-          path: /mnt/data/torrents
+          path: /seedbox/torrents
           type: Directory
 ---
 apiVersion: apps/v1
@@ -99,7 +94,7 @@ spec:
     spec:
       containers:
       - name: qbittorrentvpn-exporter
-        image: ghcr.io/esanchezm/prometheus-qbittorrent-exporter:v1.6.0
+        image: ghcr.io/esanchezm/prometheus-qbittorrent-exporter:latest
         ports:
         - containerPort: 8000
           name: metrics
@@ -228,7 +223,7 @@ spec:
                 # Vars to configure
                 namespace = 'plex'
                 qparams = {'labelSelector': 'app=qbittorrentvpn'}
-                max_runtime = datetime.timedelta(days=1)
+                max_runtime = datetime.timedelta(days=3)
 
                 # serviceaccount/k8s specific vars. Likely don't need to edit these.
                 serviceaccount_dir = '/var/run/secrets/kubernetes.io/serviceaccount'

+ 6 - 11
radarr.yaml

@@ -16,7 +16,7 @@ spec:
       labels:
         app: radarr
       annotations:
-        backup.velero.io/backup-volumes-excludes: plex,seedbox,scratch
+        backup.velero.io/backup-volumes-excludes: plex,seedbox
     spec:
       containers:
       - name: radarr
@@ -35,31 +35,26 @@ spec:
         volumeMounts:
         - mountPath: "/plex"
           name: plex
-        - mountPath: "/seedbox"
-          name: seedbox
         - mountPath: "/scratch"
-          name: scratch
+          name: seedbox
         - mountPath: "/config"
           name: config
         resources:
           requests:
             memory: "0"
           limits:
-            memory: "2Gi"
+            memory: "750Mi"
       volumes:
       - name: plex
         persistentVolumeClaim:
           claimName: plex-pvc
-      - name: seedbox
-        persistentVolumeClaim:
-          claimName: seedbox-pvc
       - name: config
         persistentVolumeClaim:
           claimName: radarr-pvc
-      - name: scratch
+      - name: seedbox
         nfs:
-          server: 172.16.69.52
-          path: /data/torrents
+          server: 172.16.69.253
+          path: /seedbox/torrents
 ---
 apiVersion: v1
 kind: Service

+ 6 - 4
seedbox-nfs.yaml

@@ -1,3 +1,4 @@
+# NOTE: rpcbind on a proxmix host conflicts with this container. Not using for now.
 ---
 apiVersion: v1
 kind: Namespace
@@ -56,7 +57,7 @@ spec:
       volumes:
       - name: data
         hostPath:
-          path: /mnt/data
+          path: /seedbox
           type: Directory
       - name: exports
         configMap:
@@ -72,7 +73,8 @@ metadata:
   namespace: nfs
 data:
   exports: |
-    /data 172.16.69.30(rw) 172.16.69.31(rw) 172.16.69.32(rw) 172.16.69.52(rw) 172.16.69.253(rw) 10.42.0.0/16(rw)
+    /seedbox 127.0.0.1(rw) 172.16.69.30(rw) 172.16.69.31(rw) 172.16.69.32(rw) 172.16.69.253(rw) 10.42.0.0/16(rw)
+
 
 # Testing NFS access from within a pod
 # ---
@@ -91,5 +93,5 @@ data:
 #   volumes:
 #   - name: test-volume
 #     nfs:
-#       server: 172.16.69.52
-#       path: /data
+#       server: 172.16.69.253
+#       path: /seedbox

+ 6 - 11
sonarr.yaml

@@ -16,7 +16,7 @@ spec:
       labels:
         app: sonarr
       annotations:
-        backup.velero.io/backup-volumes-excludes: plex,seedbox,scratch
+        backup.velero.io/backup-volumes-excludes: plex,seedbox
     spec:
       containers:
       - name: sonarr
@@ -35,31 +35,26 @@ spec:
         volumeMounts:
         - mountPath: "/plex"
           name: plex
-        - mountPath: "/seedbox"
-          name: seedbox
         - mountPath: "/config"
           name: config
         - mountPath: "/scratch"
-          name: scratch
+          name: seedbox
         resources:
           requests:
             memory: "0"
           limits:
-            memory: "2Gi"
+            memory: "750Mi"
       volumes:
       - name: plex
         persistentVolumeClaim:
           claimName: plex-pvc
-      - name: seedbox
-        persistentVolumeClaim:
-          claimName: seedbox-pvc
       - name: config
         persistentVolumeClaim:
           claimName: sonarr-pvc
-      - name: scratch
+      - name: seedbox
         nfs:
-          server: 172.16.69.52
-          path: /data/torrents
+          server: 172.16.69.253
+          path: /seedbox/torrents
 ---
 apiVersion: v1
 kind: Service