bitmagnet
Helm chartv1.0.6App 0.10.0Verified publisher
A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
About this chart
bitmagnet
A self-hosted BitTorrent indexer, DHT crawler, content classifier and torrent search engine with web UI, GraphQL API and Servarr stack integration.
Source Code
Installing the Chart
To install the chart with the release name bitmagnet:
$ helm repo add brandan-schmitz http://brandan-schmitz.github.io/helm-charts
$ helm install bitmagnet brandan-schmitz/bitmagnet
Values
| Key | Type | Default | Description |
|---|---|---|---|
| controllers.bitmagnet.initContainers.wait-for-postgres.image.repository | string | "postgres" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.image.tag | string | "16-alpine" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.image.pullPolicy | string | "IfNotPresent" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.command[0] | string | "sh" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.command[1] | string | "-c" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.command[2] | string | "until pg_isready -h $POSTGRES_HOST -p 5432; do echo \"waiting for postgres\"; sleep 2; done;\n" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[0].name | string | "POSTGRES_HOST" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[0].value | string | "{{ .Release.Name }}-postgres" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[1].name | string | "POSTGRES_DB" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[1].value | string | "bitmagnet" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[2].name | string | "POSTGRES_USER" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[2].valueFrom.secretKeyRef.name | string | "{{ .Release.Name }}-secrets" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[2].valueFrom.secretKeyRef.key | string | "postgres-username" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[3].name | string | "POSTGRES_PASSWORD" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[3].valueFrom.secretKeyRef.name | string | "{{ .Release.Name }}-secrets" | |
| controllers.bitmagnet.initContainers.wait-for-postgres.env[3].valueFrom.secretKeyRef.key | string | "postgres-password" | |
| controllers.bitmagnet.containers.bitmagnet.image.repository | string | "ghcr.io/bitmagnet-io/bitmagnet" | image repository |
| controllers.bitmagnet.containers.bitmagnet.image.tag | string | nil | image tag (defaults to version defined in the chart) |
| controllers.bitmagnet.containers.bitmagnet.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| controllers.bitmagnet.containers.bitmagnet.args[0] | string | "worker" | |
| controllers.bitmagnet.containers.bitmagnet.args[1] | string | "run" | |
| controllers.bitmagnet.containers.bitmagnet.args[2] | string | "--all" | |
| controllers.bitmagnet.containers.bitmagnet.env | list | [{"name":"POSTGRES_HOST","value":"{{ .Release.Name }}-postgres"},{"name":"POSTGRES_NAME","value":"bitmagnet"},{"name":"POSTGRES_USER","valueFrom":{"secretKeyRef":{"key":"postgres-username","name":"{{ .Release.Name }}-secrets"}}},{"name":"POSTGRES_PASSWORD","valueFrom":{"secretKeyRef":{"key":"postgres-password","name":"{{ .Release.Name }}-secrets"}}},{"name":"TMDB_API_KEY","valueFrom":{"secretKeyRef":{"key":"tmdb-api-key","name":"{{ .Release.Name }}-secrets"}}}] | Environment variables. Template enabled. |
| controllers.bitmagnet.containers.bitmagnet.probes | object | {"liveness":{"custom":false,"enabled":true,"spec":{"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":1},"type":"TCP"},"readiness":{"custom":false,"enabled":true,"spec":{"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":1},"type":"TCP"},"startup":{"custom":false,"enabled":true,"spec":{"failureThreshold":30,"initialDelaySeconds":0,"periodSeconds":5,"timeoutSeconds":1},"type":"TCP"}} | [ref] |
| controllers.bitmagnet.containers.bitmagnet.probes.liveness | object | See below | Liveness probe configuration |
| controllers.bitmagnet.containers.bitmagnet.probes.liveness.enabled | bool | true | Enable the liveness probe |
| controllers.bitmagnet.containers.bitmagnet.probes.liveness.custom | bool | false | Set this to true if you wish to specify your own livenessProbe |
| controllers.bitmagnet.containers.bitmagnet.probes.liveness.type | string | "TCP" | sets the probe type when not using a custom probe |
| controllers.bitmagnet.containers.bitmagnet.probes.liveness.spec | object | See below | The spec field contains the values for the default livenessProbe. If you selected custom: true, this field holds the definition of the livenessProbe. |
| controllers.bitmagnet.containers.bitmagnet.probes.readiness | object | {"custom":false,"enabled":true,"spec":{"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":1},"type":"TCP"} | Readiness probe configuration |
| controllers.bitmagnet.containers.bitmagnet.probes.readiness.enabled | bool | true | Enable the readiness probe |
| controllers.bitmagnet.containers.bitmagnet.probes.readiness.custom | bool | false | Set this to true if you wish to specify your own readinessProbe |
| controllers.bitmagnet.containers.bitmagnet.probes.readiness.type | string | "TCP" | sets the probe type when not using a custom probe |
| controllers.bitmagnet.containers.bitmagnet.probes.readiness.spec | object | See below | The spec field contains the values for the default readinessProbe. If you selected custom: true, this field holds the definition of the readinessProbe. |
| controllers.bitmagnet.containers.bitmagnet.probes.startup | object | {"custom":false,"enabled":true,"spec":{"failureThreshold":30,"initialDelaySeconds":0,"periodSeconds":5,"timeoutSeconds":1},"type":"TCP"} | Startup probe configuration |
| controllers.bitmagnet.containers.bitmagnet.probes.startup.enabled | bool | true | Enable the startup probe |
| controllers.bitmagnet.containers.bitmagnet.probes.startup.custom | bool | false | Set this to true if you wish to specify your own startupProbe |
| controllers.bitmagnet.containers.bitmagnet.probes.startup.type | string | "TCP" | sets the probe type when not using a custom probe |
| controllers.bitmagnet.containers.bitmagnet.probes.startup.spec | object | See below | The spec field contains the values for the default startupProbe. If you selected custom: true, this field holds the definition of the startupProbe. |
| controllers.bitmagnet.containers.bitmagnet.resources | object | {} | Set the resource requests / limits for the container. |
| controllers.postgres.enabled | bool | true | enable the controller. |
| controllers.postgres.type | string | "statefulset" | Set the controller type. Valid options are deployment, daemonset, statefulset, cronjob or job |
| controllers.postgres.replicas | int | 1 | Number of desired pods. When using a HorizontalPodAutoscaler, set this to null. |
| controllers.postgres.strategy | string | "OnDelete" | Set the controller upgrade strategy |
| controllers.postgres.statefulset | object | {"volumeClaimTemplates":[{"accessMode":"ReadWriteOnce","annotations":{},"globalMounts":[{"path":"/var/lib/postgresql/data","subPath":"data"}],"labels":{},"name":"data","size":"80Gi"}]} | StatefulSet configuration. |
| controllers.postgres.statefulset.volumeClaimTemplates | list | [{"accessMode":"ReadWriteOnce","annotations":{},"globalMounts":[{"path":"/var/lib/postgresql/data","subPath":"data"}],"labels":{},"name":"data","size":"80Gi"}] | Used to create individual disks for each instance. |
| controllers.postgres.containers.postgres.image.repository | string | "postgres" | image repository |
| controllers.postgres.containers.postgres.image.tag | string | "16-alpine" | image tag |
| controllers.postgres.containers.postgres.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| controllers.postgres.containers.postgres.env | list | [{"name":"POSTGRES_HOST","value":"{{ .Release.Name }}-postgres"},{"name":"POSTGRES_DB","value":"bitmagnet"},{"name":"POSTGRES_USER","valueFrom":{"secretKeyRef":{"key":"postgres-username","name":"{{ .Release.Name }}-secrets"}}},{"name":"POSTGRES_PASSWORD","valueFrom":{"secretKeyRef":{"key":"postgres-password","name":"{{ .Release.Name }}-secrets"}}}] | Environment variables. Template enabled. |
| controllers.postgres.containers.postgres.probes | object | {"liveness":{"custom":true,"enabled":true,"spec":{"exec":{"command":["sh","-c","pg_isready -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\" -h localhost\n"]},"failureThreshold":3,"initialDelaySeconds":60,"periodSeconds":30,"timeoutSeconds":5}},"readiness":{"custom":true,"enabled":true,"spec":{"exec":{"command":["sh","-c","psql -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\" -c \"SELECT 1\"\n"]},"failureThreshold":3,"initialDelaySeconds":20,"periodSeconds":15,"timeoutSeconds":5}},"startup":{"custom":true,"enabled":true,"spec":{"exec":{"command":["sh","-c","pg_isready -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\" -h localhost\n"]},"failureThreshold":12,"initialDelaySeconds":10,"periodSeconds":10,"timeoutSeconds":5}}} | [ref] |
| controllers.postgres.containers.postgres.probes.liveness | object | See below | Liveness probe configuration |
| controllers.postgres.containers.postgres.probes.liveness.enabled | bool | true | Enable the liveness probe |
| controllers.postgres.containers.postgres.probes.liveness.custom | bool | true | Set this to true if you wish to specify your own livenessProbe |
| controllers.postgres.containers.postgres.probes.liveness.spec | object | See below | The spec field contains the values for the default livenessProbe. |
| controllers.postgres.containers.postgres.probes.readiness | object | {"custom":true,"enabled":true,"spec":{"exec":{"command":["sh","-c","psql -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\" -c \"SELECT 1\"\n"]},"failureThreshold":3,"initialDelaySeconds":20,"periodSeconds":15,"timeoutSeconds":5}} | Readiness probe configuration |
| controllers.postgres.containers.postgres.probes.readiness.enabled | bool | true | Enable the readiness probe |
| controllers.postgres.containers.postgres.probes.readiness.custom | bool | true | Set this to true if you wish to specify your own readinessProbe |
| controllers.postgres.containers.postgres.probes.readiness.spec | object | See below | The spec field contains the values for the default readinessProbe. |
| controllers.postgres.containers.postgres.probes.startup | object | {"custom":true,"enabled":true,"spec":{"exec":{"command":["sh","-c","pg_isready -U \"$POSTGRES_USER\" -d \"$POSTGRES_DB\" -h localhost\n"]},"failureThreshold":12,"initialDelaySeconds":10,"periodSeconds":10,"timeoutSeconds":5}} | Startup probe configuration |
| controllers.postgres.containers.postgres.probes.startup.enabled | bool | true | Enable the startup probe |
| controllers.postgres.containers.postgres.probes.startup.custom | bool | true | Set this to true if you wish to specify your own startupProbe |
| controllers.postgres.containers.postgres.probes.startup.spec | object | See below | The spec field contains the values for the default startupProbe. |
| controllers.postgres.containers.postgres.resources | object | {} | Set the resource requests / limits for the container. |
| secrets | object | See below | Use this to populate secrets with the values you specify. Be aware that these values are not encrypted by default, and could therefore visible to anybody with access to the values.yaml file. |
| secrets.bitmagnet-secrets.enabled | bool | true | Enables or disables the Secret |
| secrets.bitmagnet-secrets.suffix | string | "secrets" | Sets the suffix of the secret otherwise it will just be the release name |
| secrets.bitmagnet-secrets.stringData | object | {"postgres-password":"K8Y763jYxsFz","postgres-username":"postgres"} | Secret stringData content. Helm template enabled. |
| service | object | See below | Configure the services for the chart here. Additional services can be added by adding a dictionary key similar to the 'main' service. |
| service.bitmagnet.enabled | bool | true | Enables or disables the service |
| service.bitmagnet.controller | string | "bitmagnet" | Configure which controller this service should target |
| service.bitmagnet.primary | bool | true | Make this the primary service for this controller (used in probes, notes, etc...). If there is more than 1 service targeting the controller, make sure that only 1 service is marked as primary. |
| service.bitmagnet.type | string | "ClusterIP" | Set the service type |
| service.bitmagnet.annotations | object | {} | Provide additional annotations which may be required. |
| service.bitmagnet.labels | object | {} | Provide additional labels which may be required. |
| service.bitmagnet.extraSelectorLabels | object | {} | Allow adding additional match labels |
| service.bitmagnet.ports | object | See below | Configure the Service port information here. Additional ports can be added by adding a dictionary key similar to the 'http' service. |
| service.bitmagnet.ports.http.enabled | bool | true | Enables or disables the port |
| service.bitmagnet.ports.http.primary | bool | true | Make this the primary port |
| service.bitmagnet.ports.http.port |
Deploy bitmagnet with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has bitmagnet on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartbitmagnet is pinned at v1.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply