Added syncthing

This commit is contained in:
Ultradesu
2025-04-13 16:05:41 +01:00
parent 7bda5fe69c
commit 5698cc42de
3 changed files with 77 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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