From 5698cc42deb25b2d7efc19badcacae13bb03fc9e Mon Sep 17 00:00:00 2001 From: Ultradesu Date: Sun, 13 Apr 2025 16:05:41 +0100 Subject: [PATCH] Added syncthing --- k8s/apps/syncthing/app.yaml | 21 +++++++++++++ k8s/apps/syncthing/kustomization.yaml | 16 ++++++++++ k8s/apps/syncthing/syncthing-values.yaml | 40 ++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 k8s/apps/syncthing/app.yaml create mode 100644 k8s/apps/syncthing/kustomization.yaml create mode 100644 k8s/apps/syncthing/syncthing-values.yaml diff --git a/k8s/apps/syncthing/app.yaml b/k8s/apps/syncthing/app.yaml new file mode 100644 index 0000000..7f17a8c --- /dev/null +++ b/k8s/apps/syncthing/app.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: syncthing + namespace: argocd +spec: + project: apps + destination: + namespace: syncthing + server: https://kubernetes.default.svc + source: + repoURL: ssh://git@gt.hexor.cy:30022/ab/homelab.git + targetRevision: HEAD + path: k8s/apps/syncthing + syncPolicy: + automated: + selfHeal: true + prune: true + syncOptions: + - CreateNamespace=true + diff --git a/k8s/apps/syncthing/kustomization.yaml b/k8s/apps/syncthing/kustomization.yaml new file mode 100644 index 0000000..e3c3b91 --- /dev/null +++ b/k8s/apps/syncthing/kustomization.yaml @@ -0,0 +1,16 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - app.yaml + +helmCharts: + - name: syncthing + repo: https://k8s-home-lab.github.io/helm-charts + version: latest + releaseName: syncthing + namespace: syncthing + valuesFile: syncthing-values.yaml + includeCRDs: true + diff --git a/k8s/apps/syncthing/syncthing-values.yaml b/k8s/apps/syncthing/syncthing-values.yaml new file mode 100644 index 0000000..f711da6 --- /dev/null +++ b/k8s/apps/syncthing/syncthing-values.yaml @@ -0,0 +1,40 @@ +persistence: + config: + enabled: true + type: hostPath + hostPath: "/k8s/syncthing" + mountPath: "/var/syncthing" + storage: + enabled: true + type: hostPath + hostPath: "/k8s/" + mountPath: "/storage" +nodeSelector: + kubernetes.io/hostname: master.tail2fe2d.ts.net +service: + main: + ports: + http: + port: 8384 + listen: + enabled: true + type: LoadBalancer + ports: + listen: + enabled: true + port: 30023 + protocol: TCP + targetPort: 22000 + selector: + app.kubernetes.io/name: syncthing + discovery: + enabled: true + type: NodePort + externalTrafficPolicy: Cluster + ports: + discovery: + enabled: true + port: 21027 + protocol: UDP + targetPort: 21027 +