first commit
This commit is contained in:
48
base/depl.yml
Normal file
48
base/depl.yml
Normal file
@@ -0,0 +1,48 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user