Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c045e7698c | |||
| e9673606c8 | |||
| 29e90352cb | |||
| c87944b3c3 | |||
| dd00e71632 | |||
| 0e225e1278 | |||
| da8a88b949 | |||
| 0a53d8e0c8 | |||
| 1fe9a17874 | |||
| f8318860c8 | |||
| 45f6a49863 | |||
| 6a88b2d6dd |
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: apps
|
||||||
|
labels:
|
||||||
|
kubernetes.io/metadata.name: apps
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: media-data
|
||||||
|
namespace: media
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany
|
||||||
|
storageClassName: longhorn
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 500Gi
|
||||||
@@ -5,7 +5,7 @@ metadata:
|
|||||||
namespace: media
|
namespace: media
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteOnce
|
||||||
storageClassName: longhorn
|
storageClassName: longhorn
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
|
|||||||
@@ -10,6 +10,11 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: readarr
|
app: readarr
|
||||||
|
strategy:
|
||||||
|
type: RollingUpdate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 1
|
||||||
|
maxUnavailable: 0
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -17,7 +22,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: readarr
|
- name: readarr
|
||||||
image: readarr/readarr:develop
|
image: ghcr.io/readarr/readarr:develop
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8787
|
- containerPort: 8787
|
||||||
name: http
|
name: http
|
||||||
@@ -33,8 +38,6 @@ spec:
|
|||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: books
|
- name: books
|
||||||
mountPath: /books
|
mountPath: /books
|
||||||
- name: media-data
|
|
||||||
mountPath: /media
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@@ -42,6 +45,3 @@ spec:
|
|||||||
- name: books
|
- name: books
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: readarr-books
|
claimName: readarr-books
|
||||||
- name: media-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: media-data
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: sonarr
|
app: sonarr
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -17,30 +19,38 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: sonarr
|
- name: sonarr
|
||||||
image: lscr.io/linuxserver/sonarr:develop
|
image: lscr.io/linuxserver/sonarr:latest
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8989
|
- containerPort: 8989
|
||||||
|
name: http
|
||||||
env:
|
env:
|
||||||
- name: PUID
|
- name: PUID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: PGID
|
- name: PGID
|
||||||
value: "1000"
|
value: "1000"
|
||||||
- name: TZ
|
- name: TZ
|
||||||
value: UTC
|
value: Etc/UTC
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /config
|
mountPath: /config
|
||||||
- name: tv
|
|
||||||
mountPath: /tv
|
|
||||||
- name: downloads
|
- name: downloads
|
||||||
mountPath: /downloads
|
mountPath: /downloads
|
||||||
|
- name: media-data
|
||||||
|
mountPath: /media
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 256Mi
|
||||||
|
limits:
|
||||||
|
cpu: 500m
|
||||||
|
memory: 512Mi
|
||||||
volumes:
|
volumes:
|
||||||
- name: config
|
- name: config
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sonarr-config
|
claimName: sonarr-config
|
||||||
- name: tv
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: media-data
|
|
||||||
- name: downloads
|
- name: downloads
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: sonarr-downloads
|
claimName: sonarr-downloads
|
||||||
|
- name: media-data
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: media-data
|
||||||
Reference in New Issue
Block a user