scraper-bot

by RobertoBochet

Helm chartv0.3.0App 1.3.2GPL-3.0-or-laterVerified publisher

Scraper Bot helm chart

About this chart

Scraper Bot Helm Chart

This repo provides the helm chart for the Scraper Bot

The chart creates a CronJob to run the bot periodically

Deploy

  1. Add the repository to helm
    helm repo add robertobochet https://robertobochet.github.io/charts
    helm repo update
    
  2. Retrieve the default values file
    helm show values robertobochet/scraper-bot > values.yaml
    
  3. Customize the values.yaml
  4. Install backrest
    helm install scraper-bot robertobochet/scraper-bot -f values.yaml
    

Configuration

For the Scraper Bot configuration you have to look at the main repository scraper-bot

Parameters

Common parameters

NameDescriptionValue
nameOverrideString to partially override common.names.fullname""
fullnameOverrideString to fully override common.names.fullname""
imagePullSecretsSecret to use for pulling the image[]

Image

NameDescriptionValue
image.registryimage registry, e.g. gcr.io,docker.ioghcr.io
image.repositoryImage to start for this podrobertobochet/scraper-bot
image.tagVisit: Image tag. Defaults to appVersion within Chart.yaml.""
image.pullPolicyImage pull policyIfNotPresent

Security

NameDescriptionValue
podSecurityContextPod security context{}
containerSecurityContextSecurity context{}

CronJob

NameDescriptionValue
cronJob.scheduleDefines how often the job has to run. It uses the Cron syntax0 * * * *
cronJob.failedJobsHistoryLimitSpecifies the number of failed finished jobs to keep1
cronJob.successfulJobsHistoryLimitSpecifies the number of successful finished jobs to keep1
cronJob.concurrencyPolicySpecifies how to treat concurrent executions of a Job that is created by the CronJobReplace

Job

NameDescriptionValue
resourcesKubernetes resources{}
nodeSelectorNodeSelector for the job{}
tolerationsTolerations for the job[]
affinityAffinity for the job{}
configDefines the config of the scraper bot in yaml syntax. Refer to main project for the documentation""

diskCache

NameDescriptionValue
diskCache.enabledEnable diskCachetrue
diskCache.persistence.existingClaimUse an existing claim to store repository information""
diskCache.persistence.sizeSize of the pvc2Gi
diskCache.persistence.accessModesAccessMode for persistence["ReadWriteOnce"]
diskCache.persistence.storageClassStorageClass for the pvc""

redis

Redis and DiskCache cannot be enabled at the same time.

NameDescriptionValue
redis.enabledEnable redis standalone or replicatedfalse
redis.architectureWhether to use standalone or replicationstandalone
redis.serviceBindings.enabledEnable redis service-binding secrettrue
redis.master.persistence.enabledEnable persistence storagetrue
redis.master.persistence.storageClassStorageClass for the pvc""
redis.master.persistence.sizeSize of the pvc2Gi

Deploy scraper-bot with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has scraper-bot 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 chartscraper-bot is pinned at v0.3.0 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