argo/apps/syncthing/base/sync-deployment.yaml

53 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: syncthing
spec:
replicas: 1
selector:
matchLabels:
app: syncthing
strategy:
type: Recreate
template:
metadata:
annotations:
labels:
app: syncthing
spec:
containers:
- env:
- name: PGID
value: "1000"
- name: PUID
value: "1000"
image: syncthing/syncthing
name: syncthing
ports:
- containerPort: 22000
hostPort: 22000
protocol: TCP
name: sync-tcp
- containerPort: 22000
hostPort: 22000
protocol: UDP
name: sync-quic
- containerPort: 21027
hostPort: 21027
protocol: UDP
name: sync-discovery
- containerPort: 8384
name: http
volumeMounts:
- mountPath: /var/syncthing/config
name: sync-config
- mountPath: /var/syncthing/Sync
name: sync-data
restartPolicy: Always
volumes:
- name: sync-config
persistentVolumeClaim:
claimName: sync-config
- name: sync-data
persistentVolumeClaim:
claimName: sync-data