Created
April 20, 2021 21:30
-
-
Save zutigrm/9447b36e61acb7842417c23dd418150b to your computer and use it in GitHub Desktop.
Nextcloud pv and pvc declaration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: nextcloud-shared-storage | |
labels: | |
type: local | |
spec: | |
storageClassName: ncloud | |
capacity: | |
storage: 5Gi | |
accessModes: | |
- ReadWriteOnce | |
hostPath: | |
path: "/nextcloud/data" | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: nextcloud-shared-storage-claim | |
labels: | |
app: nextcloud | |
spec: | |
storageClassName: ncloud | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment