k3s/services/syncthing/syncthing-deployment.yaml

59 lines
1.5 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
- containerPort: 22000
protocol: TCP
- containerPort: 22000
protocol: UDP
- containerPort: 21027
protocol: UDP
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: birdfeeder1.home.nest
path: /mnt/raid/syncthing