Refer to the official Minishift Documentation and the RedHat Container Development Kit
minishift start
. ~/bin/minishift_config.sh
oc login -u system:admin
docker login -u developer -p $(oc whoami -t) $(minishift openshift registry)
If minishift has been previously installed:
**Warning! This deletes all minishift configs, projects, etc. **
minishift stop
minishift delete
rm -rf ~/.minishift
Setup minishift environment and configure resources:
minishift setup-cdk
minishift config set memory 8GB
minishift config set disk-size 100GB
Install minishift environment script
cp minishift_config.sh ~/bin/minishift_config.sh
Follow the Ubuntu Community instructions.
Set up the /etc/exports configuration file
/export 192.168.42.0/24(rw,root_squash,no_wdelay)
-
Develop the YAML configuration file to add PV to minishift. See Using Persistent Volumes, Persistent Storage and Persistent Storage Using NFS for details.
NFS configuration files are included:
nfs-pv1000.ymlthroughnfs-pv1004.yml -
Add the NFS volumes to minishift
for i in $(ls nfs-pv100[0-4].yaml); do oc create -f $i; done -
Verify the PV was created
oc get pv