68 lines
1.6 KiB
YAML
68 lines
1.6 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: sonarr
|
|
namespace: arrstack
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: sonarr
|
|
serviceName: sonarr
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: sonarr
|
|
spec:
|
|
restartPolicy: Always
|
|
terminationGracePeriodSeconds: 60
|
|
securityContext:
|
|
fsGroup: 0
|
|
containers:
|
|
- name: sonarr
|
|
image: lscr.io/linuxserver/sonarr:4.0.17
|
|
resources:
|
|
requests:
|
|
cpu: 100m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 1.5Gi
|
|
env:
|
|
- name: PUID
|
|
value: "0"
|
|
- name: PGID
|
|
value: "0"
|
|
ports:
|
|
- containerPort: 8989
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
- name: media
|
|
subPath: "Anime Series"
|
|
mountPath: /anime
|
|
- name: media
|
|
subPath: "Series"
|
|
mountPath: /series
|
|
- name: media
|
|
subPath: Cartoon
|
|
mountPath: /cartoon
|
|
- name: media
|
|
subPath: Nostalgia
|
|
mountPath: /nostalgia
|
|
- name: media
|
|
subPath: Kdrama
|
|
mountPath: /kdrama
|
|
- name: downloads
|
|
mountPath: /downloads
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: sonarr-config
|
|
- name: media
|
|
persistentVolumeClaim:
|
|
claimName: smb-media
|
|
- name: downloads
|
|
persistentVolumeClaim:
|
|
claimName: smb-downloads
|