Compare commits
2 commits
4a49889fde
...
4e762703ba
Author | SHA1 | Date | |
---|---|---|---|
4e762703ba | |||
b5c5316a2a |
8 changed files with 81 additions and 51 deletions
|
@ -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
|
|
|
@ -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
|
|
|
@ -1,12 +1,11 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: radarr
|
name: radarr
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: radarr
|
app: radarr
|
||||||
spec:
|
spec:
|
||||||
serviceName: headless-radarr
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -27,9 +26,16 @@ spec:
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: America/New_York
|
value: America/New_York
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "1"
|
||||||
|
limits:
|
||||||
|
memory: "4Gi"
|
||||||
|
cpu: "4"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: radarr-config
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: nas
|
name: nas
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -37,12 +43,33 @@ spec:
|
||||||
nfs:
|
nfs:
|
||||||
path: /mnt/thePool/thePoolShare
|
path: /mnt/thePool/thePoolShare
|
||||||
server: 10.0.0.10
|
server: 10.0.0.10
|
||||||
volumeClaimTemplates:
|
- name: radarr-config
|
||||||
- metadata:
|
persistentVolumeClaim:
|
||||||
name: config
|
claimName: radarr-config
|
||||||
spec:
|
---
|
||||||
accessModes: ["ReadWriteOnce"]
|
apiVersion: v1
|
||||||
resources:
|
kind: PersistentVolumeClaim
|
||||||
requests:
|
metadata:
|
||||||
storage: 5Gi
|
name: radarr-config
|
||||||
storageClassName: longhorn
|
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
|
|
@ -1,12 +1,11 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: sabnzbd
|
name: sabnzbd
|
||||||
namespace: default
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: sabnzbd
|
app: sabnzbd
|
||||||
spec:
|
spec:
|
||||||
serviceName: headless-sabnzbd
|
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -27,9 +26,16 @@ spec:
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: America/New_York
|
value: America/New_York
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "512Mi"
|
||||||
|
cpu: "1"
|
||||||
|
limits:
|
||||||
|
memory: "4Gi"
|
||||||
|
cpu: "4"
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /config
|
- mountPath: /config
|
||||||
name: config
|
name: sabnzbd-config
|
||||||
- mountPath: /data
|
- mountPath: /data
|
||||||
name: nas
|
name: nas
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -37,12 +43,35 @@ spec:
|
||||||
nfs:
|
nfs:
|
||||||
path: /mnt/thePool/thePoolShare
|
path: /mnt/thePool/thePoolShare
|
||||||
server: 10.0.0.10
|
server: 10.0.0.10
|
||||||
volumeClaimTemplates:
|
- name: sabnzbd-config
|
||||||
- metadata:
|
persistentVolumeClaim:
|
||||||
name: config
|
claimName: sabnzbd-config
|
||||||
spec:
|
nodeSelector:
|
||||||
accessModes: ["ReadWriteOnce"]
|
kubernetes.io/hostname: k3s-master3
|
||||||
resources:
|
---
|
||||||
requests:
|
apiVersion: v1
|
||||||
storage: 2Gi
|
kind: PersistentVolumeClaim
|
||||||
storageClassName: longhorn
|
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
|
|
@ -9,5 +9,5 @@ spec:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
nfs:
|
nfs:
|
||||||
path: /mnt/thePool/thePoolShare
|
path: /mnt/thePool/thePoolShare
|
||||||
server: ${NAS_SERVER}
|
server: 10.0.0.10
|
||||||
persistentVolumeReclaimPolicy: Retain
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
|
Loading…
Reference in a new issue