kubernetes-configs/apps/syncthing/deployment.yaml
Sebastian Schüler 2a8f2384bc init
2025-10-25 23:47:08 +02:00

37 lines
880 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: syncthing
spec:
replicas: 1
selector:
matchLabels:
app: syncthing
template:
metadata:
labels:
app: syncthing
spec:
containers:
- name: syncthing
image: syncthing/syncthing:latest
ports:
- containerPort: 8384 #WebUi
- containerPort: 22000 #Sync protocol (TCP)
- containerPort: 21027 #Discovery (UDP)
protocol: UDP
volumeMounts:
- name: syncthing-data
mountPath: /var/syncthing
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"
volumes:
- name: syncthing-data
persistentVolumeClaim:
claimName: syncthing-pvc