<commit_before>```
git clone https://github.com/weaveworks/weave-kubernetes-anywhere
cd examples/docker-machine
```

Make sure you have Docker Toolbox v1.10 (or later) installed.

## Create the cluster

This is as simple as:
```
./create-cluster.sh
```

> **Please note** the default driver is current `virtualbox`, so if you wish to
> use a different driver you need to set `DOCKER_MACHINE_DRIVER` accordingly.
> Please see below for more information about drivers.


Once done, you need to login to _any_ of the instances with `docker-machine ssh`,
e.g. `docker-machine ssh kube-5` and run the following commands.

```
eval $(weave env)
docker run --name=kube-tools-secure-config kubernetes-anywhere:tools-secure-config
docker run --interactive --tty --volumes-from=kube-tools-secure-config \
  weaveworks/kubernetes-anywhere:tools bash -l
```

> **Please note** this example has TLS enabled, see `create-cluster.sh` for more details.

Inside this container you can check that there 3 nodes ready to take workload on board:
```
kubectl get nodes
```

And now you can deploy the guestbook app:
```
kubectl create -f guestbook-example-NodePort
```

You will need to note the port number allocated for the app and then you can hit it in
your browser via any of the node IPs (`docker-machine ip kube-5 kube-6 kube-7`).

## Supported Drivers

This code has been tested with VMWare Fusion and DigitalOcean drivers.

> VMWare vSphere and Microsoft Hyper-V drivers should probably work out of the box.
> Public cloud provider drivers vary a lot more and require additonal setup steps,
> e.g. Amazon EC2 driver needs VPC pre-configured and probably won't work with
> Kubernetes cloud provider for AWS, as that require cetainer tagging scheme on
> all of there resources... Anyhow, we do provide separate examples for EC2 and GCE.

### DigitalOcean

It should be suffiencent to
```
export DOCKER_MACHINE_DRIVER=digitalocean
export DIGITALOCEAN_ACCESS_TOKEN=<...>
```
and then run `./create-cluster.sh`.

### VMWare Fusion

If you have VMWare Fusion installed on your machine, you might care to
```
export DOCKER_MACHINE_DRIVER=vmwarefusion
```
prior to running `./create-cluster.sh`, as it's a bit quicker then VirtualBox.<commit_msg>Fix a few typos<commit_after>```
git clone https://github.com/weaveworks/weave-kubernetes-anywhere
cd examples/docker-machine
```

Make sure you have Docker Toolbox v1.10 (or later) installed.

## Create the cluster

This is as simple as:
```
./create-cluster.sh
```

> **Please note** the default driver is current `virtualbox`, so if you wish to
> use a different driver you need to set `DOCKER_MACHINE_DRIVER` accordingly.
> Please see below for more information about drivers.


Once done, you need to login to _any_ of the instances with `docker-machine ssh`,
e.g. `docker-machine ssh kube-5` and run the following commands.

```
eval $(weave env)
docker run --name=kube-tools-secure-config kubernetes-anywhere:tools-secure-config
docker run --interactive --tty --volumes-from=kube-tools-secure-config \
  weaveworks/kubernetes-anywhere:tools bash -l
```

> **Please note** this example has TLS enabled, see `create-cluster.sh` for more details.

Inside this container you can check that there 3 nodes ready to take workload on board:
```
kubectl get nodes
```

And now you can deploy the guestbook app:
```
kubectl create -f guestbook-example-NodePort
```

You will need to note the port number allocated for the app and then you can hit it in
your browser via any of the node IPs (`docker-machine ip kube-5 kube-6 kube-7`).

## Supported Drivers

This code has been tested with VMWare Fusion and DigitalOcean drivers.

> VMWare vSphere and Microsoft Hyper-V drivers should probably work out of the box.
> Public cloud provider drivers vary a lot more and require additonal setup steps,
> e.g. Amazon EC2 driver needs VPC pre-configured and probably won't work with
> Kubernetes cloud provider for AWS, as that deppends on certainer tagging scheme on
> all of the resources... Anyhow, we do provide separate examples for EC2 and GCE.

### DigitalOcean

It should be suffiencent to
```
export DOCKER_MACHINE_DRIVER=digitalocean
export DIGITALOCEAN_ACCESS_TOKEN=<...>
```
and then run `./create-cluster.sh`.

### VMWare Fusion

If you have VMWare Fusion installed on your machine, you might care to
```
export DOCKER_MACHINE_DRIVER=vmwarefusion
```
prior to running `./create-cluster.sh`, as it's a bit quicker then VirtualBox.
{'fraction_non_alphanumeric': 0.08884900157056316, 'fraction_numerical': 0.004487323311644604, 'mean_word_length': 4.364620938628159, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7638665', 'n_tokens_mistral': 1403, 'n_tokens_neox': 1308, 'n_words': 579}