arun-gupta / docker-java

Docker for Java Developers
387 stars 230 forks source link

KUBERNETES_DEFAULT_PROVIDER required for VirtualBox on Windows #126

Closed arun-gupta closed 8 years ago

arun-gupta commented 8 years ago

On Windows, if VirtualBox is not included in the PATH, then Kubernetes cluster does not start up.

It requires to set PATH to include VirtualBox directory. Make sure to check vboxmanage can be invoked from the command line.

suepan commented 8 years ago

If VirtualBox is not included in the path, then the following error is thrown:

$ ./cluster/kube-up.sh
Starting cluster using provider: vagrant
... calling verify-prereqs
Can't find the necessary components for the virtualbox vagrant provider, please fix and retry.
arun-gupta commented 8 years ago

The relevant section that needs to be included is from https://github.com/kubernetes/kubernetes/blob/master/docs/getting-started-guides/vagrant.md#setup:

If you installed more than one Vagrant provider, Kubernetes will usually pick the appropriate one. However, you can override which one Kubernetes will use by setting the VAGRANT_DEFAULT_PROVIDER environment variable:

export VAGRANT_DEFAULT_PROVIDER=parallels export KUBERNETES_PROVIDER=vagrant ./cluster/kube-up.sh

arun-gupta commented 8 years ago

Updated the instructions