Skip to content

Instantly share code, notes, and snippets.

@kadel
Last active October 19, 2016 12:14
Show Gist options
  • Select an option

  • Save kadel/3de69a95f974df16e23c1265b201ce12 to your computer and use it in GitHub Desktop.

Select an option

Save kadel/3de69a95f974df16e23c1265b201ce12 to your computer and use it in GitHub Desktop.
create PV in minishift
export KUBECONFIG=/mnt/sda1/var/lib/minishift/openshift.local.config/master/admin.kubeconfig
/usr/local/bin/openshift cli create -f pv.yaml
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