adding sab

This commit is contained in:
Matt Reeves 2024-07-04 12:16:30 -04:00
parent a19074d204
commit cbfbd8ce9c
5 changed files with 66 additions and 23 deletions

View file

@ -32,11 +32,11 @@ spec:
name: config name: config
- mountPath: /data - mountPath: /data
name: nas name: nas
envFrom: volumes:
- secretRef: - name: nas
name: nas-secret nfs:
- configMapRef: path: /mnt/thePool/thePoolShare
name: nas-configmap server: 10.0.0.10
volumeClaimTemplates: volumeClaimTemplates:
- metadata: - metadata:
name: config name: config
@ -46,8 +46,3 @@ spec:
requests: requests:
storage: 5Gi storage: 5Gi
storageClassName: longhorn storageClassName: longhorn
volumes:
- name: nas
nfs:
path: ${EXPORT_PATH}
server: ${NAS_SERVER}

View file

@ -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

View file

@ -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

View file

@ -1,6 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: nas-configmap
data:
exportPath: /mnt/thePool/thePoolShare

View file

@ -1,7 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: nas-secret
type: Opaque
data:
server: MTAuMC4wLjEw