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
ingress:
enabled: false
enabled: true
className: "nginx"
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
# nginx.ingress.kubernetes.io/rewrite-target: /
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
hosts:
- host: overseerr.local
- host: overseerr.media.mumme-it.de
paths:
- path: /
pathType: Prefix
tls: []
# - secretName: overseerr-tls
# hosts:
# - overseerr.local
tls:
- secretName: overseerr-tls
hosts:
- overseerr.media.mumme-it.de
resources:
limits:
@ -80,33 +78,18 @@ autoscaling:
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
# Additional volumes on the output Deployment definition.
volumes: []
# - name: foo
# secret:
# secretName: mysecret
# optional: false
# Additional volumeMounts on the output Deployment definition.
volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true
nodeSelector: {}
tolerations: []
affinity: {}
# Environment variables
env:
TZ: "UTC"
# Log level (debug, info, warn, error)
LOG_LEVEL: "info"
# Port that overseerr will listen on
PORT: "5055"
# 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:
{{- include "radarr.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "radarr.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "radarr.selectorLabels" . | nindent 8 }}
{{- include "radarr.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
@ -22,62 +31,37 @@ spec:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
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 }}
{{- range .Values.env }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:
{{- toYaml .Values.readinessProbe | nindent 12 }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: config
mountPath: {{ .Values.persistence.config.mountPath }}
- name: movies
mountPath: {{ .Values.persistence.movies.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
- name: media
mountPath: {{ .Values.persistence.media.mountPath }}
volumes:
- name: config
{{- if .Values.persistence.config.enabled }}
persistentVolumeClaim:
claimName: {{ include "radarr.fullname" . }}-config
{{- else }}
emptyDir: {}
{{- end }}
- name: movies
{{- if .Values.persistence.movies.enabled }}
claimName: {{ .Values.persistence.config.claimName }}
- name: media
persistentVolumeClaim:
claimName: {{ include "radarr.fullname" . }}-movies
{{- 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 }}
claimName: {{ .Values.persistence.media.claimName }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}

View File

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

View File

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

View File

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

View File

@ -1,5 +1,5 @@
apiVersion: v2
name: jackett
name: readarr
description: A Helm chart for Kubernetes
# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"
appVersion: "0.3.0"

View File

@ -6,17 +6,17 @@
{{- 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 "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}")
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 "jackett.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "jackett.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
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 "readarr.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 "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}")
echo "Visit http://127.0.0.1:8080 to use your application"
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.
*/}}
{{- define "jackett.name" -}}
{{- define "readarr.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- 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).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "jackett.fullname" -}}
{{- define "readarr.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- 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.
*/}}
{{- define "jackett.chart" -}}
{{- define "readarr.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "jackett.labels" -}}
helm.sh/chart: {{ include "jackett.chart" . }}
{{ include "jackett.selectorLabels" . }}
{{- define "readarr.labels" -}}
helm.sh/chart: {{ include "readarr.chart" . }}
{{ include "readarr.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
@ -45,18 +45,18 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "jackett.selectorLabels" -}}
app.kubernetes.io/name: {{ include "jackett.name" . }}
{{- define "readarr.selectorLabels" -}}
app.kubernetes.io/name: {{ include "readarr.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "jackett.serviceAccountName" -}}
{{- define "readarr.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "jackett.fullname" .) .Values.serviceAccount.name }}
{{- default (include "readarr.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}
{{- end }}

View File

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

View File

@ -1,5 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "jackett.fullname" . -}}
{{- $fullName := include "readarr.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") }}
@ -17,7 +17,7 @@ kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "jackett.labels" . | nindent 4 }}
{{- include "readarr.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@ -58,4 +58,4 @@ spec:
{{- 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
kind: Service
metadata:
name: {{ include "jackett.fullname" . }}
name: {{ include "readarr.fullname" . }}
labels:
{{- include "jackett.labels" . | nindent 4 }}
{{- include "readarr.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
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.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: linuxserver/qbittorrent
repository: linuxserver/readarr
pullPolicy: IfNotPresent
tag: "latest"
@ -15,9 +15,9 @@ fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
create: false
# Automatically mount a ServiceAccount's API credentials?
automount: true
automount: false
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
@ -28,58 +28,42 @@ podAnnotations: {}
podLabels: {}
podSecurityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
runAsUser: 0
runAsGroup: 0
fsGroup: 0
securityContext:
PUID: 1000
PGID: 1000
privileged: true
capabilities:
add:
- CHOWN
- FOWNER
- SETUID
- SETGID
service:
type: ClusterIP
webui:
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
port: 8787
ingress:
enabled: false
enabled: true
className: "nginx"
annotations: {}
annotations:
cert-manager.io/cluster-issuer: "letsencrypt"
hosts:
- host: qbittorrent.local
- host: readarr.media.mumme-it.de
paths:
- path: /
pathType: Prefix
tls: []
tls:
- hosts:
- readarr.media.mumme-it.de
secretName: readarr-tls
resources:
limits:
cpu: 2000m
memory: 2Gi
cpu: 1000m
memory: 1Gi
requests:
cpu: 200m
memory: 256Mi
@ -118,3 +102,21 @@ nodeSelector: {}
tolerations: []
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:
- name: config
mountPath: {{ .Values.persistence.config.mountPath }}
- name: downloads
mountPath: {{ .Values.persistence.downloads.mountPath }}
- name: incomplete
mountPath: {{ .Values.persistence.incomplete.mountPath }}
- name: media
mountPath: {{ .Values.persistence.media.mountPath }}
volumes:
- name: config
persistentVolumeClaim:
claimName: {{ .Values.persistence.config.claimName }}
- name: downloads
- name: media
persistentVolumeClaim:
claimName: {{ .Values.persistence.downloads.claimName }}
- name: incomplete
persistentVolumeClaim:
claimName: {{ .Values.persistence.incomplete.claimName }}
claimName: {{ .Values.persistence.media.claimName }}

View File

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

View File

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

View File

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

View File

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

View File

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