Skip to content

Instantly share code, notes, and snippets.

@dwburke
Created March 1, 2018 15:39
Show Gist options
  • Save dwburke/2d4f6231cb0e26c886a201e4bf3484c3 to your computer and use it in GitHub Desktop.
Save dwburke/2d4f6231cb0e26c886a201e4bf3484c3 to your computer and use it in GitHub Desktop.
Kubernetes persistent volume yaml for local testing (or when local storage is what you need)
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv0001
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 8Gi
hostPath:
path: /disks/vol1/pv0001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment