Develop and run Kubernetes on your Mac

Kubernetes, Google's new Docker cluster manager, comes with a great script that lets you run an entire cluster locally using your source code tree named hack/ However, Kubernetes only runs on Linux, which means that if you're developing on your Mac you have to copy your source tree to a Linux machine to use the script (or switch to a Linux machine for development). Go in general, however, runs fine on Mac. Therefore, the ideal flow would be editing Kubernetes source files on your Mac, then automatically having them synced to a Linux VM where you can run hack/

ghodss/kubernetes-macosx-development is a Vagrant config that enables precisely this flow. It launches a Fedora VM on your Mac using VirtualBox that has Go and Docker installed. It then mounts your Kubernetes source directory from your Mac into the VM. Now you can run hack/ on the VM with the code that you're editing.

The config also eliminates the need for boot2docker - Docker is already installed in the Fedora VM and forwards the Docker port to localhost.

Check it out and let me know what you think!