x
This commit is contained in:
parent
45424e0668
commit
eb88847624
1 changed files with 33 additions and 0 deletions
|
@ -1,6 +1,34 @@
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolume
|
kind: PersistentVolume
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-data-j-pv
|
||||||
|
spec:
|
||||||
|
capacity:
|
||||||
|
storage: 900Gi
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
persistentVolumeReclaimPolicy: Retain
|
||||||
|
storageClassName: local-path
|
||||||
|
hostPath:
|
||||||
|
path: /dpool/files
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: nextcloud-data-j-pvc
|
||||||
|
namespace: home-server
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
storageClassName: local-path
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
|
volumeName: nextcloud-pv
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolume
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-pv
|
name: nextcloud-pv
|
||||||
spec:
|
spec:
|
||||||
|
@ -76,6 +104,8 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
mountPath: /var/www/html
|
mountPath: /var/www/html
|
||||||
|
- name: nextcloud-data-j
|
||||||
|
mountPath: /dpool/services/nextcloud/data/data/34034c4d6cb6a6f4b6dfa8e8cb482e16171e867faf9d03714c0bed9ab2e87a9e/files
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
@ -84,6 +114,9 @@ spec:
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: nextcloud-pvc
|
claimName: nextcloud-pvc
|
||||||
|
- name: nextcloud-data-j
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: nextcloud-data-j-pvc
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue