From 1b08ce19c8b381c0318b3f44d5c70f06ec5fda76 Mon Sep 17 00:00:00 2001 From: jb Date: Thu, 4 Sep 2025 01:04:11 +1000 Subject: [PATCH] Add syncthing --- applications/stuff/syncthing.yaml | 100 ++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 applications/stuff/syncthing.yaml diff --git a/applications/stuff/syncthing.yaml b/applications/stuff/syncthing.yaml new file mode 100644 index 0000000..5a521ee --- /dev/null +++ b/applications/stuff/syncthing.yaml @@ -0,0 +1,100 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: syncthing + namespace: home-server + labels: + app: syncthing +spec: + replicas: 1 + selector: + matchLabels: + app: syncthing + template: + metadata: + labels: + app: syncthing + spec: + containers: + - name: syncthing + image: linuxserver/syncthing:latest + imagePullPolicy: Always + ports: + - containerPort: 8384 # Web GUI + - containerPort: 22000 # Sync TCP + - containerPort: 22000 # Sync UDP (same port, different protocol) + protocol: UDP + - containerPort: 21027 # Local discovery + protocol: UDP + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "Australia/Sydney" + volumeMounts: + - name: config + mountPath: /config + - name: data + mountPath: /data + volumes: + - name: config + hostPath: + path: /dpool/services/syncthing/config + type: DirectoryOrCreate + - name: data + hostPath: + path: /dpool/services/syncthing/data + type: DirectoryOrCreate +--- +apiVersion: v1 +kind: Service +metadata: + name: syncthing + namespace: home-server +spec: + selector: + app: syncthing + ports: + - name: web + port: 8384 + targetPort: 8384 + - name: sync-tcp + port: 22000 + targetPort: 22000 + protocol: TCP + - name: sync-udp + port: 22000 + targetPort: 22000 + protocol: UDP + - name: discovery + port: 21027 + targetPort: 21027 + protocol: UDP + type: ClusterIP +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: syncthing + namespace: home-server + annotations: + external-dns.alpha.kubernetes.io/hostname: syncthing.hxme.net +spec: + tls: + - hosts: + - syncthing.hxme.net + secretName: wildcard-hxme-net + rules: + - host: syncthing.hxme.net + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: syncthing + port: + number: 8384 +