1
0

2 Revīzijas ab8c40ded3 ... 9ea9e1dc63

Autors SHA1 Ziņojums Datums
  Josh Bicking 9ea9e1dc63 update image versions 4 dienas atpakaļ
  Josh Bicking 67d2e53c21 use new seedbox nfs srv 4 dienas atpakaļ
10 mainītis faili ar 54 papildinājumiem un 62 dzēšanām
  1. 1 1
      duplicati.yaml
  2. 6 11
      lidarr.yaml
  3. 1 1
      pulsarr.yaml
  4. 11 16
      qbittorrentvpn.yaml
  5. 6 11
      radarr.yaml
  6. 6 4
      seedbox-nfs.yaml
  7. 7 5
      shelly-plug-exporter.yaml
  8. 6 11
      sonarr.yaml
  9. 2 2
      syncthing.yaml
  10. 8 0
      traefik/helmchartconfig.yaml

+ 1 - 1
duplicati.yaml

@@ -20,7 +20,7 @@ spec:
     spec:
       containers:
       - name: duplicati
-        image: lscr.io/linuxserver/duplicati:2.1.0
+        image: lscr.io/linuxserver/duplicati:2.2.0
         ports:
         - containerPort: 8200
           name: http-web-svc

+ 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

+ 7 - 5
shelly-plug-exporter.yaml

@@ -22,13 +22,17 @@ spec:
     spec:
       containers:
       - name: shelly-plug-exporter
-        image: webdevops/shelly-plug-exporter:24.9.0
+        image: webdevops/shelly-plug-exporter:latest
         ports:
         - containerPort: 8080
           name: metrics
         env:
         - name: SHELLY_HOST_SHELLYPLUSES
           value: 172.16.69.80,172.16.69.81,172.16.69.82,172.16.69.83,172.16.69.84
+        - name: SHELLY_REQUEST_RETRY_COUNT
+          value: "2"
+        - name: SHELLY_REQUEST_RETRY_WAITTIMEMAX
+          value: 100ms
         - name: SHELLY_AUTH_USERNAME
           value: admin
         - name: SHELLY_AUTH_PASSWORD
@@ -37,10 +41,8 @@ spec:
               name: shelly-plug-exporter
               key: password
               optional: false
-        - name: LOG_DEBUG
-          value: "1"
-        - name: LOG_JSON
-          value: "0"
+        - name: LOG_LEVEL
+          value: "trace"
 ---
 apiVersion: v1
 kind: Service

+ 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

+ 2 - 2
syncthing.yaml

@@ -30,7 +30,7 @@ spec:
       hostNetwork: true
       containers:
         - name: syncthing
-          image: linuxserver/syncthing:1.27.2
+          image: linuxserver/syncthing:2.0.12
           imagePullPolicy: Always
           ports:
           - containerPort: 8384
@@ -53,7 +53,7 @@ spec:
       volumes:
       - name: data
         persistentVolumeClaim:
-          claimName: data-pvc
+          claimName: data-ec-pvc
       - name: config
         persistentVolumeClaim:
           claimName: syncthing-pvc

+ 8 - 0
traefik/helmchartconfig.yaml

@@ -37,6 +37,14 @@ spec:
         mountPath: "/config"
         type: configMap
 
+    ports:
+      gogsssh:
+        port: 2222
+        expose: 
+          default: true
+        exposedPort: 2222
+        protocol: TCP
+
     env:
       - name: CLOUDFLARE_EMAIL
         valueFrom: