Procházet zdrojové kódy

add radarr & prowlarr, stop using sshfs

Josh Bicking před 1 rokem
rodič
revize
e9cf603736
5 změnil soubory, kde provedl 137 přidání a 17 odebrání
  1. 14 0
      prowlarr-pvc.yaml
  2. 51 0
      prowlarr.yaml
  3. 14 0
      radarr-pvc.yaml
  4. 56 0
      radarr.yaml
  5. 2 17
      sonarr.yaml

+ 14 - 0
prowlarr-pvc.yaml

@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: prowlarr-pvc
+  namespace: plex
+  labels:
+    app: prowlarr
+spec:
+  storageClassName: ceph-block
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 1Gi

+ 51 - 0
prowlarr.yaml

@@ -0,0 +1,51 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: prowlarr
+  namespace: plex
+spec:
+  selector:
+    matchLabels:
+      app: prowlarr
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: prowlarr
+    spec:
+      containers:
+      - name: prowlarr
+        image: lscr.io/linuxserver/prowlarr:develop-0.4.10.2111-ls77
+        ports:
+        - containerPort: 9696
+          name: http-web-svc
+        env:
+        - name: TZ
+          value: America/New_York
+        - name: PUID
+          value: "1000"
+        - name: PGID
+          value: "1000"
+        volumeMounts:
+        - mountPath: "/config"
+          name: config
+      volumes:
+      - name: config
+        persistentVolumeClaim:
+          claimName: prowlarr-pvc
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: prowlarr-service
+  namespace: plex
+spec:
+  selector:
+    app: prowlarr
+  type: ClusterIP
+  ports:
+  - name: prowlarr-web-port
+    protocol: TCP
+    port: 9696
+    targetPort: http-web-svc

+ 14 - 0
radarr-pvc.yaml

@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: PersistentVolumeClaim
+metadata:
+  name: radarr-pvc
+  namespace: plex
+  labels:
+    app: radarr
+spec:
+  storageClassName: ceph-block
+  accessModes:
+    - ReadWriteOnce
+  resources:
+    requests:
+      storage: 1Gi

+ 56 - 0
radarr.yaml

@@ -0,0 +1,56 @@
+---
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+  name: radarr
+  namespace: plex
+spec:
+  selector:
+    matchLabels:
+      app: radarr
+  replicas: 1
+  template:
+    metadata:
+      labels:
+        app: radarr
+    spec:
+      containers:
+      - name: radarr
+        image: lscr.io/linuxserver/radarr:develop-4.3.1.6822-ls79
+        ports:
+        - containerPort: 7878
+          name: http-web-svc
+        env:
+        - name: TZ
+          value: America/New_York
+        - name: PUID
+          value: "1000"
+        - name: PGID
+          value: "1000"
+        volumeMounts:
+        - mountPath: "/plex"
+          name: plex
+        - mountPath: "/config"
+          name: config
+      volumes:
+      - name: plex
+        persistentVolumeClaim:
+          claimName: plex-pvc
+      - name: config
+        persistentVolumeClaim:
+          claimName: radarr-pvc
+---
+apiVersion: v1
+kind: Service
+metadata:
+  name: radarr-service
+  namespace: plex
+spec:
+  selector:
+    app: radarr
+  type: ClusterIP
+  ports:
+  - name: radarr-web-port
+    protocol: TCP
+    port: 7878
+    targetPort: http-web-svc

+ 2 - 17
sonarr.yaml

@@ -16,15 +16,10 @@ spec:
     spec:
       containers:
       - name: sonarr
-        image: lscr.io/linuxserver/sonarr:4.0.0-v4
+        image: lscr.io/linuxserver/sonarr:develop-4.0.0.307-ls362
         ports:
         - containerPort: 8989
           name: http-web-svc
-        command:
-        - "/bin/bash"
-        - "-c"
-        # Mount an sshfs connection to the seedbox
-        - "apk update && apk add sshfs && cp remote-secrets/REMOTE_KEY /key && chown 600 /key && mkdir /remote && chown 1000:1000 /remote && sshfs -o allow_other,default_permissions,uid=1000,gid=1000,umask=002 $REMOTE -o IdentityFile=/key -o StrictHostKeyChecking=no /remote && /init"
         env:
         - name: TZ
           value: America/New_York
@@ -37,13 +32,6 @@ spec:
           name: plex
         - mountPath: "/config"
           name: config
-        - name: remote-secret
-          mountPath: /remote-secrets
-        envFrom:
-        - secretRef:
-            name: sonarr-remote-secret
-        securityContext:
-          privileged: true  # required for sshfs mount
       volumes:
       - name: plex
         persistentVolumeClaim:
@@ -51,9 +39,6 @@ spec:
       - name: config
         persistentVolumeClaim:
           claimName: sonarr-pvc
-      - name: remote-secret
-        secret:
-          secretName: sonarr-remote-secret
 ---
 apiVersion: v1
 kind: Service
@@ -68,4 +53,4 @@ spec:
   - name: sonarr-web-port
     protocol: TCP
     port: 8989
-    targetPort: http-web-svc
+    targetPort: http-web-svc