49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: "syncthing-app"
|
|
labels:
|
|
app: "syncthing"
|
|
spec:
|
|
template:
|
|
metadata:
|
|
name: "syncthing-app"
|
|
labels:
|
|
owner: "jcabillot"
|
|
app: "syncthing"
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
containers:
|
|
- name: "syncthing"
|
|
image: "syncthing/syncthing"
|
|
env:
|
|
- name: "PUID"
|
|
value: "1000"
|
|
- name: "PGID"
|
|
value: "1000"
|
|
- name: "STGUIADDRESS"
|
|
value: "0.0.0.0:8384"
|
|
ports:
|
|
- name: "http"
|
|
containerPort: 8384
|
|
protocol: "TCP"
|
|
- name: "syncthing"
|
|
containerPort: 22000
|
|
protocol: "UDP"
|
|
volumeMounts:
|
|
- mountPath: "/data"
|
|
name: "data"
|
|
- mountPath: "/var/syncthing"
|
|
name: "config"
|
|
volumes:
|
|
- name: "data"
|
|
persistentVolumeClaim:
|
|
claimName: "data"
|
|
- name: "config"
|
|
persistentVolumeClaim:
|
|
claimName: "config"
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: "syncthing"
|