Config + data pvs
This commit is contained in:
parent
09ac5c9c9b
commit
141bc23c1f
1 changed files with 40 additions and 5 deletions
|
@ -2,7 +2,21 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: syncthing-pv
|
||||
name: syncthing-data-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
storageClassName: local-path
|
||||
hostPath:
|
||||
path: /dpool/files
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: syncthing-config-pv
|
||||
spec:
|
||||
capacity:
|
||||
storage: 5Gi
|
||||
|
@ -16,7 +30,7 @@ spec:
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: syncthing-pvc
|
||||
name: syncthing-data-pvc
|
||||
namespace: home-server
|
||||
spec:
|
||||
accessModes:
|
||||
|
@ -25,7 +39,21 @@ spec:
|
|||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
volumeName: syncthing-pv
|
||||
volumeName: syncthing-data-pv
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: syncthing-config-pvc
|
||||
namespace: home-server
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: local-path
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
volumeName: syncthing-config-pv
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
@ -61,14 +89,21 @@ spec:
|
|||
protocol: UDP
|
||||
volumeMounts:
|
||||
- name: syncthing-data
|
||||
mountPath: /var/syncthing
|
||||
mountPath: /data
|
||||
- name: syncthing-config
|
||||
mountPath: /config
|
||||
env:
|
||||
- name: STGUIADDRESS
|
||||
value: "0.0.0.0:8384"
|
||||
- name: STCONFIG
|
||||
value: "/config"
|
||||
volumes:
|
||||
- name: syncthing-data
|
||||
persistentVolumeClaim:
|
||||
claimName: syncthing-pvc
|
||||
claimName: syncthing-data-pvc
|
||||
- name: syncthing-config
|
||||
persistentVolumeClaim:
|
||||
claimName: syncthing-config-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue