volume-syncing-controller

by Riotkit

Helm chartv1.0.1-rc1App v1.0.1-rc1

Controller that injects rclone into Pods that are going to be created. Allows to synchronize service periodically, and restore on Pod creation

About this chart

Controller that injects rclone into Pods that are going to be created. Allows to synchronize service periodically, and restore on Pod creation

Example use cases

  • Service restored from cloud-storage in other data center with its own CNI
  • Kubernetes service state kept in cloud-storage, restored outside Kubernetes (e.g. in docker on desktop for development)
  • Snapshot type backup (does not support versioning on client side - the cloud remote storage could do this)
  • Ability to move services between machines in tiny K3s clusters, where network CNI is not available - only local storage is used

Parameters

KeyTypeDefaultDescription
envobject{}extra environment variables for the volume-syncing-controller serve
health.liveness.attributes.failureThresholdint2
health.liveness.attributes.periodSecondsint80
health.liveness.enabledbooltrue
health.readiness.attributes.failureThresholdint2
health.readiness.attributes.periodSecondsint25
health.readiness.enabledbooltrue
image.repositorystring"ghcr.io/riotkit-org/volume-syncing-controller"
podAnnotationsobject{}
podLabelsobject{}
resourcesobject{}requests and limits for the controller Pod
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrueallows to pick existing service account instead of creating a new one
serviceAccount.namestring"volume-syncing-controller"
terminationGracePeriodSecondsint5how long it takes for the webhook serving Pod to be terminated. This controller does not perform heavy operations and can be safely restarted in short time
webhook.failurePolicystring"Fail"prevent from Pod scheduling if webhook fails. This affects only labelled Pods - don't worry, it will not kill your cluster
webhook.onlyLabelledNamespacesboolfalsework only inside namespaces that are labelled with riotkit.org/volume-syncing-controller: "true"
webhook.reinvocationPolicystring"IfNeeded"if other webhook modifies the Pod, then re-execute the webhook
webhook.timeoutSecondsint5typically the webhook microservice should respond within milliseconds

Check full documentation on Github

Deploy volume-syncing-controller with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has volume-syncing-controller 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 chartvolume-syncing-controller is pinned at v1.0.1-rc1 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