Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2023-11-13 21:05:51 +01:00
parent 6e6c4cd446
commit 6e68f9f9e1
5 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: lidarr
name: lidarr
spec:
replicas: 1
selector:
matchLabels:
app: lidarr
template:
metadata:
creationTimestamp: null
labels:
app: lidarr
spec:
containers:
- image: hotio/lidarr:release
name: lidarr
ports:
- name: http
containerPort: 7878
protocol: TCP
volumeMounts:
- name: config
mountPath: /config
- name: data
mountPath: /data
- name: downloads
mountPath: /downloads
volumes:
- name: config
persistentVolumeClaim:
claimName: lidarr-config-data
- name: torrents
emptyDir: {}
- name: data
persistentVolumeClaim:
claimName: smb-music
- name: downloads
persistentVolumeClaim:
claimName: smb-usenet

View File

@ -0,0 +1,35 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-music
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-music
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: smb-usenet
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: smb-usenet
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: lidarr-config-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storageClassName: local-path

View File

@ -0,0 +1,17 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: smb-music
provisioner: smb.csi.k8s.io
parameters:
source: "//172.20.0.17/flacstore"
csi.storage.k8s.io/node-stage-secret-name: smb-creds
csi.storage.k8s.io/node-stage-secret-namespace: kube-system
reclaimPolicy: Retain
volumeBindingMode: Immediate
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1001
- gid=1001
- noperm

View File

@ -0,0 +1,20 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: smb-usenet
provisioner: smb.csi.k8s.io
parameters:
source: "//172.20.0.58/data1"
subDir: "usenet"
csi.storage.k8s.io/node-stage-secret-name: smb-creds
csi.storage.k8s.io/node-stage-secret-namespace: kube-system
csi.storage.k8s.io/provisioner-secret-name: smb-creds
csi.storage.k8s.io/provisioner-secret-namespace: kube-system
reclaimPolicy: Retain
volumeBindingMode: Immediate
mountOptions:
- dir_mode=0777
- file_mode=0777
- uid=1001
- gid=1001
- noperm

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: lidarr
name: lidarr
spec:
ports:
- port: 80
targetPort: 8686
selector:
app: lidarr
type: LoadBalancer