chore(syncthing): initial commit
This commit is contained in:
parent
5609d18631
commit
0bf93c3227
5 changed files with 125 additions and 0 deletions
53
apps/syncthing/base/sync-deployment.yaml
Normal file
53
apps/syncthing/base/sync-deployment.yaml
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
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: syncthing-tcp
|
||||
- containerPort: 22000
|
||||
hostPort: 22000
|
||||
protocol: UDP
|
||||
name: syncthing-quic
|
||||
- containerPort: 21027
|
||||
hostPort: 21027
|
||||
protocol: UDP
|
||||
name: syncthing-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
|
||||
Loading…
Add table
Add a link
Reference in a new issue