Skip to content

Commit 4ce32da

Browse files
committed
add audioarr
1 parent e6c631f commit 4ce32da

File tree

8 files changed

+164
-0
lines changed

8 files changed

+164
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
name: audioarr
5+
spec:
6+
replicas: 1
7+
selector:
8+
matchLabels:
9+
app: readarr
10+
template:
11+
metadata:
12+
labels:
13+
app: readarr
14+
spec:
15+
containers:
16+
- name: readarr
17+
image: lscr.io/linuxserver/readarr:develop
18+
ports:
19+
- name: http
20+
containerPort: 8787
21+
protocol: TCP
22+
volumeMounts:
23+
- name: books-volume
24+
mountPath: /books
25+
- name: downloads-volume
26+
mountPath: /downloads
27+
- name: config-volume
28+
mountPath: /config
29+
env:
30+
- name: PUID
31+
value: "0"
32+
- name: GUID
33+
value: "0"
34+
- name: TZ
35+
value: America/Chicago
36+
volumes:
37+
- name: books-volume
38+
persistentVolumeClaim:
39+
claimName: readarr-books
40+
- name: downloads-volume
41+
persistentVolumeClaim:
42+
claimName: transmission-books-data
43+
- name: config-volume
44+
persistentVolumeClaim:
45+
claimName: audioarr-config-ceph
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
apiVersion: gateway.networking.k8s.io/v1
2+
kind: HTTPRoute
3+
metadata:
4+
name: audioarr
5+
namespace: media
6+
spec:
7+
parentRefs:
8+
- group: gateway.networking.k8s.io
9+
kind: Gateway
10+
name: robbinsdale
11+
namespace: envoy-gateway-system
12+
hostnames:
13+
- "audioarr.rajsingh.info"
14+
- "audioarr.lukehouge.com"
15+
rules:
16+
- backendRefs:
17+
- group: ""
18+
kind: Service
19+
name: audioarr
20+
port: 8787
21+
weight: 1
22+
matches:
23+
- path:
24+
type: PathPrefix
25+
value: /
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1beta1
3+
kind: Kustomization
4+
namespace: media
5+
resources:
6+
- deployment.yaml
7+
- service.yaml
8+
- pvc.yaml
9+
- httproute.yaml
10+
# - volsync-restore.yaml
11+
- volsync-backup.yaml
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: v1
2+
kind: PersistentVolumeClaim
3+
metadata:
4+
name: audioarr-config
5+
spec:
6+
accessModes:
7+
- ReadWriteMany
8+
resources:
9+
requests:
10+
storage: 1Gi
11+
storageClassName: nfs-truenas
12+
---
13+
apiVersion: v1
14+
kind: PersistentVolumeClaim
15+
metadata:
16+
name: audioarr-config-ceph
17+
spec:
18+
accessModes:
19+
- ReadWriteMany
20+
resources:
21+
requests:
22+
storage: 5Gi
23+
storageClassName: rook-cephfs
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
apiVersion: v1
2+
kind: Service
3+
metadata:
4+
name: audioarr
5+
spec:
6+
selector:
7+
app: readarr
8+
ports:
9+
- name: http
10+
port: 8787
11+
protocol: TCP
12+
targetPort: 8787
13+
type: ClusterIP
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: volsync.backube/v1alpha1
2+
kind: ReplicationDestination
3+
metadata:
4+
name: audioarr-config-nfs
5+
spec:
6+
trigger:
7+
schedule: "0 */8 * * *"
8+
rsync:
9+
copyMethod: Direct
10+
destinationPVC: audioarr-config
11+
---
12+
apiVersion: volsync.backube/v1alpha1
13+
kind: ReplicationSource
14+
metadata:
15+
name: audioarr-config-ceph
16+
spec:
17+
sourcePVC: audioarr-config-ceph
18+
trigger:
19+
schedule: "0 */8 * * *"
20+
rsync:
21+
sshKeys: volsync-rsync-dst-src-audioarr-nfs
22+
address: volsync-rsync-dst-audioarr-nfs
23+
copyMethod: Direct
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
apiVersion: volsync.backube/v1alpha1
2+
kind: ReplicationDestination
3+
metadata:
4+
name: audioarr-config-ceph
5+
spec:
6+
trigger:
7+
manual: first
8+
rsync:
9+
copyMethod: Direct
10+
destinationPVC: audioarr-config-ceph
11+
---
12+
apiVersion: volsync.backube/v1alpha1
13+
kind: ReplicationSource
14+
metadata:
15+
name: audioarr-config-nfs
16+
spec:
17+
sourcePVC: audioarr-config
18+
trigger:
19+
manual: first
20+
rsync:
21+
sshKeys: volsync-rsync-dst-src-audioarr-ceph
22+
address: volsync-rsync-dst-audioarr-ceph
23+
copyMethod: Direct

clusters/talos-robbinsdale/apps/media/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ resources:
1717
- ./transmission-music
1818
- ./readarr
1919
- ./transmission-books
20+
- ./audiorr
2021
- secret.yaml
2122
- httproute.yaml
2223
- namespace.yaml

0 commit comments

Comments
 (0)