{"metadata":{"image":[],"title":"","description":""},"api":{"url":"","auth":"required","params":[],"results":{"codes":[]},"settings":""},"next":{"description":"","pages":[]},"title":"Local Development with Localkube","type":"basic","slug":"local-development-with-localkube","excerpt":"This page will give you an overview of how to develop locally with Localkube.","body":"***UPDATE: We have donated Localkube code to [Minikube](https://github.com/kubernetes/minikube), where it now forms the backbone of the official Kubernetes local development solution. We have stopped working on Localkube and highly recommend using Minikube as a local development solution.***\n\n[Localkube](http://github.com/redspread/localkube) is a fully networked Kubernetes 1.2 cluster that runs on your local machine and can be started with Spread in one command.\n\nIn order to use localkube, the following should be installed:\n* [Docker](https://docs.docker.com/engine/installation/)\n* [docker-machine](https://docs.docker.com/machine/install-machine/)\n* [VirtualBox](https://www.virtualbox.org/wiki/Downloads)\n* kubectl*\n\n(Note: For Mac and Windows users, the fastest way to install everything is [Docker Toolbox](https://www.docker.com/products/docker-toolbox).)\n\nTo use localkube:\n1. Create a machine called dev: `docker-machine create --driver virtualbox dev`\n2. Start your docker-machine: `docker-machine start dev`\n3. Connect to the docker daemon: `eval \"$(docker-machine env dev)\"`\n4. Spin up a local cluster using [localkube](http://github.com/redspread/localkube): `spread cluster start`\n5. To stop the cluster: `spread cluster stop`\n\n*For local development, it's useful to also install `kubectl`, the command line tool for interacting with the Kubernetes API. You can download `kubectl` from the Kubernetes release artifact site with the `curl` tool.\n\nLinux:\n<pre><code>$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/linux/amd64/kubectl</code></pre>\n\nDarwin:\n<pre><code>$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/darwin/amd64/kubectl</code></pre>\n\nAfter downloading the binary, ensure it is executable and move it into your PATH:\n\n<pre><code>$ chmod +x kubectl  \n$ mv kubectl /usr/local/bin/kubectl</code></pre>","updates":[],"order":2,"isReference":false,"hidden":false,"sync_unique":"","link_url":"","link_external":false,"_id":"57acceed71d2991900b9a62f","createdAt":"2016-04-28T00:07:49.739Z","githubsync":"","user":"569d7767ec29360d00f667c7","version":{"version":"1.0.0","version_clean":"1.0.0","codename":"","is_stable":true,"is_beta":false,"is_hidden":false,"is_deprecated":false,"categories":["57acceed71d2991900b9a62c"],"_id":"57acceed71d2991900b9a62b","createdAt":"2016-08-11T19:15:57.383Z","project":"570086efa565e20e001573b3","releaseDate":"2016-08-11T19:15:57.383Z","__v":1},"project":"570086efa565e20e001573b3","__v":0,"category":{"sync":{"isSync":false,"url":""},"pages":[],"title":"Documentation","slug":"documentation","order":0,"from_sync":false,"reference":false,"_id":"57acceed71d2991900b9a62c","version":"57acceed71d2991900b9a62b","project":"570086efa565e20e001573b3","createdAt":"2016-04-03T02:58:55.770Z","__v":0}}

Local Development with Localkube

This page will give you an overview of how to develop locally with Localkube.

***UPDATE: We have donated Localkube code to [Minikube](https://github.com/kubernetes/minikube), where it now forms the backbone of the official Kubernetes local development solution. We have stopped working on Localkube and highly recommend using Minikube as a local development solution.*** [Localkube](http://github.com/redspread/localkube) is a fully networked Kubernetes 1.2 cluster that runs on your local machine and can be started with Spread in one command. In order to use localkube, the following should be installed: * [Docker](https://docs.docker.com/engine/installation/) * [docker-machine](https://docs.docker.com/machine/install-machine/) * [VirtualBox](https://www.virtualbox.org/wiki/Downloads) * kubectl* (Note: For Mac and Windows users, the fastest way to install everything is [Docker Toolbox](https://www.docker.com/products/docker-toolbox).) To use localkube: 1. Create a machine called dev: `docker-machine create --driver virtualbox dev` 2. Start your docker-machine: `docker-machine start dev` 3. Connect to the docker daemon: `eval "$(docker-machine env dev)"` 4. Spin up a local cluster using [localkube](http://github.com/redspread/localkube): `spread cluster start` 5. To stop the cluster: `spread cluster stop` *For local development, it's useful to also install `kubectl`, the command line tool for interacting with the Kubernetes API. You can download `kubectl` from the Kubernetes release artifact site with the `curl` tool. Linux: <pre><code>$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/linux/amd64/kubectl</code></pre> Darwin: <pre><code>$ curl -O https://storage.googleapis.com/kubernetes-release/release/v1.2.3/bin/darwin/amd64/kubectl</code></pre> After downloading the binary, ensure it is executable and move it into your PATH: <pre><code>$ chmod +x kubectl $ mv kubectl /usr/local/bin/kubectl</code></pre>