bitmagnet

by brandan-schmitz

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

KeyTypeDefaultDescription
controllers.bitmagnet.initContainers.wait-for-postgres.image.repositorystring"postgres"
controllers.bitmagnet.initContainers.wait-for-postgres.image.tagstring"16-alpine"
controllers.bitmagnet.initContainers.wait-for-postgres.image.pullPolicystring"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].namestring"POSTGRES_HOST"
controllers.bitmagnet.initContainers.wait-for-postgres.env[0].valuestring"{{ .Release.Name }}-postgres"
controllers.bitmagnet.initContainers.wait-for-postgres.env[1].namestring"POSTGRES_DB"
controllers.bitmagnet.initContainers.wait-for-postgres.env[1].valuestring"bitmagnet"
controllers.bitmagnet.initContainers.wait-for-postgres.env[2].namestring"POSTGRES_USER"
controllers.bitmagnet.initContainers.wait-for-postgres.env[2].valueFrom.secretKeyRef.namestring"{{ .Release.Name }}-secrets"
controllers.bitmagnet.initContainers.wait-for-postgres.env[2].valueFrom.secretKeyRef.keystring"postgres-username"
controllers.bitmagnet.initContainers.wait-for-postgres.env[3].namestring"POSTGRES_PASSWORD"
controllers.bitmagnet.initContainers.wait-for-postgres.env[3].valueFrom.secretKeyRef.namestring"{{ .Release.Name }}-secrets"
controllers.bitmagnet.initContainers.wait-for-postgres.env[3].valueFrom.secretKeyRef.keystring"postgres-password"
controllers.bitmagnet.containers.bitmagnet.image.repositorystring"ghcr.io/bitmagnet-io/bitmagnet"image repository
controllers.bitmagnet.containers.bitmagnet.image.tagstringnilimage tag (defaults to version defined in the chart)
controllers.bitmagnet.containers.bitmagnet.image.pullPolicystring"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.envlist[{"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.probesobject{"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.livenessobjectSee belowLiveness probe configuration
controllers.bitmagnet.containers.bitmagnet.probes.liveness.enabledbooltrueEnable the liveness probe
controllers.bitmagnet.containers.bitmagnet.probes.liveness.customboolfalseSet this to true if you wish to specify your own livenessProbe
controllers.bitmagnet.containers.bitmagnet.probes.liveness.typestring"TCP"sets the probe type when not using a custom probe
controllers.bitmagnet.containers.bitmagnet.probes.liveness.specobjectSee belowThe 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.readinessobject{"custom":false,"enabled":true,"spec":{"failureThreshold":3,"initialDelaySeconds":0,"periodSeconds":10,"timeoutSeconds":1},"type":"TCP"}Readiness probe configuration
controllers.bitmagnet.containers.bitmagnet.probes.readiness.enabledbooltrueEnable the readiness probe
controllers.bitmagnet.containers.bitmagnet.probes.readiness.customboolfalseSet this to true if you wish to specify your own readinessProbe
controllers.bitmagnet.containers.bitmagnet.probes.readiness.typestring"TCP"sets the probe type when not using a custom probe
controllers.bitmagnet.containers.bitmagnet.probes.readiness.specobjectSee belowThe 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.startupobject{"custom":false,"enabled":true,"spec":{"failureThreshold":30,"initialDelaySeconds":0,"periodSeconds":5,"timeoutSeconds":1},"type":"TCP"}Startup probe configuration
controllers.bitmagnet.containers.bitmagnet.probes.startup.enabledbooltrueEnable the startup probe
controllers.bitmagnet.containers.bitmagnet.probes.startup.customboolfalseSet this to true if you wish to specify your own startupProbe
controllers.bitmagnet.containers.bitmagnet.probes.startup.typestring"TCP"sets the probe type when not using a custom probe
controllers.bitmagnet.containers.bitmagnet.probes.startup.specobjectSee belowThe 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.resourcesobject{}Set the resource requests / limits for the container.
controllers.postgres.enabledbooltrueenable the controller.
controllers.postgres.typestring"statefulset"Set the controller type. Valid options are deployment, daemonset, statefulset, cronjob or job
controllers.postgres.replicasint1Number of desired pods. When using a HorizontalPodAutoscaler, set this to null.
controllers.postgres.strategystring"OnDelete"Set the controller upgrade strategy
controllers.postgres.statefulsetobject{"volumeClaimTemplates":[{"accessMode":"ReadWriteOnce","annotations":{},"globalMounts":[{"path":"/var/lib/postgresql/data","subPath":"data"}],"labels":{},"name":"data","size":"80Gi"}]}StatefulSet configuration.
controllers.postgres.statefulset.volumeClaimTemplateslist[{"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.repositorystring"postgres"image repository
controllers.postgres.containers.postgres.image.tagstring"16-alpine"image tag
controllers.postgres.containers.postgres.image.pullPolicystring"IfNotPresent"image pull policy
controllers.postgres.containers.postgres.envlist[{"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.probesobject{"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.livenessobjectSee belowLiveness probe configuration
controllers.postgres.containers.postgres.probes.liveness.enabledbooltrueEnable the liveness probe
controllers.postgres.containers.postgres.probes.liveness.custombooltrueSet this to true if you wish to specify your own livenessProbe
controllers.postgres.containers.postgres.probes.liveness.specobjectSee belowThe spec field contains the values for the default livenessProbe.
controllers.postgres.containers.postgres.probes.readinessobject{"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.enabledbooltrueEnable the readiness probe
controllers.postgres.containers.postgres.probes.readiness.custombooltrueSet this to true if you wish to specify your own readinessProbe
controllers.postgres.containers.postgres.probes.readiness.specobjectSee belowThe spec field contains the values for the default readinessProbe.
controllers.postgres.containers.postgres.probes.startupobject{"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.enabledbooltrueEnable the startup probe
controllers.postgres.containers.postgres.probes.startup.custombooltrueSet this to true if you wish to specify your own startupProbe
controllers.postgres.containers.postgres.probes.startup.specobjectSee belowThe spec field contains the values for the default startupProbe.
controllers.postgres.containers.postgres.resourcesobject{}Set the resource requests / limits for the container.
secretsobjectSee belowUse 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.enabledbooltrueEnables or disables the Secret
secrets.bitmagnet-secrets.suffixstring"secrets"Sets the suffix of the secret otherwise it will just be the release name
secrets.bitmagnet-secrets.stringDataobject{"postgres-password":"K8Y763jYxsFz","postgres-username":"postgres"}Secret stringData content. Helm template enabled.
serviceobjectSee belowConfigure the services for the chart here. Additional services can be added by adding a dictionary key similar to the 'main' service.
service.bitmagnet.enabledbooltrueEnables or disables the service
service.bitmagnet.controllerstring"bitmagnet"Configure which controller this service should target
service.bitmagnet.primarybooltrueMake 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.typestring"ClusterIP"Set the service type
service.bitmagnet.annotationsobject{}Provide additional annotations which may be required.
service.bitmagnet.labelsobject{}Provide additional labels which may be required.
service.bitmagnet.extraSelectorLabelsobject{}Allow adding additional match labels
service.bitmagnet.portsobjectSee belowConfigure the Service port information here. Additional ports can be added by adding a dictionary key similar to the 'http' service.
service.bitmagnet.ports.http.enabledbooltrueEnables or disables the port
service.bitmagnet.ports.http.primarybooltrueMake 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartbitmagnet is pinned at v1.0.6 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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