add readarr

This commit is contained in:
2025-04-22 18:55:54 +02:00
parent 80a6fee1c5
commit 8fd772ee8b
31 changed files with 263 additions and 748 deletions

View File

@ -1,17 +0,0 @@
{{- if .Values.persistence.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "jackett.fullname" . }}-config
labels:
{{- include "jackett.labels" . | nindent 4 }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
{{- if .Values.persistence.storageClass }}
storageClassName: {{ .Values.persistence.storageClass | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
{{- end }}

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "jackett.fullname" . }}-test-connection"
labels:
{{- include "jackett.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "jackett.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@ -1,63 +0,0 @@
# Default values for jackett.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: linuxserver/jackett
pullPolicy: IfNotPresent
tag: "latest"
# Security context for the container
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
# Configurable user and group IDs
securityContext:
PUID: 1000
PGID: 1000
service:
type: ClusterIP
port: 9117
# Environment variables
env:
TZ: "UTC"
# Auto-upgrade the application
AUTO_UPDATE: "true"
# Persistence configuration
persistence:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
# Path where Jackett stores its data
mountPath: /config
ingress:
enabled: false
className: "nginx"
annotations: {}
hosts:
- host: jackett.local
paths:
- path: /
pathType: Prefix
tls: []
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 128Mi
nodeSelector: {}
tolerations: []
affinity: {}

View File

@ -41,22 +41,20 @@ service:
port: 5055 port: 5055
ingress: ingress:
enabled: false enabled: true
className: "nginx" className: "nginx"
annotations: {} annotations:
# kubernetes.io/ingress.class: nginx cert-manager.io/cluster-issuer: "letsencrypt"
# kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true"
# nginx.ingress.kubernetes.io/rewrite-target: /
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
hosts: hosts:
- host: overseerr.local - host: overseerr.media.mumme-it.de
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: [] tls:
# - secretName: overseerr-tls - secretName: overseerr-tls
# hosts: hosts:
# - overseerr.local - overseerr.media.mumme-it.de
resources: resources:
limits: limits:
@ -80,33 +78,18 @@ autoscaling:
minReplicas: 1 minReplicas: 1
maxReplicas: 100 maxReplicas: 100
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes: [] volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts: [] volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
# Environment variables # Environment variables
env: env:
TZ: "UTC" TZ: "UTC"
# Log level (debug, info, warn, error)
LOG_LEVEL: "info" LOG_LEVEL: "info"
# Port that overseerr will listen on
PORT: "5055" PORT: "5055"
# Persistence configuration # Persistence configuration

View File

@ -1,23 +0,0 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

View File

@ -1,24 +0,0 @@
apiVersion: v2
name: qbittorrent
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

View File

@ -1,22 +0,0 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "qbittorrent.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "qbittorrent.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "qbittorrent.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "qbittorrent.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}

View File

@ -1,62 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "qbittorrent.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "qbittorrent.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "qbittorrent.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "qbittorrent.labels" -}}
helm.sh/chart: {{ include "qbittorrent.chart" . }}
{{ include "qbittorrent.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "qbittorrent.selectorLabels" -}}
app.kubernetes.io/name: {{ include "qbittorrent.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "qbittorrent.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "qbittorrent.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

View File

@ -1,84 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "qbittorrent.fullname" . }}
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "qbittorrent.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "qbittorrent.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: TZ
value: {{ .Values.env.TZ | quote }}
- name: PUID
value: {{ .Values.securityContext.PUID | quote }}
- name: PGID
value: {{ .Values.securityContext.PGID | quote }}
- name: WEBUI_PORT
value: {{ .Values.env.WEBUI_PORT | quote }}
ports:
- name: webui
containerPort: {{ .Values.service.webui.port }}
protocol: TCP
- name: bittorrent
containerPort: {{ .Values.service.bittorrent.port }}
protocol: {{ .Values.service.bittorrent.protocol }}
volumeMounts:
- name: config
mountPath: {{ .Values.persistence.config.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
livenessProbe:
httpGet:
path: /
port: webui
readinessProbe:
httpGet:
path: /
port: webui
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes:
- name: config
{{- if .Values.persistence.config.enabled }}
persistentVolumeClaim:
claimName: {{ include "qbittorrent.fullname" . }}-config
{{- else }}
emptyDir: {}
{{- end }}
- name: downloads
{{- if .Values.persistence.downloads.enabled }}
persistentVolumeClaim:
claimName: {{ include "qbittorrent.fullname" . }}-downloads
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

View File

@ -1,61 +0,0 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "qbittorrent.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

View File

@ -1,35 +0,0 @@
{{- if .Values.persistence.config.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "qbittorrent.fullname" . }}-config
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
spec:
accessModes:
- {{ .Values.persistence.config.accessMode | quote }}
{{- if .Values.persistence.config.storageClass }}
storageClassName: {{ .Values.persistence.config.storageClass | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.config.size | quote }}
{{- end }}
---
{{- if .Values.persistence.downloads.enabled }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "qbittorrent.fullname" . }}-downloads
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
spec:
accessModes:
- {{ .Values.persistence.downloads.accessMode | quote }}
{{- if .Values.persistence.downloads.storageClass }}
storageClassName: {{ .Values.persistence.downloads.storageClass | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.downloads.size | quote }}
{{- end }}

View File

@ -1,19 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "qbittorrent.fullname" . }}
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.webui.port }}
targetPort: webui
protocol: TCP
name: webui
- port: {{ .Values.service.bittorrent.port }}
targetPort: bittorrent
protocol: {{ .Values.service.bittorrent.protocol }}
name: bittorrent
selector:
{{- include "qbittorrent.selectorLabels" . | nindent 4 }}

View File

@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "qbittorrent.fullname" . }}-test-connection"
labels:
{{- include "qbittorrent.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "qbittorrent.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never

View File

@ -5,14 +5,23 @@ metadata:
labels: labels:
{{- include "radarr.labels" . | nindent 4 }} {{- include "radarr.labels" . | nindent 4 }}
spec: spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
{{- end }}
selector: selector:
matchLabels: matchLabels:
{{- include "radarr.selectorLabels" . | nindent 6 }} {{- include "radarr.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels: labels:
{{- include "radarr.selectorLabels" . | nindent 8 }} {{- include "radarr.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec: spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
@ -22,62 +31,37 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: TZ {{- range .Values.env }}
value: {{ .Values.env.TZ | quote }} - name: {{ .name }}
- name: PUID value: {{ .value | quote }}
value: {{ .Values.securityContext.PUID | quote }} {{- end }}
- name: PGID
value: {{ .Values.securityContext.PGID | quote }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: {{ .Values.persistence.config.mountPath }} mountPath: {{ .Values.persistence.config.mountPath }}
- name: movies - name: media
mountPath: {{ .Values.persistence.movies.mountPath }} mountPath: {{ .Values.persistence.media.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumes: volumes:
- name: config - name: config
{{- if .Values.persistence.config.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "radarr.fullname" . }}-config claimName: {{ .Values.persistence.config.claimName }}
{{- else }} - name: media
emptyDir: {}
{{- end }}
- name: movies
{{- if .Values.persistence.movies.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "radarr.fullname" . }}-movies claimName: {{ .Values.persistence.media.claimName }}
{{- else }}
emptyDir: {}
{{- end }}
- name: downloads
{{- if .Values.persistence.downloads.enabled }}
persistentVolumeClaim:
{{- if .Values.persistence.downloads.existingClaim }}
claimName: {{ .Values.persistence.downloads.existingClaim }}
{{- else }}
claimName: {{ include "radarr.fullname" . }}-downloads
{{- end }}
{{- else }}
emptyDir: {}
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -1,53 +1,27 @@
{{- if .Values.persistence.config.enabled }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ include "radarr.fullname" . }}-config name: {{ .Values.persistence.config.claimName }}
labels: labels:
{{- include "radarr.labels" . | nindent 4 }} {{- include "radarr.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- {{ .Values.persistence.config.accessMode | quote }} - ReadWriteOnce
{{- if .Values.persistence.config.storageClass }}
storageClassName: {{ .Values.persistence.config.storageClass | quote }}
{{- end }}
resources: resources:
requests: requests:
storage: {{ .Values.persistence.config.size | quote }} storage: 1Gi
{{- end }}
--- ---
{{- if .Values.persistence.movies.enabled }} {{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "media-storage") }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ include "radarr.fullname" . }}-movies name: media-storage
labels: labels:
{{- include "radarr.labels" . | nindent 4 }} {{- include "radarr.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- {{ .Values.persistence.movies.accessMode | quote }} - ReadWriteOnce
{{- if .Values.persistence.movies.storageClass }}
storageClassName: {{ .Values.persistence.movies.storageClass | quote }}
{{- end }}
resources: resources:
requests: requests:
storage: {{ .Values.persistence.movies.size | quote }} storage: 500Gi
{{- end }}
---
{{- if and .Values.persistence.downloads.enabled (not .Values.persistence.downloads.existingClaim) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "radarr.fullname" . }}-downloads
labels:
{{- include "radarr.labels" . | nindent 4 }}
spec:
accessModes:
- {{ .Values.persistence.downloads.accessMode | quote }}
{{- if .Values.persistence.downloads.storageClass }}
storageClassName: {{ .Values.persistence.downloads.storageClass | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.persistence.downloads.size | quote }}
{{- end }} {{- end }}

View File

@ -15,9 +15,9 @@ fullnameOverride: ""
serviceAccount: serviceAccount:
# Specifies whether a service account should be created # Specifies whether a service account should be created
create: true create: false
# Automatically mount a ServiceAccount's API credentials? # Automatically mount a ServiceAccount's API credentials?
automount: true automount: false
# Annotations to add to the service account # Annotations to add to the service account
annotations: {} annotations: {}
# The name of the service account to use. # The name of the service account to use.
@ -28,28 +28,37 @@ podAnnotations: {}
podLabels: {} podLabels: {}
podSecurityContext: podSecurityContext:
runAsUser: 1000 runAsUser: 0
runAsGroup: 1000 runAsGroup: 0
fsGroup: 1000 fsGroup: 0
securityContext: securityContext:
PUID: 1000 privileged: true
PGID: 1000 capabilities:
add:
- CHOWN
- FOWNER
- SETUID
- SETGID
service: service:
type: ClusterIP type: ClusterIP
port: 7878 port: 7878
ingress: ingress:
enabled: false enabled: true
className: "nginx" className: "nginx"
annotations: {} annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
hosts: hosts:
- host: radarr.local - host: radarr.media.mumme-it.de
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: [] tls:
- hosts:
- radarr.media.mumme-it.de
secretName: radarr-tls
resources: resources:
limits: limits:
@ -96,27 +105,18 @@ affinity: {}
# Environment variables # Environment variables
env: env:
TZ: "UTC" - name: TZ
value: "Europe/Berlin"
- name: PUID
value: "0"
- name: PGID
value: "0"
# Persistence configuration # Persistence configuration
persistence: persistence:
config: config:
enabled: true claimName: radarr-config
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
mountPath: /config mountPath: /config
movies: media:
enabled: true claimName: media-storage
storageClass: "" mountPath: /media
accessMode: ReadWriteOnce
size: 100Gi
mountPath: /movies
downloads:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 20Gi
mountPath: /downloads
# If you want to use existing PVC from qBittorrent
existingClaim: ""

View File

@ -20,4 +20,4 @@
.project .project
.idea/ .idea/
*.tmproj *.tmproj
.vscode/ .vscode/

View File

@ -1,5 +1,5 @@
apiVersion: v2 apiVersion: v2
name: jackett name: readarr
description: A Helm chart for Kubernetes description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart. # A chart can be either an 'application' or a 'library' chart.
@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using. # follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes. # It is recommended to use it with quotes.
appVersion: "1.16.0" appVersion: "0.3.0"

View File

@ -6,17 +6,17 @@
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- else if contains "NodePort" .Values.service.type }} {{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "jackett.fullname" . }}) export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "readarr.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }} {{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available. NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "jackett.fullname" . }}' You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "readarr.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "jackett.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "readarr.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }} echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }} {{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "jackett.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "readarr.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application" echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }} {{- end }}

View File

@ -1,7 +1,7 @@
{{/* {{/*
Expand the name of the chart. Expand the name of the chart.
*/}} */}}
{{- define "jackett.name" -}} {{- define "readarr.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }} {{- end }}
@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name. If release name contains chart name it will be used as a full name.
*/}} */}}
{{- define "jackett.fullname" -}} {{- define "readarr.fullname" -}}
{{- if .Values.fullnameOverride }} {{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }} {{- else }}
@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/* {{/*
Create chart name and version as used by the chart label. Create chart name and version as used by the chart label.
*/}} */}}
{{- define "jackett.chart" -}} {{- define "readarr.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} {{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }} {{- end }}
{{/* {{/*
Common labels Common labels
*/}} */}}
{{- define "jackett.labels" -}} {{- define "readarr.labels" -}}
helm.sh/chart: {{ include "jackett.chart" . }} helm.sh/chart: {{ include "readarr.chart" . }}
{{ include "jackett.selectorLabels" . }} {{ include "readarr.selectorLabels" . }}
{{- if .Chart.AppVersion }} {{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }} {{- end }}
@ -45,18 +45,18 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/* {{/*
Selector labels Selector labels
*/}} */}}
{{- define "jackett.selectorLabels" -}} {{- define "readarr.selectorLabels" -}}
app.kubernetes.io/name: {{ include "jackett.name" . }} app.kubernetes.io/name: {{ include "readarr.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }} {{- end }}
{{/* {{/*
Create the name of the service account to use Create the name of the service account to use
*/}} */}}
{{- define "jackett.serviceAccountName" -}} {{- define "readarr.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }} {{- if .Values.serviceAccount.create }}
{{- default (include "jackett.fullname" .) .Values.serviceAccount.name }} {{- default (include "readarr.fullname" .) .Values.serviceAccount.name }}
{{- else }} {{- else }}
{{- default "default" .Values.serviceAccount.name }} {{- default "default" .Values.serviceAccount.name }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -1,18 +1,27 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: {{ include "jackett.fullname" . }} name: {{ include "readarr.fullname" . }}
labels: labels:
{{- include "jackett.labels" . | nindent 4 }} {{- include "readarr.labels" . | nindent 4 }}
spec: spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
{{- end }}
selector: selector:
matchLabels: matchLabels:
{{- include "jackett.selectorLabels" . | nindent 6 }} {{- include "readarr.selectorLabels" . | nindent 6 }}
template: template:
metadata: metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels: labels:
{{- include "jackett.selectorLabels" . | nindent 8 }} {{- include "readarr.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec: spec:
{{- with .Values.imagePullSecrets }} {{- with .Values.imagePullSecrets }}
imagePullSecrets: imagePullSecrets:
@ -22,42 +31,37 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }} {{- toYaml .Values.podSecurityContext | nindent 8 }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }} imagePullPolicy: {{ .Values.image.pullPolicy }}
env: env:
- name: TZ {{- range .Values.env }}
value: {{ .Values.env.TZ | quote }} - name: {{ .name }}
- name: PUID value: {{ .value | quote }}
value: {{ .Values.securityContext.PUID | quote }} {{- end }}
- name: PGID
value: {{ .Values.securityContext.PGID | quote }}
- name: AUTO_UPDATE
value: {{ .Values.env.AUTO_UPDATE | quote }}
ports: ports:
- name: http - name: http
containerPort: {{ .Values.service.port }} containerPort: {{ .Values.service.port }}
protocol: TCP protocol: TCP
volumeMounts:
- name: config
mountPath: {{ .Values.persistence.mountPath }}
livenessProbe: livenessProbe:
httpGet: {{- toYaml .Values.livenessProbe | nindent 12 }}
path: /
port: http
readinessProbe: readinessProbe:
httpGet: {{- toYaml .Values.readinessProbe | nindent 12 }}
path: /
port: http
resources: resources:
{{- toYaml .Values.resources | nindent 12 }} {{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: config
mountPath: {{ .Values.persistence.config.mountPath }}
- name: media
mountPath: {{ .Values.persistence.media.mountPath }}
volumes: volumes:
- name: config - name: config
{{- if .Values.persistence.enabled }}
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ include "jackett.fullname" . }}-config claimName: {{ .Values.persistence.config.claimName }}
{{- else }} - name: media
emptyDir: {} persistentVolumeClaim:
{{- end }} claimName: {{ .Values.persistence.media.claimName }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
@ -69,4 +73,4 @@ spec:
{{- with .Values.tolerations }} {{- with .Values.tolerations }}
tolerations: tolerations:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
{{- end }} {{- end }}

View File

@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}} {{- if .Values.ingress.enabled -}}
{{- $fullName := include "jackett.fullname" . -}} {{- $fullName := include "readarr.fullname" . -}}
{{- $svcPort := .Values.service.port -}} {{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }} {{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
@ -17,7 +17,7 @@ kind: Ingress
metadata: metadata:
name: {{ $fullName }} name: {{ $fullName }}
labels: labels:
{{- include "jackett.labels" . | nindent 4 }} {{- include "readarr.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}
annotations: annotations:
{{- toYaml . | nindent 4 }} {{- toYaml . | nindent 4 }}
@ -58,4 +58,4 @@ spec:
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@ -0,0 +1,27 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.persistence.config.claimName }}
labels:
{{- include "readarr.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
{{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "media-storage") }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: media-storage
labels:
{{- include "readarr.labels" . | nindent 4 }}
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Gi
{{- end }}

View File

@ -1,9 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "jackett.fullname" . }} name: {{ include "readarr.fullname" . }}
labels: labels:
{{- include "jackett.labels" . | nindent 4 }} {{- include "readarr.labels" . | nindent 4 }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:
@ -12,4 +12,4 @@ spec:
protocol: TCP protocol: TCP
name: http name: http
selector: selector:
{{- include "jackett.selectorLabels" . | nindent 4 }} {{- include "readarr.selectorLabels" . | nindent 4 }}

View File

@ -1,11 +1,11 @@
# Default values for qbittorrent. # Default values for readarr.
# This is a YAML-formatted file. # This is a YAML-formatted file.
# Declare variables to be passed into your templates. # Declare variables to be passed into your templates.
replicaCount: 1 replicaCount: 1
image: image:
repository: linuxserver/qbittorrent repository: linuxserver/readarr
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
tag: "latest" tag: "latest"
@ -15,9 +15,9 @@ fullnameOverride: ""
serviceAccount: serviceAccount:
# Specifies whether a service account should be created # Specifies whether a service account should be created
create: true create: false
# Automatically mount a ServiceAccount's API credentials? # Automatically mount a ServiceAccount's API credentials?
automount: true automount: false
# Annotations to add to the service account # Annotations to add to the service account
annotations: {} annotations: {}
# The name of the service account to use. # The name of the service account to use.
@ -28,58 +28,42 @@ podAnnotations: {}
podLabels: {} podLabels: {}
podSecurityContext: podSecurityContext:
runAsUser: 1000 runAsUser: 0
runAsGroup: 1000 runAsGroup: 0
fsGroup: 1000 fsGroup: 0
securityContext: securityContext:
PUID: 1000 privileged: true
PGID: 1000 capabilities:
add:
- CHOWN
- FOWNER
- SETUID
- SETGID
service: service:
type: ClusterIP type: ClusterIP
webui: port: 8787
port: 8080
bittorrent:
port: 6881
protocol: TCP
# Environment variables
env:
TZ: "UTC"
# WebUI port
WEBUI_PORT: "8080"
# Persistence configuration
persistence:
config:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 1Gi
mountPath: /config
downloads:
enabled: true
storageClass: ""
accessMode: ReadWriteOnce
size: 20Gi
mountPath: /downloads
ingress: ingress:
enabled: false enabled: true
className: "nginx" className: "nginx"
annotations: {} annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
hosts: hosts:
- host: qbittorrent.local - host: readarr.media.mumme-it.de
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: [] tls:
- hosts:
- readarr.media.mumme-it.de
secretName: readarr-tls
resources: resources:
limits: limits:
cpu: 2000m cpu: 1000m
memory: 2Gi memory: 1Gi
requests: requests:
cpu: 200m cpu: 200m
memory: 256Mi memory: 256Mi
@ -118,3 +102,21 @@ nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
# Environment variables
env:
- name: TZ
value: "Europe/Berlin"
- name: PUID
value: "0"
- name: PGID
value: "0"
# Persistence configuration
persistence:
config:
claimName: readarr-config
mountPath: /config
media:
claimName: media-storage
mountPath: /media

View File

@ -30,17 +30,12 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: {{ .Values.persistence.config.mountPath }} mountPath: {{ .Values.persistence.config.mountPath }}
- name: downloads - name: media
mountPath: {{ .Values.persistence.downloads.mountPath }} mountPath: {{ .Values.persistence.media.mountPath }}
- name: incomplete
mountPath: {{ .Values.persistence.incomplete.mountPath }}
volumes: volumes:
- name: config - name: config
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.config.claimName }} claimName: {{ .Values.persistence.config.claimName }}
- name: downloads - name: media
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.downloads.claimName }} claimName: {{ .Values.persistence.media.claimName }}
- name: incomplete
persistentVolumeClaim:
claimName: {{ .Values.persistence.incomplete.claimName }}

View File

@ -1,7 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: sabnzbd-config name: {{ .Values.persistence.config.claimName }}
labels:
{{- include "sabnzbd.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
@ -9,24 +11,17 @@ spec:
requests: requests:
storage: 1Gi storage: 1Gi
--- ---
{{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "media-storage") }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: media-downloads name: media-storage
labels:
{{- include "sabnzbd.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 100Gi storage: 500Gi
--- {{- end }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: sabnzbd-incomplete
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi

View File

@ -27,16 +27,19 @@ serviceAccount:
podAnnotations: {} podAnnotations: {}
podLabels: {} podLabels: {}
podSecurityContext: {} podSecurityContext:
# fsGroup: 2000 runAsUser: 0
runAsGroup: 0
fsGroup: 0
securityContext: {} securityContext:
# capabilities: privileged: true
# drop: capabilities:
# - ALL add:
# readOnlyRootFilesystem: true - CHOWN
# runAsNonRoot: true - FOWNER
# runAsUser: 1000 - SETUID
- SETGID
service: service:
type: ClusterIP type: ClusterIP
@ -58,17 +61,13 @@ ingress:
# hosts: # hosts:
# - chart-example.local # - chart-example.local
resources: {} resources:
# We usually recommend not to specify default resources and to leave this as a conscious limits:
# choice for the user. This also increases chances charts run on environments with little cpu: 2000m
# resources, such as Minikube. If you do want to specify resources, uncomment the following memory: 2Gi
# lines, adjust them as necessary, and remove the curly braces after 'resources:'. requests:
# limits: cpu: 500m
# cpu: 100m memory: 512Mi
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
livenessProbe: livenessProbe:
httpGet: httpGet:
@ -112,14 +111,21 @@ env:
value: "0" value: "0"
- name: PGID - name: PGID
value: "0" value: "0"
- name: PYTHON_EGG_CACHE
value: "/config/.python-eggs"
- name: PYTHONUNBUFFERED
value: "1"
- name: SAB_DIRECT_UNPACK
value: "1"
- name: SAB_DOWNLOAD_DIR
value: "/media/incomplete"
- name: SAB_COMPLETE_DIR
value: "/media/downloads"
persistence: persistence:
config: config:
claimName: sabnzbd-config claimName: sabnzbd-config
mountPath: /config mountPath: /config
downloads: media:
claimName: media-downloads claimName: media-storage
mountPath: /downloads mountPath: /media
incomplete:
claimName: sabnzbd-incomplete
mountPath: /incomplete-downloads

View File

@ -36,10 +36,8 @@ spec:
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: {{ .Values.persistence.config.mountPath }} mountPath: {{ .Values.persistence.config.mountPath }}
- name: tv - name: media
mountPath: {{ .Values.persistence.tv.mountPath }} mountPath: {{ .Values.persistence.media.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
livenessProbe: livenessProbe:
httpGet: httpGet:
path: / path: /
@ -54,12 +52,9 @@ spec:
- name: config - name: config
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.config.claimName }} claimName: {{ .Values.persistence.config.claimName }}
- name: tv - name: media
persistentVolumeClaim: persistentVolumeClaim:
claimName: {{ .Values.persistence.tv.claimName }} claimName: {{ .Values.persistence.media.claimName }}
- name: downloads
persistentVolumeClaim:
claimName: {{ .Values.persistence.downloads.claimName }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}

View File

@ -1,7 +1,9 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: sonarr-config name: {{ .Values.persistence.config.claimName }}
labels:
{{- include "sonarr.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
@ -9,13 +11,17 @@ spec:
requests: requests:
storage: 1Gi storage: 1Gi
--- ---
{{- if not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace "media-storage") }}
apiVersion: v1 apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: sonarr-tv name: media-storage
labels:
{{- include "sonarr.labels" . | nindent 4 }}
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 100Gi storage: 500Gi
{{- end }}

View File

@ -62,11 +62,11 @@ ingress:
resources: resources:
limits: limits:
cpu: 4000m
memory: 4Gi
requests:
cpu: 1000m cpu: 1000m
memory: 1Gi memory: 1Gi
requests:
cpu: 200m
memory: 256Mi
livenessProbe: livenessProbe:
httpGet: httpGet:
@ -82,25 +82,12 @@ autoscaling:
minReplicas: 1 minReplicas: 1
maxReplicas: 100 maxReplicas: 100
targetCPUUtilizationPercentage: 80 targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes: [] volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts: [] volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []
affinity: {} affinity: {}
# Environment variables # Environment variables
@ -117,9 +104,6 @@ persistence:
config: config:
claimName: sonarr-config claimName: sonarr-config
mountPath: /config mountPath: /config
tv: media:
claimName: sonarr-tv claimName: media-storage
mountPath: /tv mountPath: /media
downloads:
claimName: media-downloads
mountPath: /downloads