rclone

by Helm

Helm chartv2.1.0App 1.68MIT

A Helm chart for to deploy rclone jobs in Kubernetes.

About this chart

Rclone - Helm Chart

This repository presents rclone helm chart to deploy in kubernetes.

Features

  • Job based deployment as job or cronjob.
  • Supports setting up mutliple remotes (backends) in rclone.
  • Customizable rclone command to run.
  • Facilitates setting rclone.conf file through config map resource.
  • Securely integrates credentials via external secrets operator. (optioanl when implicit IAM auth methods are missing).
  • Chart unit tests.

Usage

helm repo add rclone https://abarrak.github.io/rclone-helm
helm install rclone-jobs rclone/rclone --version 2.1.0

Chart Settings

You can customize both the job and rclone configuration in values.yaml file.

Values

KeyTypeDefaultDescription
affinityobject{}
backoffLimitint3
concurrencyPolicystring"Forbid"
enableExternalSecretsboolfalse
enablePlainSecretsboolfalse
envVars[0].namestring"RCLONE_CONFIG_FILE"
envVars[0].valuestring"/opt/rclone.conf"
envVars[1].namestring"REMOTE_A_NAME"
envVars[1].valuestring""
envVars[2].namestring"REMOTE_B_NAME"
envVars[2].valuestring""
envVars[3].namestring"REMOTE_A_BUCKET"
envVars[3].valuestring""
envVars[4].namestring"REMOTE_B_BUCKET"
envVars[4].valuestring""
failedJobsHistoryLimitint5
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"rclone/rclone"
image.tagstring"1.68"
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContextobject{}
rclone.commandstring"rclone copy $REMOTE_A_NAME:\"$REMOTE_A_BUCKET/\" $REMOTE_B_NAME:\"$REMOTE_A_BUCKET/\" --config $RCLONE_CONFIG_FILE --log-level=DEBUG --retries=1 --fast-list --progress --ignore-checksum --metadata --metadata-include \"tier=STANDARD\"\n"
rclone.configstring""
remoteBackendsExternalSecretslist[]
remoteBackendsSecretslist[]
resourcesobject{}
restartPolicystring"OnFailure"
schedulestring"0 10 * * *"
securityContextobject{}
serviceAccount.annotationsobject{}
serviceAccount.automountbooltrue
serviceAccount.createbooltrue
serviceAccount.namestring""
startingDeadlineSecondsstring""
successfulJobsHistoryLimitint5
suspendboolfalse
timeZonestring""
tolerationslist[]
ttlSecondsAfterFinishedstring"518400"
volumeMounts[0].mountPathstring"/opt/rclone.conf"
volumeMounts[0].namestring"rclone-conf"
volumeMounts[0].readOnlyboolfalse
volumeMounts[0].subPathstring"rclone.conf"
volumes[0].configMap.namestring"rclone"
volumes[0].namestring"rclone-conf"

License

MIT.

Deploy rclone with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has rclone 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 chartrclone is pinned at v2.1.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