nextcloud move to pvc
This commit is contained in:
parent
e20d3e5d36
commit
72c2d29f4c
@ -61,8 +61,8 @@ spec:
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: nextcloud
|
||||
subPath: db-storage
|
||||
name: nextcloud-pvc
|
||||
subPath: 99f37b73-8f14-44b2-9211-af5de21de749/db-storage
|
||||
- image: redis:alpine
|
||||
name: redis
|
||||
resources:
|
||||
@ -100,15 +100,16 @@ spec:
|
||||
resources: {}
|
||||
volumeMounts:
|
||||
- mountPath: /var/www/html
|
||||
name: nextcloud
|
||||
subPath: html
|
||||
name: nextcloud-pvc
|
||||
subPath: 99f37b73-8f14-44b2-9211-af5de21de749/html
|
||||
|
||||
- mountPath: /var/www/html/data
|
||||
name: nextcloud-data
|
||||
restartPolicy: Always
|
||||
volumes:
|
||||
- name: nextcloud
|
||||
- name: nextcloud-pvc
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud
|
||||
claimName: nextcloud-pvc
|
||||
- name: nextcloud-data
|
||||
nfs:
|
||||
server: 192.168.178.4
|
||||
|
@ -1,12 +1,44 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nextcloud
|
||||
name: nextcloud-pvc
|
||||
spec:
|
||||
storageClassName: "rook-cephfs"
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 40Gi
|
||||
storage: 30Gi
|
||||
storageClassName: ""
|
||||
volumeMode: Filesystem
|
||||
# volumeName should be same as PV name
|
||||
volumeName: nextcloud
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: nextcloud
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
capacity:
|
||||
storage: 30Gi
|
||||
csi:
|
||||
driver: rook-ceph.cephfs.csi.ceph.com
|
||||
nodeStageSecretRef:
|
||||
# node stage secret name
|
||||
name: rook-csi-cephfs-node-user
|
||||
# node stage secret namespace where above secret is created
|
||||
namespace: rook-ceph
|
||||
volumeAttributes:
|
||||
# optional file system to be mounted
|
||||
# "fsName": "myfs"
|
||||
# Required options from storageclass parameters need to be added in volumeAttributes
|
||||
"clusterID": "rook-ceph"
|
||||
"staticVolume": "true"
|
||||
"rootPath": /volumes/csi/nextcloud
|
||||
# volumeHandle can be anything, need not to be same
|
||||
# as PV name or volume name. keeping same for brevity
|
||||
volumeHandle: nextcloud
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
volumeMode: Filesystem
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user