forked from ab/homelab
Added syncthing
This commit is contained in:
21
k8s/apps/syncthing/app.yaml
Normal file
21
k8s/apps/syncthing/app.yaml
Normal 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
|
||||||
|
|
16
k8s/apps/syncthing/kustomization.yaml
Normal file
16
k8s/apps/syncthing/kustomization.yaml
Normal 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
|
||||||
|
|
40
k8s/apps/syncthing/syncthing-values.yaml
Normal file
40
k8s/apps/syncthing/syncthing-values.yaml
Normal 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
|
||||||
|
|
Reference in New Issue
Block a user