syncthing

by brandan-schmitz

Helm chartv2.1.0App 2.1.1Verified publisher

Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes.

About this chart

syncthing

Syncthing is a continuous file synchronization program. It synchronizes files between two or more computers in real time, safely protected from prying eyes.

Source Code

Installing the Chart

To install the chart with the release name syncthing:

$ helm repo add brandan-schmitz http://brandan-schmitz.github.io/helm-charts
$ helm install syncthing brandan-schmitz/syncthing

Values

KeyTypeDefaultDescription
controllers.main.pod.securityContextobject{"fsGroup":1000,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":1000,"runAsUser":1000}Configure the Security Context for the Pod
controllers.main.containers.main.image.repositorystring"syncthing/syncthing"image repository
controllers.main.containers.main.image.tagstringnilimage tag
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"image pull policy
controllers.main.containers.main.resourcesobject{"limits":{"cpu":"500m","memory":"1024Mi"},"requests":{"cpu":"250m","memory":"512Mi"}}Set the resource requests / limits for the container.
serviceobjectSee belowConfigure the services for the chart here. Additional services can be added by adding a dictionary key similar to the 'main' service.
service.main.enabledbooltrueEnables or disables the service
service.main.controllerstring"main"Configure which controller this service should target
service.main.typestring"ClusterIP"Set the service type
service.main.annotationsobject{}Provide additional annotations which may be required.
service.main.labelsobject{}Provide additional labels which may be required.
service.main.extraSelectorLabelsobject{}Allow adding additional match labels
service.main.portsobjectSee belowConfigure the Service port information here. Additional ports can be added by adding a dictionary key similar to the 'http' service.
service.main.ports.http.enabledbooltrueEnables or disables the port
service.main.ports.http.primarybooltrueMake this the primary port (used in probes, notes, etc...) If there is more than 1 service, make sure that only 1 port is marked as primary.
service.main.ports.http.portint8384The port number
service.main.ports.http.protocolstring"HTTP"Port protocol. Support values are HTTP, HTTPS, TCP and UDP. HTTP and HTTPS spawn a TCP service and get used for internal URL and name generation
service.main.ports.listen.enabledbooltrueEnables or disables the port
service.main.ports.listen.primarybooltrueMake this the primary port (used in probes, notes, etc...) If there is more than 1 service, make sure that only 1 port is marked as primary.
service.main.ports.listen.portint22000The port number
service.main.ports.listen.protocolstring"TCP"Port protocol. Support values are HTTP, HTTPS, TCP and UDP. HTTP and HTTPS spawn a TCP service and get used for internal URL and name generation
service.main.ports.discovery.enabledbooltrueEnables or disables the port
service.main.ports.discovery.primarybooltrueMake this the primary port (used in probes, notes, etc...) If there is more than 1 service, make sure that only 1 port is marked as primary.
service.main.ports.discovery.portint21027The port number
service.main.ports.discovery.protocolstring"UDP"Port protocol. Support values are HTTP, HTTPS, TCP and UDP. HTTP and HTTPS spawn a TCP service and get used for internal URL and name generation
ingressobject{}Configure the ingresses for the chart here.
persistenceobjectSee belowConfigure persistence for the chart here. Additional items can be added by adding a dictionary key similar to the 'config' key. [ref]
persistence.config.enabledbooltrueEnables or disables the persistence item. Defaults to true
persistence.config.typestring"persistentVolumeClaim"Sets the persistence type Valid options are persistentVolumeClaim, emptyDir, nfs, hostPath, secret, configMap or custom
persistence.config.storageClassstringnilStorage Class for the config volume. If set to -, dynamic provisioning is disabled. If set to something else, the given storageClass is used. If undefined (the default) or set to null, no storageClassName spec is set, choosing the default provisioner.
persistence.config.existingClaimstringnilIf you want to reuse an existing claim, the name of the existing PVC can be passed here.
persistence.config.dataSourceobject{}The optional data source for the persistentVolumeClaim. [ref]
persistence.config.dataSourceRefobject{}The optional volume populator for the persistentVolumeClaim. [ref]
persistence.config.accessModestring"ReadWriteOnce"AccessMode for the persistent volume. Make sure to select an access mode that is supported by your storage provider! [ref]
persistence.config.sizestring"10Gi"The amount of storage that is requested for the persistent volume.
persistence.config.retainbooltrueSet to true to retain the PVC upon helm uninstall
persistence.config.globalMountslist[{"path":"/var/syncthing","readOnly":false}]Configure mounts to all controllers and containers.

Autogenerated from chart metadata using helm-docs v1.12.0

Deploy syncthing with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has syncthing 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 chartsyncthing 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