2020-09-01 15:44:43 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: sabnzbd
|
|
|
|
namespace: pvr
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- protocol: TCP
|
|
|
|
name: web
|
|
|
|
port: 8080
|
|
|
|
selector:
|
|
|
|
app: sabnzbd
|
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: sabnzbd
|
|
|
|
namespace: pvr
|
|
|
|
labels:
|
|
|
|
app: sabnzbd
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: sabnzbd
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: sabnzbd
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: sabnzbd
|
2020-11-04 12:11:47 +00:00
|
|
|
image: registry.spamasaurus.com/proxy/linuxserver/sabnzbd
|
2020-09-01 15:44:43 +00:00
|
|
|
ports:
|
|
|
|
- name: web
|
|
|
|
containerPort: 8080
|
|
|
|
volumeMounts:
|
2020-10-12 12:17:09 +00:00
|
|
|
- mountPath: /config/sabnzbd.ini
|
|
|
|
subPath: sabnzbd.ini
|
2020-09-01 15:44:43 +00:00
|
|
|
name: flexvolsmb-sabnzbd-config
|
|
|
|
- mountPath: /downloads
|
|
|
|
subPath: downloads
|
2020-10-12 12:17:09 +00:00
|
|
|
name: smb-pvr-volatile
|
2020-09-01 15:44:43 +00:00
|
|
|
- mountPath: /incomplete-downloads
|
|
|
|
subPath: incomplete-downloads
|
2020-10-12 12:17:09 +00:00
|
|
|
name: smb-pvr-volatile
|
2020-09-01 15:44:43 +00:00
|
|
|
volumes:
|
|
|
|
- name: flexvolsmb-sabnzbd-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: flexvolsmb-sabnzbd-config
|
2020-10-12 12:17:09 +00:00
|
|
|
- name: smb-pvr-volatile
|
2020-09-01 15:44:43 +00:00
|
|
|
persistentVolumeClaim:
|
2020-10-12 12:17:09 +00:00
|
|
|
claimName: smb-pvr-volatile
|
2020-09-01 15:44:43 +00:00
|
|
|
---
|
|
|
|
apiVersion: traefik.containo.us/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: sabnzbd
|
|
|
|
namespace: pvr
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`download.pvr.spamasaurus.com`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: sabnzbd
|
|
|
|
port: 8080
|
|
|
|
middlewares:
|
2020-10-12 12:17:09 +00:00
|
|
|
- name: 2fa-authentication@file
|
|
|
|
- name: security-headers@file
|
2020-10-13 07:47:39 +00:00
|
|
|
- name: compression@file
|
2020-09-01 15:44:43 +00:00
|
|
|
tls:
|
|
|
|
options:
|
|
|
|
name: defaults@file
|
|
|
|
certResolver: default
|
|
|
|
domains:
|
|
|
|
- main: '*.pvr.spamasaurus.com'
|
|
|
|
sans:
|
|
|
|
- 'pvr.spamasaurus.com'
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolume
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-sabnzbd-config
|
|
|
|
namespace: pvr
|
|
|
|
spec:
|
|
|
|
capacity:
|
|
|
|
storage: 1Gi
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-sabnzbd-config
|
|
|
|
flexVolume:
|
|
|
|
driver: mount/smb
|
|
|
|
secretRef:
|
|
|
|
name: smb-secret
|
|
|
|
options:
|
|
|
|
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,uid=911,gid=911,iocharset=utf8
|
|
|
|
server: 192.168.11.225
|
|
|
|
share: /K3s.Volumes/sabnzbd/config
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: flexvolsmb-sabnzbd-config
|
|
|
|
namespace: pvr
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteMany
|
|
|
|
storageClassName: flexvolsmb-sabnzbd-config
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|