This script will provision a cluster suitable for production use, where there is a ring of 3 dedicated etcd nodes, Kubernetes master and 2 minions. The `kube-00` VM will be the master, your work loads are only to be deployed on the minion nodes, `kube-01` and `kube-02`. Initially, all VMs are single-core, to ensure a user of the free tier can reproduce it without paying extra. I will show how to add more bigger VMs later.
This script will provision a cluster suitable for production use, where there is a ring of 3 dedicated etcd nodes, Kubernetes master and 2 nodes. The `kube-00` VM will be the master, your work loads are only to be deployed on the minion nodes, `kube-01` and `kube-02`. Initially, all VMs are single-core, to ensure a user of the free tier can reproduce it without paying extra. I will show how to add more bigger VMs later.


...
@@ -35,21 +35,21 @@ Once the creation of Azure VMs has finished, you should see the following:
...
@@ -35,21 +35,21 @@ Once the creation of Azure VMs has finished, you should see the following:
```
```
...
...
azure_wrapper/info: Saved SSH config, you can use it like so: `ssh -F ./output/kubernetes_1c1496016083b4_ssh_conf <hostname>`
azure_wrapper/info: Saved SSH config, you can use it like so: `ssh -F ./output/kube_1c1496016083b4_ssh_conf <hostname>`
azure_wrapper/info: The hosts in this deployment are:
azure_wrapper/info: The hosts in this deployment are:
Two single-core minions are certainly not enough for a production system of today, and, as you can see, there is one _unassigned_ pod. Let's scale the cluster by adding a couple of bigger nodes.
Two single-core nodes are certainly not enough for a production system of today, and, as you can see, there is one _unassigned_ pod. Let's scale the cluster by adding a couple of bigger nodes.
You will need to open another terminal window on your machine and go to the same working directory (e.g. `~/Workspace/weave-demos/coreos-azure`).
You will need to open another terminal window on your machine and go to the same working directory (e.g. `~/Workspace/weave-demos/coreos-azure`).
...
@@ -96,11 +96,11 @@ First, lets set the size of new VMs:
...
@@ -96,11 +96,11 @@ First, lets set the size of new VMs:
```
```
export AZ_VM_SIZE=Large
export AZ_VM_SIZE=Large
```
```
Now, run scale script with state file of the previous deployment and number of minions to add:
Now, run scale script with state file of the previous deployment and number of nodes to add:
You now will have more instances of front-end Guestbook apps and Redis slaves; and, if you look up all pods labled `name=frontend`, you should see one running on each node.
You now will have more instances of front-end Guestbook apps and Redis slaves; and, if you look up all pods labled `name=frontend`, you should see one running on each node.
...
@@ -179,7 +181,7 @@ You should probably try deploy other [example apps](https://github.com/GoogleClo
...
@@ -179,7 +181,7 @@ You should probably try deploy other [example apps](https://github.com/GoogleClo
If you don't wish care about the Azure bill, you can tear down the cluster. It's easy to redeploy it, as you can see.
If you don't wish care about the Azure bill, you can tear down the cluster. It's easy to redeploy it, as you can see.