Kubernetes.K3s.installLog/services/PVR/deploy-SABnzbd.yml

114 lines
2.4 KiB
YAML
Raw Normal View History

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
image: registry.spamasaurus.com/proxy/linuxserver/sabnzbd
ports:
- name: web
containerPort: 8080
volumeMounts:
2020-10-12 12:17:09 +00:00
- mountPath: /config/sabnzbd.ini
subPath: sabnzbd.ini
name: flexvolsmb-sabnzbd-config
- mountPath: /downloads
subPath: downloads
2020-10-12 12:17:09 +00:00
name: smb-pvr-volatile
- mountPath: /incomplete-downloads
subPath: incomplete-downloads
2020-10-12 12:17:09 +00:00
name: smb-pvr-volatile
volumes:
- name: flexvolsmb-sabnzbd-config
persistentVolumeClaim:
claimName: flexvolsmb-sabnzbd-config
2020-10-12 12:17:09 +00:00
- name: smb-pvr-volatile
persistentVolumeClaim:
2020-10-12 12:17:09 +00:00
claimName: smb-pvr-volatile
---
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
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