47 lines
1.0 KiB
YAML
47 lines
1.0 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: syncthing
|
|
name: syncthing
|
|
namespace: syncthing
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: syncthing
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: syncthing
|
|
spec:
|
|
hostname: syncthing
|
|
containers:
|
|
- image: bv11-cr01.bessems.eu/proxy/syncthing/syncthing
|
|
name: syncthing
|
|
args:
|
|
- --no-browser
|
|
- --no-default-folder
|
|
- --no-restart
|
|
ports:
|
|
- containerPort: 8384
|
|
name: web
|
|
- containerPort: 22000
|
|
name: tcp-file-xfer
|
|
protocol: TCP
|
|
- containerPort: 22000
|
|
name: quic-file-xfer
|
|
protocol: UDP
|
|
- containerPort: 21027
|
|
name: discovery
|
|
protocol: UDP
|
|
volumeMounts:
|
|
- mountPath: /var/syncthing
|
|
name: longhorn-syncthing-data
|
|
volumes:
|
|
- name: longhorn-syncthing-data
|
|
persistentVolumeClaim:
|
|
claimName: longhorn-syncthing-data
|