Run Minishift/Minikube

You need a running cluster to perform the remaining configuration steps, such as initializing Helm and running the Console install script.

Running Minishift or Minikube

The following procedures describe how to start a cluster, modify the environment, and start the Kubernetes dashboard.

  1. Start a cluster as follows:

    Minishift
    minishift config set cpus 4
    minishift config set memory 8192
    minishift config set vm-driver virtualbox
    minishift start
    Minikube
    minikube start --cpus 4 --memory 8192
  2. Once the cluster is running, set the Docker environment in your command window. Minishift has additional parameters for oc access. See Troubleshooting permissions on Minishift

    Minishift
    eval $(minishift docker-env)
    eval $(minishift oc-env)
    oc login -u system:admin
    oc adm policy add-cluster-role-to-user cluster-admin developer
    Minikube
    eval $(minikube docker-env)
  3. View your local cluster:

    Minishift
    oc get nodes
    Minikube
    kubectl get nodes
  4. Open the dashboard using the following command:

    Minishift
    minishift dashboard 
    Minikube
    minikube dashboard 

If you want to clean up or start over, you can delete the entire cluster:

Minishift
minishift delete 
Minikube
minikube delete     

Troubleshooting permissions on Minishift

More information on Minishift can be found here

Note: If you have trouble logging in as system:admin, you can try logging in as user/developer and then try to log in as system:admin, if the problem persists, delete minishift and create a new cluster.

You can also provide cluster-admin privileges to user developer by executing the following command.

oc adm policy add-cluster-role-to-user cluster-admin developer