sonarr
This commit is contained in:
142
sonarr/main.yaml
Normal file
142
sonarr/main.yaml
Normal file
@@ -0,0 +1,142 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/version: v3.0.8.1507
|
||||
helm.sh/chart: sonarr-16.3.2
|
||||
name: sonarr
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 8989
|
||||
protocol: TCP
|
||||
targetPort: http
|
||||
selector:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/name: sonarr
|
||||
type: ClusterIP
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/version: v3.0.8.1507
|
||||
helm.sh/chart: sonarr-16.3.2
|
||||
name: sonarr-config
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storageClassName: openebs-3-replicas
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/version: v3.0.8.1507
|
||||
helm.sh/chart: sonarr-16.3.2
|
||||
name: sonarr-media
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
storageClassName: nfs-storage
|
||||
volumeName: nfs-media-radarr
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: sonarr
|
||||
app.kubernetes.io/version: v3.0.8.1507
|
||||
helm.sh/chart: sonarr-16.3.2
|
||||
name: sonarr
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/name: sonarr
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/instance: sonarr
|
||||
app.kubernetes.io/name: sonarr
|
||||
spec:
|
||||
automountServiceAccountToken: true
|
||||
containers:
|
||||
- env:
|
||||
- name: PGID
|
||||
value: "1000"
|
||||
- name: PUID
|
||||
value: "1000"
|
||||
- name: TZ
|
||||
value: UTC
|
||||
image: lscr.io/linuxserver/sonarr:4.0.146
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
exec:
|
||||
command:
|
||||
- /usr/bin/env
|
||||
- bash
|
||||
- -c
|
||||
- curl --fail localhost:8989/api/v3/system/status?apiKey=`IFS=\> && while
|
||||
read -d \< E C; do if [[ $E = "ApiKey" ]]; then echo $C; fi; done <
|
||||
/config/config.xml`
|
||||
failureThreshold: 5
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 10
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 10
|
||||
name: sonarr
|
||||
ports:
|
||||
- containerPort: 8989
|
||||
name: http
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 3
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 10
|
||||
tcpSocket:
|
||||
port: 8989
|
||||
timeoutSeconds: 1
|
||||
startupProbe:
|
||||
failureThreshold: 30
|
||||
initialDelaySeconds: 0
|
||||
periodSeconds: 5
|
||||
tcpSocket:
|
||||
port: 8989
|
||||
timeoutSeconds: 1
|
||||
volumeMounts:
|
||||
- mountPath: /config
|
||||
name: config
|
||||
- mountPath: /media
|
||||
name: media
|
||||
dnsPolicy: ClusterFirst
|
||||
enableServiceLinks: true
|
||||
serviceAccountName: default
|
||||
volumes:
|
||||
- name: config
|
||||
persistentVolumeClaim:
|
||||
claimName: sonarr-config
|
||||
- name: media
|
||||
persistentVolumeClaim:
|
||||
claimName: sonarr-media
|
||||
Reference in New Issue
Block a user