k3s/services/syncthing/syncthing-deployment.yaml

63 lines
1.6 KiB
YAML
Raw Normal View History

2026-03-05 12:57:15 -05:00
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f compose-syncthing.yaml
kompose.version: 1.38.0 (HEAD)
labels:
io.kompose.service: syncthing
name: syncthing
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: syncthing
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f compose-syncthing.yaml
kompose.version: 1.38.0 (HEAD)
labels:
io.kompose.service: syncthing
spec:
containers:
- env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
- name: TZ
value: Etc/UTC
image: lscr.io/linuxserver/syncthing:latest
name: syncthing
ports:
- containerPort: 8384
protocol: TCP
2026-04-03 21:52:07 -04:00
name: web-ui
2026-03-05 12:57:15 -05:00
- containerPort: 22000
protocol: TCP
2026-04-03 21:52:07 -04:00
name: listen-tcp
2026-03-05 12:57:15 -05:00
- containerPort: 22000
protocol: UDP
2026-04-03 21:52:07 -04:00
name: listen-udp
2026-03-05 12:57:15 -05:00
- containerPort: 21027
protocol: UDP
2026-04-03 21:52:07 -04:00
name: discovery
2026-03-05 12:57:15 -05:00
volumeMounts:
- mountPath: /config
name: syncthing-config
- mountPath: /data1
name: syncthing-data
restartPolicy: Always
volumes:
- name: syncthing-config
nfs:
server: birdfeeder2.home.nest
path: /k3s/syncthing
- name: syncthing-data
nfs:
server: robin.home.nest
2026-03-05 12:57:15 -05:00
path: /mnt/raid/syncthing