Created
June 26, 2019 05:36
-
-
Save mascot6699/bfb4dcfb26ba14e24dbb9294845e1fb5 to your computer and use it in GitHub Desktop.
PersistentVolumeClaim Example
This file contains 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: PersistentVolumeClaim | |
metadata: | |
name: pvc-example | |
labels: | |
name: pvc-example | |
spec: | |
# If you are using dynamic provisioning, it is important to specify a storageClassName. | |
storageClassName: "standard" | |
accessModes: | |
# Though accessmode is already defined in pv definition. It is still needed here. | |
# - ReadWriteMany | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment