62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
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
|
|
name: web-ui
|
|
- containerPort: 22000
|
|
protocol: TCP
|
|
name: listen-tcp
|
|
- containerPort: 22000
|
|
protocol: UDP
|
|
name: listen-udp
|
|
- containerPort: 21027
|
|
protocol: UDP
|
|
name: discovery
|
|
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
|
|
path: /mnt/raid/syncthing
|