mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 17:52:13 +08:00
NAS-121803 / 23.10 / Added overseerr helm chart to community train. (#1170)
* Added overseerr helm chart to community train. * Fixed up formatting, removed extra storage and added TZ * Added user configurable timezone and removed additional storage * Use override of built in TZ * Addressed commented feedback in various files * Update library/ix-dev/community/overseerr/app-readme.md * add metadata.yaml --------- Co-authored-by: Ian Armour <ianarm@amazon.com> Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
6
library/ix-dev/community/overseerr/Chart.lock
Normal file
6
library/ix-dev/community/overseerr/Chart.lock
Normal file
@@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: common
|
||||
repository: file://../../../common
|
||||
version: 1.0.6
|
||||
digest: sha256:2f1f31c15fb7f92db141a66adbb8d23a8598727730050a3883a211763a4e5472
|
||||
generated: "2023-04-29T20:31:11.523275154-07:00"
|
||||
25
library/ix-dev/community/overseerr/Chart.yaml
Normal file
25
library/ix-dev/community/overseerr/Chart.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: overseerr
|
||||
description: Overseerr is a free and open source software application for managing requests for your media library.
|
||||
annotations:
|
||||
title: Overseerr
|
||||
type: application
|
||||
version: 1.0.0
|
||||
apiVersion: v2
|
||||
appVersion: '1.32.5'
|
||||
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.6
|
||||
home: https://github.com/sct/overseerr
|
||||
icon: https://raw.githubusercontent.com/sct/overseerr/develop/public/os_icon.svg
|
||||
sources:
|
||||
- https://hub.docker.com/r/sctx/overseerr
|
||||
- https://github.com/truenas/charts/tree/master/community/overseer
|
||||
- https://github.com/sct/overseerr
|
||||
keywords:
|
||||
- media
|
||||
8
library/ix-dev/community/overseerr/README.md
Normal file
8
library/ix-dev/community/overseerr/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Overseerr
|
||||
|
||||
[Overseerr](https://github.com/sct/overseerr) is a free and open source software application for managing requests for your media library. It integrates with your existing services, such as Sonarr, Radarr, and Plex!
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Overseerr` directories.
|
||||
> Afterward, the `Overseerr` 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.
|
||||
8
library/ix-dev/community/overseerr/app-readme.md
Normal file
8
library/ix-dev/community/overseerr/app-readme.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Overseerr
|
||||
|
||||
[Overseerr](https://github.com/sct/overseerr) is a free and open source software application for managing requests for your media library. It integrates with your existing services, such as Sonarr, Radarr, and Plex!
|
||||
|
||||
> When application is installed, a container will be launched with **root** privileges.
|
||||
> This is required in order to apply the correct permissions to the `Overseerr` directories.
|
||||
> Afterward, the `Overseerr` 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.
|
||||
BIN
library/ix-dev/community/overseerr/charts/common-1.0.6.tgz
Normal file
BIN
library/ix-dev/community/overseerr/charts/common-1.0.6.tgz
Normal file
Binary file not shown.
11
library/ix-dev/community/overseerr/ci/basic-values.yaml
Normal file
11
library/ix-dev/community/overseerr/ci/basic-values.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
overseerrNetwork:
|
||||
webPort: 31000
|
||||
|
||||
overseerrRunAs:
|
||||
user: 1000
|
||||
group: 1000
|
||||
|
||||
overseerrStorage:
|
||||
config:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/config
|
||||
@@ -0,0 +1,8 @@
|
||||
overseerrNetwork:
|
||||
webPort: 30000
|
||||
hostNetwork: true
|
||||
|
||||
overseerrStorage:
|
||||
config:
|
||||
type: hostPath
|
||||
hostPath: /mnt/{{ .Release.Namespace }}/config
|
||||
3
library/ix-dev/community/overseerr/item.yaml
Normal file
3
library/ix-dev/community/overseerr/item.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
icon_url: https://raw.githubusercontent.com/sct/overseerr/develop/public/os_icon.svg
|
||||
categories:
|
||||
- media
|
||||
8
library/ix-dev/community/overseerr/metadata.yaml
Normal file
8
library/ix-dev/community/overseerr/metadata.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
runAsContext:
|
||||
- userName: overseerr
|
||||
groupName: overseerr
|
||||
gid: 568
|
||||
uid: 568
|
||||
description: Overseerr can run as any non-root user.
|
||||
capabilities: []
|
||||
hostMounts: []
|
||||
178
library/ix-dev/community/overseerr/questions.yaml
Normal file
178
library/ix-dev/community/overseerr/questions.yaml
Normal file
@@ -0,0 +1,178 @@
|
||||
groups:
|
||||
- name: Overseerr Configuration
|
||||
description: Configure Overseerr
|
||||
- name: User and Group Configuration
|
||||
description: Configure User and Group for Overseerr
|
||||
- name: Network Configuration
|
||||
description: Configure Network for Overseerr
|
||||
- name: Storage Configuration
|
||||
description: Configure Storage for Overseerr
|
||||
- name: Resources Configuration
|
||||
description: Configure Resources for Overseerr
|
||||
|
||||
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: Overseerr Configuration
|
||||
label: Timezone
|
||||
schema:
|
||||
type: string
|
||||
default: Etc/UTC
|
||||
required: true
|
||||
$ref:
|
||||
- definitions/timezone
|
||||
|
||||
- variable: overseerrConfig
|
||||
label: ""
|
||||
group: Overseerr Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: additionalEnvs
|
||||
label: Additional Environment Variables
|
||||
description: Configure additional environment variables for Overseerr.
|
||||
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: overseerrRunAs
|
||||
label: ""
|
||||
group: User and Group Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: user
|
||||
label: User ID
|
||||
description: The user id that Overseerr will run as.
|
||||
schema:
|
||||
type: int
|
||||
min: 2
|
||||
default: 568
|
||||
required: true
|
||||
- variable: group
|
||||
label: Group ID
|
||||
description: The group id that Overseerr will run as.
|
||||
schema:
|
||||
type: int
|
||||
min: 2
|
||||
default: 568
|
||||
required: true
|
||||
|
||||
- variable: overseerrNetwork
|
||||
label: ""
|
||||
group: Network Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: webPort
|
||||
label: Web Port
|
||||
description: The port for the Overseerr Web UI.
|
||||
schema:
|
||||
type: int
|
||||
default: 30000
|
||||
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: overseerrStorage
|
||||
label: ""
|
||||
group: Storage Configuration
|
||||
schema:
|
||||
type: dict
|
||||
attrs:
|
||||
- variable: config
|
||||
label: Overseerr Config Storage
|
||||
description: The path to store Overseerr 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 Overseerr.
|
||||
schema:
|
||||
type: string
|
||||
default: "4000m"
|
||||
required: true
|
||||
- variable: memory
|
||||
label: Memory
|
||||
description: Memory limit for Overseerr.
|
||||
schema:
|
||||
type: string
|
||||
default: "8Gi"
|
||||
required: true
|
||||
1
library/ix-dev/community/overseerr/templates/NOTES.txt
Normal file
1
library/ix-dev/community/overseerr/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
84
library/ix-dev/community/overseerr/templates/_overseerr.tpl
Normal file
84
library/ix-dev/community/overseerr/templates/_overseerr.tpl
Normal file
@@ -0,0 +1,84 @@
|
||||
{{- define "overseerr.workload" -}}
|
||||
workload:
|
||||
overseerr:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: {{ .Values.overseerrNetwork.hostNetwork }}
|
||||
containers:
|
||||
overseerr:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.overseerrRunAs.user }}
|
||||
runAsGroup: {{ .Values.overseerrRunAs.group }}
|
||||
env:
|
||||
PORT: {{ .Values.overseerrNetwork.webPort }}
|
||||
envList:
|
||||
{{ with .Values.overseerrConfig.additionalEnvs }}
|
||||
{{ range $env := . }}
|
||||
- name: {{ $env.name }}
|
||||
value: {{ $env.value }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
port: {{ .Values.overseerrNetwork.webPort }}
|
||||
path: /api/v1/status
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
port: {{ .Values.overseerrNetwork.webPort }}
|
||||
path: /api/v1/status
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
port: {{ .Values.overseerrNetwork.webPort }}
|
||||
path: /api/v1/status
|
||||
initContainers:
|
||||
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
||||
"UID" .Values.overseerrRunAs.user
|
||||
"GID" .Values.overseerrRunAs.group
|
||||
"mode" "check"
|
||||
"type" "init") | nindent 8 }}
|
||||
|
||||
{{/* Service */}}
|
||||
service:
|
||||
overseerr:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: overseerr
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.overseerrNetwork.webPort }}
|
||||
nodePort: {{ .Values.overseerrNetwork.webPort }}
|
||||
targetSelector: overseerr
|
||||
|
||||
{{/* Persistence */}}
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
type: {{ .Values.overseerrStorage.config.type }}
|
||||
datasetName: {{ .Values.overseerrStorage.config.datasetName | default "" }}
|
||||
hostPath: {{ .Values.overseerrStorage.config.hostPath | default "" }}
|
||||
targetSelector:
|
||||
overseerr:
|
||||
overseerr:
|
||||
mountPath: /app/config
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories/config
|
||||
tmp:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
targetSelector:
|
||||
overseerr:
|
||||
overseerr:
|
||||
mountPath: /tmp
|
||||
{{- end -}}
|
||||
12
library/ix-dev/community/overseerr/templates/_portal.tpl
Normal file
12
library/ix-dev/community/overseerr/templates/_portal.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- define "overseerr.portal" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: portal
|
||||
data:
|
||||
path: "/"
|
||||
port: {{ .Values.overseerrNetwork.webPort | quote }}
|
||||
protocol: http
|
||||
host: $node_ip
|
||||
{{- end -}}
|
||||
9
library/ix-dev/community/overseerr/templates/common.yaml
Normal file
9
library/ix-dev/community/overseerr/templates/common.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "overseerr.workload" $ | fromYaml) -}}
|
||||
|
||||
{{/* Create the configmap for portal manually*/}}
|
||||
{{- include "overseerr.portal" $ -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
1
library/ix-dev/community/overseerr/upgrade_info.json
Normal file
1
library/ix-dev/community/overseerr/upgrade_info.json
Normal file
@@ -0,0 +1 @@
|
||||
{"filename": "values.yaml", "keys": ["image"]}
|
||||
31
library/ix-dev/community/overseerr/upgrade_strategy
Executable file
31
library/ix-dev/community/overseerr/upgrade_strategy
Executable file
@@ -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)))
|
||||
26
library/ix-dev/community/overseerr/values.yaml
Normal file
26
library/ix-dev/community/overseerr/values.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
image:
|
||||
repository: sctx/overseerr
|
||||
pullPolicy: IfNotPresent
|
||||
tag: '1.32.5'
|
||||
|
||||
resources:
|
||||
limits:
|
||||
cpu: 4000m
|
||||
memory: 8Gi
|
||||
|
||||
overseerrConfig:
|
||||
additionalEnvs: []
|
||||
|
||||
overseerrNetwork:
|
||||
webPort: 30000
|
||||
hostNetwork: false
|
||||
|
||||
overseerrRunAs:
|
||||
user: 568
|
||||
group: 568
|
||||
|
||||
overseerrStorage:
|
||||
config:
|
||||
type: ixVolume
|
||||
hostPath: ''
|
||||
datasetName: config
|
||||
Reference in New Issue
Block a user