92 lines
No EOL
1.7 KiB
YAML
92 lines
No EOL
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: sabnzbd
|
|
namespace: media
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sabnzbd
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sabnzbd
|
|
spec:
|
|
containers:
|
|
- name: sabnzbd
|
|
image: lscr.io/linuxserver/sabnzbd:latest
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: PUID
|
|
value: "1000"
|
|
- name: PGID
|
|
value: "1000"
|
|
- name: TZ
|
|
value: "America/New_York"
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
resources:
|
|
requests:
|
|
memory: "512Mi"
|
|
cpu: "250m"
|
|
limits:
|
|
memory: "2Gi"
|
|
cpu: "1000m"
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: sabnzbd-config
|
|
- name: downloads
|
|
nfs:
|
|
server: 192.168.12.16
|
|
path: /Volume2/downloads
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: sabnzbd-config
|
|
namespace: media
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: longhorn
|
|
resources:
|
|
requests:
|
|
storage: 5Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: sabnzbd
|
|
namespace: media
|
|
spec:
|
|
selector:
|
|
app: sabnzbd
|
|
ports:
|
|
- port: 8080
|
|
targetPort: 8080
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: sabnzbd-ingress
|
|
namespace: media
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: sabnzbd.local
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: sabnzbd
|
|
port:
|
|
number: 8080 |