2024-07-04 12:16:30 -04:00
|
|
|
apiVersion: apps/v1
|
2024-07-04 17:28:11 -04:00
|
|
|
kind: Deployment
|
2024-07-04 12:16:30 -04:00
|
|
|
metadata:
|
|
|
|
name: sabnzbd
|
|
|
|
namespace: default
|
|
|
|
labels:
|
|
|
|
app: sabnzbd
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: sabnzbd
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: sabnzbd
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: sabnzbd
|
2024-07-24 23:01:22 -04:00
|
|
|
image: ghcr.io/linuxserver/sabnzbd@sha256:d6a2a967d47b495c5342bc23de76d35eeb2f3ceb53c7be51885ad25f95dffe9b
|
2024-07-04 12:16:30 -04:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
env:
|
|
|
|
- name: PUID
|
|
|
|
value: "1000"
|
|
|
|
- name: PGID
|
|
|
|
value: "1000"
|
|
|
|
- name: TZ
|
|
|
|
value: America/New_York
|
2024-07-04 17:28:11 -04:00
|
|
|
resources:
|
|
|
|
requests:
|
2024-07-07 00:36:06 -04:00
|
|
|
memory: "512Mi"
|
|
|
|
cpu: "500m"
|
2024-07-04 17:28:11 -04:00
|
|
|
limits:
|
2024-07-07 00:36:06 -04:00
|
|
|
memory: "750Mi"
|
|
|
|
cpu: "750m"
|
2024-07-04 12:16:30 -04:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /config
|
2024-07-04 17:28:11 -04:00
|
|
|
name: sabnzbd-config
|
2024-07-04 12:16:30 -04:00
|
|
|
- mountPath: /data
|
|
|
|
name: nas
|
|
|
|
volumes:
|
|
|
|
- name: nas
|
|
|
|
nfs:
|
|
|
|
path: /mnt/thePool/thePoolShare
|
|
|
|
server: 10.0.0.10
|
2024-07-04 17:28:11 -04:00
|
|
|
- name: sabnzbd-config
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: sabnzbd-config
|
|
|
|
nodeSelector:
|
|
|
|
kubernetes.io/hostname: k3s-master3
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
metadata:
|
|
|
|
name: sabnzbd-config
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
accessModes:
|
|
|
|
- ReadWriteOnce
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 2Gi
|
|
|
|
storageClassName: longhorn
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: headless-sabnzbd
|
|
|
|
namespace: default
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: sabnzbd
|
|
|
|
ports:
|
|
|
|
- port: 8080
|
|
|
|
targetPort: 8080
|
|
|
|
protocol: TCP
|
2024-07-06 09:22:18 -04:00
|
|
|
type: ClusterIP
|
|
|
|
---
|
|
|
|
apiVersion: traefik.io/v1alpha1
|
|
|
|
kind: IngressRoute
|
|
|
|
metadata:
|
|
|
|
name: sabnzbd
|
|
|
|
namespace: default
|
|
|
|
annotations:
|
|
|
|
kubernetes.io/ingress.class: traefik-external
|
|
|
|
spec:
|
|
|
|
entryPoints:
|
|
|
|
- websecure
|
|
|
|
routes:
|
|
|
|
- match: Host(`sabnzbd.local.mafyuh.com`)
|
|
|
|
kind: Rule
|
|
|
|
services:
|
|
|
|
- name: headless-sabnzbd
|
|
|
|
port: 8080
|
|
|
|
middlewares:
|
|
|
|
- name: default-headers
|
|
|
|
tls:
|
|
|
|
secretName: local-mafyuh-com-production-tls
|