file-mirror

by kyokuping

Helm chartv0.1.3

Helm chart for file mirroring using rsync

About this chart

file-mirror

Helm chart for file mirroring using rsync

Example

# values.yaml
fullName: ubuntu-mirror
nginx:
  conf:
    serverName: "ubuntu.example.com"
rsync:
  source: "rsync://archive.ubuntu.com/ubuntu"
volume:
  hostPath: "/media/mirror/ubuntu" # customize as needed

Values

KeyTypeDefaultDescription
fullNamestring"file-mirror"Name of the application, mostly used as a prefix for resource names.
replicaCountint2Number of replicas for the deployment.
nodeSelectorobject{}Node selector for the Deployment pods.
nginx.tagstring"stable-alpine"Docker image tag for the nginx container.
nginx.conf.portint80Port on which the nginx server will listen.
nginx.conf.serverNamestring"localhost"Server name configuration for nginx.
rsync.tagstring"alpine"Docker image tag for the rsync container.
rsync.sourcestring""Source location for rsync to mirror files from.
rsync.excludeslist[]List of patterns to exclude from rsync mirroring.
rsync.cronJob.schedulestring"0 */2 * * *"Cron schedule expression for the rsync job (default: every 2 hours).
rsync.cronJob.startingDeadlineSecondsint60Deadline in seconds for starting the job if it misses its scheduled time.
volume.hostPathstring"/tmp"Host path to mount for storing mirrored files.
gateway.pathPrefixstring"/"Path prefix for the gateway configuration.
gateway.parentRefslist[]List of gateway parent references for the HTTPRoute. Each item should contain name, namespace, and sectionName.
gateway.additionalRuleslist[]Additional rules for the gateway configuration.

Deploy file-mirror with OpenTenant

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