-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncthing.yaml
59 lines (59 loc) · 1.41 KB
/
syncthing.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: plex
name: syncthing
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: syncthing
template:
metadata:
labels:
app: syncthing
annotations:
backup.velero.io/backup-volumes-excludes: data
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: cluster-ingress
operator: In
values:
- "true"
hostNetwork: true
containers:
- name: syncthing
image: linuxserver/syncthing:1.27.2
imagePullPolicy: Always
ports:
- containerPort: 8384
name: http-web-svc
- containerPort: 22000
name: transfer-svc
env:
- name: PUID
value: "1000"
- name: PGID
value: "1000"
- name: TZ
value: "America/New_York"
volumeMounts:
- mountPath: "/data"
name: "data"
- mountPath: "/config"
name: "config"
restartPolicy: Always
volumes:
- name: data
persistentVolumeClaim:
claimName: data-pvc
- name: config
persistentVolumeClaim:
claimName: syncthing-pvc