From cbfbd8ce9c23f24501007c253a95fae9ff1da28e Mon Sep 17 00:00:00 2001 From: Matt Reeves Date: Thu, 4 Jul 2024 12:16:30 -0400 Subject: [PATCH] adding sab --- apps/production/radarr/deployment.yaml | 15 +++----- apps/production/sab/deployment.yaml | 48 ++++++++++++++++++++++++++ apps/production/sab/service.yaml | 13 +++++++ configmaps/nas-configmap.yaml | 6 ---- secrets/nas-secret.yaml | 7 ---- 5 files changed, 66 insertions(+), 23 deletions(-) create mode 100644 apps/production/sab/deployment.yaml create mode 100644 apps/production/sab/service.yaml delete mode 100644 configmaps/nas-configmap.yaml delete mode 100644 secrets/nas-secret.yaml diff --git a/apps/production/radarr/deployment.yaml b/apps/production/radarr/deployment.yaml index c385577..5ea4311 100644 --- a/apps/production/radarr/deployment.yaml +++ b/apps/production/radarr/deployment.yaml @@ -32,11 +32,11 @@ spec: name: config - mountPath: /data name: nas - envFrom: - - secretRef: - name: nas-secret - - configMapRef: - name: nas-configmap + volumes: + - name: nas + nfs: + path: /mnt/thePool/thePoolShare + server: 10.0.0.10 volumeClaimTemplates: - metadata: name: config @@ -46,8 +46,3 @@ spec: requests: storage: 5Gi storageClassName: longhorn - volumes: - - name: nas - nfs: - path: ${EXPORT_PATH} - server: ${NAS_SERVER} diff --git a/apps/production/sab/deployment.yaml b/apps/production/sab/deployment.yaml new file mode 100644 index 0000000..f7fdc6f --- /dev/null +++ b/apps/production/sab/deployment.yaml @@ -0,0 +1,48 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: sabnzbd + namespace: default + labels: + app: sabnzbd +spec: + serviceName: headless-sabnzbd + replicas: 1 + selector: + matchLabels: + app: sabnzbd + template: + metadata: + labels: + app: sabnzbd + spec: + containers: + - name: sabnzbd + image: ghcr.io/linuxserver/sabnzbd@sha256:36bdeef099e87a0da24e5b87d88abde93cd188a24511a4bfb214372824201f00 + imagePullPolicy: IfNotPresent + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: America/New_York + volumeMounts: + - mountPath: /config + name: config + - mountPath: /data + name: nas + volumes: + - name: nas + nfs: + path: /mnt/thePool/thePoolShare + server: 10.0.0.10 + volumeClaimTemplates: + - metadata: + name: config + spec: + accessModes: ["ReadWriteOnce"] + resources: + requests: + storage: 2Gi + storageClassName: longhorn diff --git a/apps/production/sab/service.yaml b/apps/production/sab/service.yaml new file mode 100644 index 0000000..bec4e7c --- /dev/null +++ b/apps/production/sab/service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: headless-sabnzbd + namespace: default +spec: + selector: + app: sabnzbd + type: LoadBalancer + ports: + - port: 8080 + targetPort: 8080 + protocol: TCP diff --git a/configmaps/nas-configmap.yaml b/configmaps/nas-configmap.yaml deleted file mode 100644 index 5b7177b..0000000 --- a/configmaps/nas-configmap.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: nas-configmap -data: - exportPath: /mnt/thePool/thePoolShare diff --git a/secrets/nas-secret.yaml b/secrets/nas-secret.yaml deleted file mode 100644 index 787dea0..0000000 --- a/secrets/nas-secret.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: nas-secret -type: Opaque -data: - server: MTAuMC4wLjEw