Refactor Syncthing
This commit is contained in:
parent
93612623e4
commit
e0c77a2913
4
services/Syncthing/_namespace-Syncthing.yml
Normal file
4
services/Syncthing/_namespace-Syncthing.yml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: syncthing
|
@ -1,30 +1,10 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: syncthing
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: web
|
||||
port: 8384
|
||||
- protocol: TCP
|
||||
name: tcp-file-xfer
|
||||
port: 22000
|
||||
- protocol: UDP
|
||||
name: quic-file-xfer
|
||||
port: 22000
|
||||
- protocol: UDP
|
||||
name: discovery
|
||||
port: 21027
|
||||
selector:
|
||||
app: syncthing
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: syncthing
|
||||
name: syncthing
|
||||
namespace: syncthing
|
||||
spec:
|
||||
replicas: 1
|
||||
strategy:
|
||||
@ -64,34 +44,3 @@ spec:
|
||||
- name: longhorn-syncthing-data
|
||||
persistentVolumeClaim:
|
||||
claimName: longhorn-syncthing-data
|
||||
---
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: syncthing
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`sync.spamasaurus.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: syncthing
|
||||
port: 8384
|
||||
middlewares:
|
||||
- name: 2fa-authentication@file
|
||||
- name: security-headers@file
|
||||
- name: compression@file
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-syncthing-data
|
||||
namespace: default
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
18
services/Syncthing/ingressRoute-Syncthing.yml
Normal file
18
services/Syncthing/ingressRoute-Syncthing.yml
Normal file
@ -0,0 +1,18 @@
|
||||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: syncthing
|
||||
namespace: syncthing
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- match: Host(`sync.spamasaurus.com`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: syncthing
|
||||
port: 8384
|
||||
middlewares:
|
||||
- name: 2fa-authentication@file
|
||||
- name: security-headers@file
|
||||
- name: compression@file
|
12
services/Syncthing/persistentVolumeClaim-Syncthing.yml
Normal file
12
services/Syncthing/persistentVolumeClaim-Syncthing.yml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: longhorn-syncthing-data
|
||||
namespace: syncthing
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
21
services/Syncthing/service-Syncthing.yml
Normal file
21
services/Syncthing/service-Syncthing.yml
Normal file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: syncthing
|
||||
namespace: syncthing
|
||||
spec:
|
||||
ports:
|
||||
- protocol: TCP
|
||||
name: web
|
||||
port: 8384
|
||||
- protocol: TCP
|
||||
name: tcp-file-xfer
|
||||
port: 22000
|
||||
- protocol: UDP
|
||||
name: quic-file-xfer
|
||||
port: 22000
|
||||
- protocol: UDP
|
||||
name: discovery
|
||||
port: 21027
|
||||
selector:
|
||||
app: syncthing
|
Loading…
Reference in New Issue
Block a user