kub/cluster/apps/production/sab/sabnzbd.yaml

78 lines
1.6 KiB
YAML
Raw Normal View History

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
image: ghcr.io/linuxserver/sabnzbd@sha256:36bdeef099e87a0da24e5b87d88abde93cd188a24511a4bfb214372824201f00
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:
memory: "512Mi"
cpu: "1"
limits:
memory: "4Gi"
cpu: "4"
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
type: LoadBalancer
ports:
- port: 8080
targetPort: 8080
protocol: TCP