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
| Key | Type | Default | Description |
|---|---|---|---|
| env | object | {} | extra environment variables for the volume-syncing-controller serve |
| health.liveness.attributes.failureThreshold | int | 2 | |
| health.liveness.attributes.periodSeconds | int | 80 | |
| health.liveness.enabled | bool | true | |
| health.readiness.attributes.failureThreshold | int | 2 | |
| health.readiness.attributes.periodSeconds | int | 25 | |
| health.readiness.enabled | bool | true | |
| image.repository | string | "ghcr.io/riotkit-org/volume-syncing-controller" | |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| resources | object | {} | requests and limits for the controller Pod |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | allows to pick existing service account instead of creating a new one |
| serviceAccount.name | string | "volume-syncing-controller" | |
| terminationGracePeriodSeconds | int | 5 | how 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.failurePolicy | string | "Fail" | prevent from Pod scheduling if webhook fails. This affects only labelled Pods - don't worry, it will not kill your cluster |
| webhook.onlyLabelledNamespaces | bool | false | work only inside namespaces that are labelled with riotkit.org/volume-syncing-controller: "true" |
| webhook.reinvocationPolicy | string | "IfNeeded" | if other webhook modifies the Pod, then re-execute the webhook |
| webhook.timeoutSeconds | int | 5 | typically 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartvolume-syncing-controller is pinned at v1.0.1-rc1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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