Last active
October 19, 2016 12:14
-
-
Save kadel/3de69a95f974df16e23c1265b201ce12 to your computer and use it in GitHub Desktop.
create PV in minishift
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
| export KUBECONFIG=/mnt/sda1/var/lib/minishift/openshift.local.config/master/admin.kubeconfig | |
| /usr/local/bin/openshift cli create -f pv.yaml |
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: pv01 | |
| spec: | |
| capacity: | |
| storage: 1Gi | |
| accessModes: | |
| - ReadWriteOnce | |
| persistentVolumeReclaimPolicy: Recycle | |
| hostPath: | |
| path: /tmp/pv01 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment