Skip to content

Instantly share code, notes, and snippets.

@mascot6699
Created June 26, 2019 05:36
Show Gist options
  • Save mascot6699/bfb4dcfb26ba14e24dbb9294845e1fb5 to your computer and use it in GitHub Desktop.
Save mascot6699/bfb4dcfb26ba14e24dbb9294845e1fb5 to your computer and use it in GitHub Desktop.
PersistentVolumeClaim Example
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