diff --git a/clusters/default/arr-stack/sabnzbd/sabnzbd-pvc.yml b/clusters/default/arr-stack/sabnzbd/sabnzbd-pvc.yml new file mode 100644 index 0000000..0133026 --- /dev/null +++ b/clusters/default/arr-stack/sabnzbd/sabnzbd-pvc.yml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: sabnzbd-longhorn + namespace: arr-stack +spec: + accessModes: + - ReadWriteOnce + volumeMode: Filesystem + resources: + requests: + storage: 1Gi + storageClassName: longhorn diff --git a/clusters/default/arr-stack/sabnzbd/sabnzbd-svc.yml b/clusters/default/arr-stack/sabnzbd/sabnzbd-svc.yml new file mode 100644 index 0000000..fa477b6 --- /dev/null +++ b/clusters/default/arr-stack/sabnzbd/sabnzbd-svc.yml @@ -0,0 +1,16 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: sabnzbd-service + namespace: arr-stack + annotations: + metallb.io/allow-shared-ip: "shared-ip-1" +spec: + loadBalancerIP: 192.168.1.230 + type: LoadBalancer + selector: + app: sabnzbd + ports: + - port: 8080 + targetPort: 8080 diff --git a/clusters/default/arr-stack/sabnzbd/sabnzbd.yml b/clusters/default/arr-stack/sabnzbd/sabnzbd.yml new file mode 100644 index 0000000..48c3d00 --- /dev/null +++ b/clusters/default/arr-stack/sabnzbd/sabnzbd.yml @@ -0,0 +1,40 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sabnzbd + namespace: arr-stack +spec: + strategy: + type: Recreate + selector: + matchLabels: + app: sabnzbd + template: + metadata: + labels: + app: sabnzbd + spec: + containers: + - name: sabnzbd + image: lscr.io/linuxserver/sabnzbd:latest + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "Asia/Kolkata" + volumeMounts: + - name: sabnzbd-config + mountPath: /config + - name: downloads + mountPath: /downloads + volumes: + - name: sabnzbd-config + persistentVolumeClaim: + claimName: sabnzbd-longhorn + - name: downloads + nfs: + server: 10.0.0.123 + path: /merge/downloads