mirror of
https://github.com/truenas/charts.git
synced 2026-11-17 22:59:08 +00:00
NAS-122593 / 23.10 / add jellyseerr to community train (#1285)
* add jellyseerr * change default port
This commit is contained in:
1 parent
4a360ed4be
commit
0c2bef0be6
17 files changed
+425
No files matched your search
@@ -0,0 +1,6 @@
|
|||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: file://../../../common
|
||||||
|
version: 1.0.8
|
||||||
|
digest: sha256:254efaa1285f634b7a80b7baadeadbd20a680f7fee49d1d9d3c4618aa0d657ad
|
||||||
|
generated: "2023-06-22T16:50:21.570951209+03:00"
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
name: jellyseerr
|
||||||
|
description: Jellyseerr is a free and open source software application for managing requests for your media library.
|
||||||
|
annotations:
|
||||||
|
title: Jellyseerr
|
||||||
|
type: application
|
||||||
|
version: 1.0.0
|
||||||
|
apiVersion: v2
|
||||||
|
appVersion: 1.5.0
|
||||||
|
kubeVersion: '>=1.16.0-0'
|
||||||
|
maintainers:
|
||||||
|
- name: truenas
|
||||||
|
url: https://www.truenas.com/
|
||||||
|
email: dev@ixsystems.com
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: file://../../../common
|
||||||
|
version: 1.0.8
|
||||||
|
home: https://github.com/Fallenbagel/jellyseerr
|
||||||
|
icon: https://github.com/Fallenbagel/jellyseerr/raw/develop/public/logo_full.svg
|
||||||
|
sources:
|
||||||
|
- https://github.com/Fallenbagel/jellyseerr
|
||||||
|
- https://github.com/truenas/charts/tree/master/community/jellyseerr
|
||||||
|
- https://hub.docker.com/r/fallenbagel/jellyseerr
|
||||||
|
keywords:
|
||||||
|
- media
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Jellyseerr
|
||||||
|
|
||||||
|
[Jellyseerr](https://github.com/Fallenbagel/jellyseerr) is a free and open source software application for managing requests for your media library.
|
||||||
|
|
||||||
|
> When application is installed, a container will be launched with **root** privileges.
|
||||||
|
> This is required in order to apply the correct permissions to the `Jellyseerr` directories.
|
||||||
|
> Afterward, the `Jellyseerr` container will run as a **non**-root user (Default: `568`).
|
||||||
|
> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user.
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
# Jellyseerr
|
||||||
|
|
||||||
|
[Jellyseerr](https://github.com/Fallenbagel/jellyseerr) is a free and open source software application for managing requests for your media library.
|
||||||
|
|
||||||
|
> When application is installed, a container will be launched with **root** privileges.
|
||||||
|
> This is required in order to apply the correct permissions to the `Jellyseerr` directories.
|
||||||
|
> Afterward, the `Jellyseerr` container will run as a **non**-root user (Default: `568`).
|
||||||
|
> All mounted storage(s) will be `chown`ed only if the parent directory does not match the configured user.
|
||||||
Binary file not shown.
@@ -0,0 +1,11 @@
|
|||||||
|
jellyseerrNetwork:
|
||||||
|
webPort: 31000
|
||||||
|
|
||||||
|
jellyseerrRunAs:
|
||||||
|
user: 1000
|
||||||
|
group: 1000
|
||||||
|
|
||||||
|
jellyseerrStorage:
|
||||||
|
config:
|
||||||
|
type: hostPath
|
||||||
|
hostPath: /mnt/{{ .Release.Namespace }}/config
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
jellyseerrNetwork:
|
||||||
|
webPort: 30000
|
||||||
|
hostNetwork: true
|
||||||
|
|
||||||
|
jellyseerrStorage:
|
||||||
|
config:
|
||||||
|
type: hostPath
|
||||||
|
hostPath: /mnt/{{ .Release.Namespace }}/config
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
icon_url: https://github.com/Fallenbagel/jellyseerr/raw/develop/public/logo_full.svg
|
||||||
|
categories:
|
||||||
|
- media
|
||||||
|
screenshots:
|
||||||
|
- https://github.com/Fallenbagel/jellyseerr/raw/develop/public/preview.jpg
|
||||||
|
tags:
|
||||||
|
- tv
|
||||||
|
- movies
|
||||||
|
- requests
|
||||||
|
- series
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
runAsContext:
|
||||||
|
- userName: jellyseerr
|
||||||
|
groupName: jellyseerr
|
||||||
|
gid: 568
|
||||||
|
uid: 568
|
||||||
|
description: Jellyseerr can run as any non-root user.
|
||||||
|
capabilities: []
|
||||||
|
hostMounts: []
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
groups:
|
||||||
|
- name: Jellyseerr Configuration
|
||||||
|
description: Configure Jellyseerr
|
||||||
|
- name: User and Group Configuration
|
||||||
|
description: Configure User and Group for Jellyseerr
|
||||||
|
- name: Network Configuration
|
||||||
|
description: Configure Network for Jellyseerr
|
||||||
|
- name: Storage Configuration
|
||||||
|
description: Configure Storage for Jellyseerr
|
||||||
|
- name: Resources Configuration
|
||||||
|
description: Configure Resources for Jellyseerr
|
||||||
|
|
||||||
|
portals:
|
||||||
|
web_portal:
|
||||||
|
protocols:
|
||||||
|
- "$kubernetes-resource_configmap_portal_protocol"
|
||||||
|
host:
|
||||||
|
- "$kubernetes-resource_configmap_portal_host"
|
||||||
|
ports:
|
||||||
|
- "$kubernetes-resource_configmap_portal_port"
|
||||||
|
path: "$kubernetes-resource_configmap_portal_path"
|
||||||
|
|
||||||
|
questions:
|
||||||
|
- variable: TZ
|
||||||
|
group: Jellyseerr Configuration
|
||||||
|
label: Timezone
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: Etc/UTC
|
||||||
|
required: true
|
||||||
|
$ref:
|
||||||
|
- definitions/timezone
|
||||||
|
|
||||||
|
- variable: jellyseerrConfig
|
||||||
|
label: ""
|
||||||
|
group: Jellyseerr Configuration
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: additionalEnvs
|
||||||
|
label: Additional Environment Variables
|
||||||
|
description: Configure additional environment variables for Jellyseerr.
|
||||||
|
schema:
|
||||||
|
type: list
|
||||||
|
default: []
|
||||||
|
items:
|
||||||
|
- variable: env
|
||||||
|
label: Environment Variable
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: name
|
||||||
|
label: Name
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
- variable: value
|
||||||
|
label: Value
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- variable: jellyseerrRunAs
|
||||||
|
label: ""
|
||||||
|
group: User and Group Configuration
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: user
|
||||||
|
label: User ID
|
||||||
|
description: The user id that Jellyseerr will run as.
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
min: 2
|
||||||
|
default: 568
|
||||||
|
required: true
|
||||||
|
- variable: group
|
||||||
|
label: Group ID
|
||||||
|
description: The group id that Jellyseerr will run as.
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
min: 2
|
||||||
|
default: 568
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- variable: jellyseerrNetwork
|
||||||
|
label: ""
|
||||||
|
group: Network Configuration
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: webPort
|
||||||
|
label: Web Port
|
||||||
|
description: The port for the Jellyseerr Web UI.
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 30042
|
||||||
|
min: 9000
|
||||||
|
max: 65535
|
||||||
|
required: true
|
||||||
|
- variable: hostNetwork
|
||||||
|
label: Host Network
|
||||||
|
description: |
|
||||||
|
Bind to the host network. It's recommended to keep this disabled.</br>
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
|
- variable: jellyseerrStorage
|
||||||
|
label: ""
|
||||||
|
group: Storage Configuration
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: config
|
||||||
|
label: Jellyseerr Config Storage
|
||||||
|
description: The path to store Jellyseerr Configuration.
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: type
|
||||||
|
label: Type
|
||||||
|
description: |
|
||||||
|
ixVolume: Is dataset created automatically by the system.</br>
|
||||||
|
Host Path: Is a path that already exists on the system.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
default: "ixVolume"
|
||||||
|
enum:
|
||||||
|
- value: "hostPath"
|
||||||
|
description: Host Path (Path that already exists on the system)
|
||||||
|
- value: "ixVolume"
|
||||||
|
description: ixVolume (Dataset created automatically by the system)
|
||||||
|
- variable: datasetName
|
||||||
|
label: Dataset Name
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
show_if: [["type", "=", "ixVolume"]]
|
||||||
|
required: true
|
||||||
|
hidden: true
|
||||||
|
immutable: true
|
||||||
|
default: "config"
|
||||||
|
$ref:
|
||||||
|
- "normalize/ixVolume"
|
||||||
|
- variable: hostPath
|
||||||
|
label: Host Path
|
||||||
|
schema:
|
||||||
|
type: hostpath
|
||||||
|
show_if: [["type", "=", "hostPath"]]
|
||||||
|
immutable: true
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- variable: resources
|
||||||
|
group: Resources Configuration
|
||||||
|
label: ""
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: limits
|
||||||
|
label: Limits
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: cpu
|
||||||
|
label: CPU
|
||||||
|
description: CPU limit for Jellyseerr.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "4000m"
|
||||||
|
required: true
|
||||||
|
- variable: memory
|
||||||
|
label: Memory
|
||||||
|
description: Memory limit for Jellyseerr.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: "8Gi"
|
||||||
|
required: true
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
{{- define "jellyseerr.workload" -}}
|
||||||
|
workload:
|
||||||
|
jellyseerr:
|
||||||
|
enabled: true
|
||||||
|
primary: true
|
||||||
|
type: Deployment
|
||||||
|
podSpec:
|
||||||
|
hostNetwork: {{ .Values.jellyseerrNetwork.hostNetwork }}
|
||||||
|
containers:
|
||||||
|
jellyseerr:
|
||||||
|
enabled: true
|
||||||
|
primary: true
|
||||||
|
imageSelector: image
|
||||||
|
securityContext:
|
||||||
|
runAsUser: {{ .Values.jellyseerrRunAs.user }}
|
||||||
|
runAsGroup: {{ .Values.jellyseerrRunAs.group }}
|
||||||
|
env:
|
||||||
|
PORT: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
{{ with .Values.jellyseerrConfig.additionalEnvs }}
|
||||||
|
envList:
|
||||||
|
{{ range $env := . }}
|
||||||
|
- name: {{ $env.name }}
|
||||||
|
value: {{ $env.value }}
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
enabled: true
|
||||||
|
type: http
|
||||||
|
port: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
path: /api/v1/status
|
||||||
|
readiness:
|
||||||
|
enabled: true
|
||||||
|
type: http
|
||||||
|
port: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
path: /api/v1/status
|
||||||
|
startup:
|
||||||
|
enabled: true
|
||||||
|
type: http
|
||||||
|
port: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
path: /api/v1/status
|
||||||
|
initContainers:
|
||||||
|
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
||||||
|
"UID" .Values.jellyseerrRunAs.user
|
||||||
|
"GID" .Values.jellyseerrRunAs.group
|
||||||
|
"mode" "check"
|
||||||
|
"type" "init") | nindent 8 }}
|
||||||
|
|
||||||
|
{{/* Service */}}
|
||||||
|
service:
|
||||||
|
jellyseerr:
|
||||||
|
enabled: true
|
||||||
|
primary: true
|
||||||
|
type: NodePort
|
||||||
|
targetSelector: jellyseerr
|
||||||
|
ports:
|
||||||
|
webui:
|
||||||
|
enabled: true
|
||||||
|
primary: true
|
||||||
|
port: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
nodePort: {{ .Values.jellyseerrNetwork.webPort }}
|
||||||
|
targetSelector: jellyseerr
|
||||||
|
|
||||||
|
{{/* Persistence */}}
|
||||||
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
type: {{ .Values.jellyseerrStorage.config.type }}
|
||||||
|
datasetName: {{ .Values.jellyseerrStorage.config.datasetName | default "" }}
|
||||||
|
hostPath: {{ .Values.jellyseerrStorage.config.hostPath | default "" }}
|
||||||
|
targetSelector:
|
||||||
|
jellyseerr:
|
||||||
|
jellyseerr:
|
||||||
|
mountPath: /app/config
|
||||||
|
01-permissions:
|
||||||
|
mountPath: /mnt/directories/config
|
||||||
|
tmp:
|
||||||
|
enabled: true
|
||||||
|
type: emptyDir
|
||||||
|
targetSelector:
|
||||||
|
jellyseerr:
|
||||||
|
jellyseerr:
|
||||||
|
mountPath: /tmp
|
||||||
|
{{- end -}}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
{{- define "jellyseerr.portal" -}}
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: portal
|
||||||
|
data:
|
||||||
|
path: "/"
|
||||||
|
port: {{ .Values.jellyseerrNetwork.webPort | quote }}
|
||||||
|
protocol: http
|
||||||
|
host: $node_ip
|
||||||
|
{{- end -}}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{{- include "ix.v1.common.loader.init" . -}}
|
||||||
|
|
||||||
|
{{/* Merge the templates with Values */}}
|
||||||
|
{{- $_ := mustMergeOverwrite .Values (include "jellyseerr.workload" $ | fromYaml) -}}
|
||||||
|
|
||||||
|
{{/* Create the configmap for portal manually*/}}
|
||||||
|
{{- include "jellyseerr.portal" $ -}}
|
||||||
|
|
||||||
|
{{- include "ix.v1.common.loader.apply" . -}}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"filename": "values.yaml", "keys": ["image"]}
|
||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
import json
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from catalog_update.upgrade_strategy import semantic_versioning
|
||||||
|
|
||||||
|
|
||||||
|
RE_STABLE_VERSION = re.compile(r'[0-9]+\.[0-9]+\.[0-9]+')
|
||||||
|
|
||||||
|
|
||||||
|
def newer_mapping(image_tags):
|
||||||
|
key = list(image_tags.keys())[0]
|
||||||
|
tags = {t: t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
|
||||||
|
version = semantic_versioning(list(tags))
|
||||||
|
if not version:
|
||||||
|
return {}
|
||||||
|
|
||||||
|
return {
|
||||||
|
'tags': {key: tags[version]},
|
||||||
|
'app_version': version,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
try:
|
||||||
|
versions_json = json.loads(sys.stdin.read())
|
||||||
|
except ValueError:
|
||||||
|
raise ValueError('Invalid json specified')
|
||||||
|
|
||||||
|
print(json.dumps(newer_mapping(versions_json)))
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
image:
|
||||||
|
repository: fallenbagel/jellyseerr
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: 1.5.0
|
||||||
|
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 4000m
|
||||||
|
memory: 8Gi
|
||||||
|
|
||||||
|
jellyseerrConfig:
|
||||||
|
additionalEnvs: []
|
||||||
|
|
||||||
|
jellyseerrNetwork:
|
||||||
|
webPort: 30042
|
||||||
|
hostNetwork: false
|
||||||
|
|
||||||
|
jellyseerrRunAs:
|
||||||
|
user: 568
|
||||||
|
group: 568
|
||||||
|
|
||||||
|
jellyseerrStorage:
|
||||||
|
config:
|
||||||
|
type: ixVolume
|
||||||
|
datasetName: config
|
||||||
Reference in new issue
Block a user