syncthing
by harish2k01
Deploys Syncthing continuous file synchronization on Kubernetes
About this chart
Syncthing Helm Chart
Browse the Helm chart catalog to explore available charts and installation commands.
This chart deploys Syncthing using the official syncthing/syncthing container image, with persistent state, optional extra synchronized folder mounts, and optional Ingress or Gateway API HTTPRoute access for the Web UI.
[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.
Install
helm repo add harish2k01 https://charts.harish2k01.in
helm repo update
helm install syncthing harish2k01/syncthing
Install From OCI
This chart is also published as an OCI chart in GHCR. Use the same values and namespace flags with the OCI reference:
helm install syncthing oci://ghcr.io/harish2k01/helm-charts/syncthing --version 0.3.2
Web UI Access
Expose the Web UI with Gateway API:
httpRoutes:
main:
enabled: true
parentRefs:
- name: gateway
namespace: gateway-system
sectionName: https
hostnames:
- syncthing.example.com
Or with Ingress:
ingress:
enabled: true
className: nginx
hosts:
- host: syncthing.example.com
paths:
- path: /
pathType: Prefix
Persistence
Syncthing state is stored at /var/syncthing. The official image keeps configuration under /var/syncthing/config.
persistence:
config:
enabled: true
size: 10Gi
storageClassName: ""
Sync Folders
Mount an existing PVC when you want Syncthing to manage folders outside its primary state volume. Add the same paths as folders in the Syncthing Web UI after installation.
syncFolders:
enabled: true
existingClaim: shared-data-pvc
mounts:
- mountPath: /data/documents
subPath: documents
- mountPath: /data/photos
subPath: photos
For access from devices outside the cluster, expose TCP/UDP 22000 and UDP 21027 with a LoadBalancer, NodePort, or other cluster networking option.
Values
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of Syncthing replicas |
image.repository | string | syncthing/syncthing | Container image repository |
image.tag | string | 2.1.7 | Container image tag |
image.pullPolicy | string | IfNotPresent | Container pull policy |
env.PUID | string | 1000 | File ownership user ID |
env.PGID | string | 1000 | File ownership group ID |
env.TZ | string | Asia/Kolkata | Container timezone |
env.STGUIADDRESS | string | 0.0.0.0:8384 | Web UI bind address |
service.type | string | ClusterIP | Kubernetes Service type |
service.ports | list | Web UI, sync, discovery ports | Service ports exposed for Syncthing |
containerPorts | list | Web UI, sync, discovery ports | Container ports exposed by Syncthing |
persistence.config.enabled | bool | true | Create or mount the Syncthing home PVC |
persistence.config.existingClaim | string | "" | Existing PVC for /var/syncthing |
persistence.config.size | string | 10Gi | Syncthing home PVC size |
persistence.config.storageClassName | string | "" | Syncthing home PVC storage class |
syncFolders.enabled | bool | false | Mount an existing PVC for synchronized folders |
syncFolders.existingClaim | string | "" | Existing PVC containing synchronized folders |
syncFolders.mounts | list | [] | Paths and optional subPaths mounted from the sync folders PVC |
ingress.enabled | bool | false | Create a Kubernetes Ingress for the Web UI |
httpRoutes.main.enabled | bool | false | Create a Gateway API HTTPRoute for the Web UI |
startupProbe | object | HTTP /rest/noauth/health, up to 600s | Allows database startup/migration before liveness starts; set null to disable |
resources | object | {} | Container resource requests and limits |
nodeSelector | object | {} | Pod node selector |
tolerations | list | [] | Pod tolerations |
affinity | object | {} | Pod affinity |
Upgrade history
See CHANGELOG.md for application changes and compatibility notes.
Multiple HTTPRoutes
Use httpRoutes to define one or more routes, each with its own Gateway
references, hostnames, annotations, and rules. The default main entry is disabled.
httpRoutes:
internal:
parentRefs:
- name: internal-gateway
namespace: ingress
sectionName: https
hostnames: [app.internal.example.com]
external:
parentRefs:
- name: external-gateway
namespace: ingress
sectionName: https
hostnames: [app.example.com]
Each map key is a lowercase DNS label of up to 40 characters and becomes the
resource-name suffix (<app-fullname>-internal, for example). Long base names are
shortened to keep the suffix and stay within 63 characters; collisions fail rendering.
| Key | Default | Description |
|---|---|---|
httpRoutes | Disabled main entry | Named HTTPRoutes; defaults create no routes. |
httpRoutes.<name>.enabled | true | Set false to omit an entry, including its attachments. |
httpRoutes.<name>.parentRefs | Required when enabled | Gateway references, with optional namespace and listener section. |
httpRoutes.<name>.hostnames | Required when enabled | Independent explicit hostname list. |
httpRoutes.<name>.annotations | {} | Per-route annotations. |
httpRoutes.<name>.rules | Path prefix / | Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port. |
Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.
Migration from the single-route option
httpRoute has been removed. Move its settings under httpRoutes.main and remove
the old key entirely, including httpRoute.enabled: false. Old values fail
rendering with a migration message instead of silently dropping traffic. The old
resource <app-fullname> is replaced by <app-fullname>-main; coordinate the
upgrade with your GitOps pruning policy to avoid overlapping or missing routes.
Multiple hostnames and parent references apply to the whole route; use separate
entries when each hostname group must attach to a different Gateway.
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsyncthing is pinned at v0.3.2 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