nextcloud move to pvc
This commit is contained in:
parent
e20d3e5d36
commit
72c2d29f4c
@ -61,8 +61,8 @@ spec:
|
|||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/mysql
|
- mountPath: /var/lib/mysql
|
||||||
name: nextcloud
|
name: nextcloud-pvc
|
||||||
subPath: db-storage
|
subPath: 99f37b73-8f14-44b2-9211-af5de21de749/db-storage
|
||||||
- image: redis:alpine
|
- image: redis:alpine
|
||||||
name: redis
|
name: redis
|
||||||
resources:
|
resources:
|
||||||
@ -100,15 +100,16 @@ spec:
|
|||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/www/html
|
- mountPath: /var/www/html
|
||||||
name: nextcloud
|
name: nextcloud-pvc
|
||||||
subPath: html
|
subPath: 99f37b73-8f14-44b2-9211-af5de21de749/html
|
||||||
|
|
||||||
- mountPath: /var/www/html/data
|
- mountPath: /var/www/html/data
|
||||||
name: nextcloud-data
|
name: nextcloud-data
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: nextcloud
|
- name: nextcloud-pvc
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: nextcloud
|
claimName: nextcloud-pvc
|
||||||
- name: nextcloud-data
|
- name: nextcloud-data
|
||||||
nfs:
|
nfs:
|
||||||
server: 192.168.178.4
|
server: 192.168.178.4
|
||||||
|
@ -1,12 +1,44 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud
|
name: nextcloud-pvc
|
||||||
spec:
|
spec:
|
||||||
storageClassName: "rook-cephfs"
|
|
||||||
volumeMode: Filesystem
|
|
||||||
accessModes:
|
accessModes:
|
||||||
- ReadWriteMany
|
- ReadWriteMany
|
||||||
resources:
|
resources:
|
||||||
requests:
|
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