Add syncthing

main
trivernis 11 months ago
parent 529738b910
commit 1bb78c8975
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -0,0 +1,9 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: syncthing
metadata:
name: syncthing
resources:
- app/namespace.yaml
- app/release.yaml
- app/route.yaml

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: syncthing
labels:
name: syncthing

@ -0,0 +1,23 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: syncthing
namespace: syncthing
spec:
releaseName: syncthing
chart:
spec:
chart: syncthing
sourceRef:
kind: HelmRepository
name: k8s-home-lab
namespace: repos
interval: 60m
install:
remediation:
retries: 3
values:
pesistence:
data:
enabled: true
storageClass: ebs-hdd

@ -0,0 +1,17 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: syncthing-route
namespace: syncthing
spec:
entryPoints:
- web
routes:
- match: Host(`syncthing.trivernis.net`)
kind: Rule
middlewares:
- name: strict-security-headers
namespace: default
services:
- name: syncthing
port: http

@ -201,3 +201,20 @@ spec:
prune: true
wait: true
timeout: 5m0s
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: apps-syncthing
namespace: flux-system
spec:
dependsOn:
- name: repos
interval: 5m
sourceRef:
kind: GitRepository
name: flux-system
path: ./apps/syncthing
prune: true
wait: true
timeout: 5m0s

@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: k8s-home-lab
namespace: repos
spec:
interval: 60m
url: https://k8s-home-lab.github.io/helm-charts/
Loading…
Cancel
Save