fixing everything

This commit is contained in:
Matt Reeves 2024-07-04 17:28:11 -04:00
parent cbfbd8ce9c
commit b5c5316a2a
8 changed files with 81 additions and 51 deletions

View file

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: headless-radarr
namespace: default
spec:
selector:
app: radarr
type: LoadBalancer
ports:
- port: 7878
targetPort: 7878
protocol: TCP

View file

@ -1,13 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: headless-sabnzbd
namespace: default
spec:
selector:
app: sabnzbd
type: LoadBalancer
ports:
- port: 8080
targetPort: 8080
protocol: TCP

View file

@ -1,12 +1,11 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: radarr
namespace: default
labels:
app: radarr
spec:
serviceName: headless-radarr
replicas: 1
selector:
matchLabels:
@ -27,9 +26,16 @@ spec:
value: "1000"
- name: TZ
value: America/New_York
resources:
requests:
memory: "512Mi"
cpu: "1"
limits:
memory: "4Gi"
cpu: "4"
volumeMounts:
- mountPath: /config
name: config
name: radarr-config
- mountPath: /data
name: nas
volumes:
@ -37,12 +43,33 @@ spec:
nfs:
path: /mnt/thePool/thePoolShare
server: 10.0.0.10
volumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
storageClassName: longhorn
- name: radarr-config
persistentVolumeClaim:
claimName: radarr-config
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: radarr-config
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
storageClassName: longhorn
---
apiVersion: v1
kind: Service
metadata:
name: headless-radarr
namespace: default
spec:
selector:
app: radarr
type: LoadBalancer
ports:
- port: 7878
targetPort: 7878
protocol: TCP

View file

@ -1,12 +1,11 @@
apiVersion: apps/v1
kind: StatefulSet
kind: Deployment
metadata:
name: sabnzbd
namespace: default
labels:
app: sabnzbd
spec:
serviceName: headless-sabnzbd
replicas: 1
selector:
matchLabels:
@ -27,9 +26,16 @@ spec:
value: "1000"
- name: TZ
value: America/New_York
resources:
requests:
memory: "512Mi"
cpu: "1"
limits:
memory: "4Gi"
cpu: "4"
volumeMounts:
- mountPath: /config
name: config
name: sabnzbd-config
- mountPath: /data
name: nas
volumes:
@ -37,12 +43,35 @@ spec:
nfs:
path: /mnt/thePool/thePoolShare
server: 10.0.0.10
volumeClaimTemplates:
- metadata:
name: config
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 2Gi
storageClassName: longhorn
- 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

View file

@ -9,5 +9,5 @@ spec:
- ReadWriteMany
nfs:
path: /mnt/thePool/thePoolShare
server: ${NAS_SERVER}
server: 10.0.0.10
persistentVolumeReclaimPolicy: Retain