diff --git a/charts/incubator/bitmagnet/.helmignore b/charts/incubator/bitmagnet/.helmignore new file mode 100644 index 00000000000..77ca5567b26 --- /dev/null +++ b/charts/incubator/bitmagnet/.helmignore @@ -0,0 +1,30 @@ +# 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 +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png diff --git a/charts/incubator/bitmagnet/CHANGELOG.md b/charts/incubator/bitmagnet/CHANGELOG.md new file mode 100644 index 00000000000..e69de29bb2d diff --git a/charts/incubator/bitmagnet/Chart.yaml b/charts/incubator/bitmagnet/Chart.yaml new file mode 100644 index 00000000000..2861539f42a --- /dev/null +++ b/charts/incubator/bitmagnet/Chart.yaml @@ -0,0 +1,37 @@ +annotations: + max_scale_version: 24.04.0 + min_scale_version: 23.10.0 + truecharts.org/SCALE-support: "true" + truecharts.org/category: media + truecharts.org/max_helm_version: "3.14" + truecharts.org/min_helm_version: "3.12" + truecharts.org/train: incubator +apiVersion: v2 +appVersion: 0.7.5 +dependencies: + - name: common + version: 17.5.0 + repository: oci://tccr.io/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration. +home: https://truecharts.org/charts/incubator/bitmagnet +icon: https://truecharts.org/img/hotlink-ok/chart-icons/bitmagnet.png +keywords: + - torrent + - bitmagnet +kubeVersion: ">=1.24.0-0" +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: bitmagnet +sources: + - https://bitmagnet.io + - https://github.com/bitmagnet-io/bitmagnet + - https://github.com/truecharts/charts/tree/master/charts/incubator/bitmagnet +type: application +version: 0.0.1 diff --git a/charts/incubator/bitmagnet/README.md b/charts/incubator/bitmagnet/README.md new file mode 100644 index 00000000000..958c52a65dd --- /dev/null +++ b/charts/incubator/bitmagnet/README.md @@ -0,0 +1,28 @@ +--- +title: README +--- + +## General Info + +TrueCharts can be installed as both _normal_ Helm Charts or as Apps on TrueNAS SCALE. +However only installations using the TrueNAS SCALE Apps system are supported. + +For more information about this App, please check the docs on the TrueCharts [website](https://truecharts.org/charts/incubator/bitmagnet) + +**This chart is not maintained by the upstream project and any issues with the chart should be raised [here](https://github.com/truecharts/charts/issues/new/choose)** + +## Support + +- Please check our [quick-start guides for TrueNAS SCALE](https://truecharts.org/manual/SCALE/guides/scale-intro). +- See the [Website](https://truecharts.org) +- Check our [Discord](https://discord.gg/tVsPTHWTtr) +- Open a [issue](https://github.com/truecharts/charts/issues/new/choose) + +--- + +## Sponsor TrueCharts + +TrueCharts can only exist due to the incredible effort of our staff. +Please consider making a [donation](https://truecharts.org/sponsor) or contributing back to the project any way you can! + +_All Rights Reserved - The TrueCharts Project_ diff --git a/charts/incubator/bitmagnet/icon.png b/charts/incubator/bitmagnet/icon.png new file mode 100644 index 00000000000..2c24359483f Binary files /dev/null and b/charts/incubator/bitmagnet/icon.png differ diff --git a/charts/incubator/bitmagnet/questions.yaml b/charts/incubator/bitmagnet/questions.yaml new file mode 100644 index 00000000000..24caa940f69 --- /dev/null +++ b/charts/incubator/bitmagnet/questions.yaml @@ -0,0 +1,120 @@ +# Include{groups} +portals: + open: +# Include{portalLink} +questions: +# Include{global} +# Include{workload} +# Include{workloadDeployment} +# Include{replicas1} +# Include{podSpec} +# Include{containerMain} + - variable: env + group: App Configuration + label: Image Environment + schema: + additional_attrs: true + type: dict + attrs: + - variable: TMDB_API_KEY + label: TMDB API Key + description: bitmagnet uses the TMDB API to fetch metadata for movies and TV shows. + schema: + type: string + private: true + default: "" + - variable: DHT_CRAWLER_SAVE_FILES_THRESHOLD + label: DHT Crawler Save Files Threshold + description: This parameter provides a compromise over disabling the saving of files altogether. Some torrents contain many thousands of files, which impacts performance and uses a lot of database disk space. This parameter will discard the files info when the number of files is greater than the threshold. + schema: + type: string + default: "50" +# Include{containerBasic} +# Include{containerAdvanced} +# Include{containerConfig} +# Include{podOptions} +# Include{serviceRoot} +# Include{serviceMain} +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: main + label: "Main Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 3333 + required: true + - variable: torrent + label: "Torrent Service" + description: "Torrent service" + schema: + additional_attrs: true + type: dict + attrs: +# Include{serviceSelectorLoadBalancer} +# Include{serviceSelectorExtras} + - variable: tcp + label: "TCP Service Port Configuration" + schema: + additional_attrs: true + type: dict + attrs: + - variable: port + label: "Port" + description: "This port exposes the container port on the service" + schema: + type: int + default: 3334 + required: true +# Include{serviceExpertRoot} +# Include{serviceExpert} +# Include{serviceList} +# Include{persistenceList} +# Include{ingressRoot} + - variable: main + label: "Main Ingress" + schema: + additional_attrs: true + type: dict + attrs: +# Include{ingressDefault} +# Include{ingressAdvanced} +# Include{ingressList} +# Include{securityContextRoot} + - variable: runAsUser + label: "runAsUser" + description: "The UserID of the user running the application" + schema: + type: int + default: 568 + - variable: runAsGroup + label: "runAsGroup" + description: "The groupID this App of the user running the application" + schema: + type: int + default: 568 +# Include{securityContextContainer} +# Include{securityContextAdvanced} +# Include{securityContextPod} + - variable: fsGroup + label: "fsGroup" + description: "The group that should own ALL storage." + schema: + type: int + default: 568 +# Include{resources} +# Include{postgresql} +# Include{metrics} +# Include{prometheusRule} +# Include{advanced} +# Include{addons} +# Include{codeserver} +# Include{netshoot} +# Include{vpn} +# Include{documentation} diff --git a/charts/incubator/bitmagnet/templates/NOTES.txt b/charts/incubator/bitmagnet/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/bitmagnet/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/bitmagnet/templates/common.yaml b/charts/incubator/bitmagnet/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/bitmagnet/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/bitmagnet/values.yaml b/charts/incubator/bitmagnet/values.yaml new file mode 100644 index 00000000000..a64a89f1040 --- /dev/null +++ b/charts/incubator/bitmagnet/values.yaml @@ -0,0 +1,76 @@ +image: + repository: ghcr.io/bitmagnet-io/bitmagnet + tag: 0.7.5@sha256:40c91a1fc711d1988a5d630968f7051e59733446f340ff745d27b65a624c7b41 + pullPolicy: IfNotPresent +service: + main: + ports: + main: + port: 3333 + targetPort: 3333 + torrent: + enabled: true + ports: + tcp: + enabled: true + port: 3334 + targetPort: 3334 + protocol: tcp + udp: + enabled: true + port: "{{ .Values.service.torrent.ports.tcp.port }}" + targetPort: "{{ .Values.service.torrent.ports.tcp.targetPort }}" + protocol: udp +cnpg: + main: + enabled: true + user: bitmagnet + database: bitmagnet +portal: + open: + enabled: true +workload: + main: + podSpec: + containers: + main: + env: + POSTGRES_NAME: "{{ .Values.cnpg.main.database }}" + POSTGRES_USER: "{{ .Values.cnpg.main.user }}" + POSTGRES_PASSWORD: + secretKeyRef: + name: cnpg-main-user + key: password + POSTGRES_HOST: + secretKeyRef: + name: cnpg-main-urls + key: host + TMDB_API_KEY: "" + DHT_CRAWLER_SAVE_FILES_THRESHOLD: "50" + args: + - worker + - run + - --all + probes: + readiness: + enabled: true + type: http + path: /status + liveness: + enabled: true + type: http + path: /status + startup: + enabled: true + type: http + path: /status +metrics: + main: + enabled: true + type: "servicemonitor" + endpoints: + - port: main + path: /metrics + targetSelector: main + prometheusRule: + enabled: false \ No newline at end of file