This is an archived version of the documentation. View the latest version here.
Table of Contents
** Azure Prerequisites**
azure account set
Prerequisites for your workstation
The cluster setup scripts can setup Kubernetes for multiple targets. First modify cluster/kube-env.sh
to specify azure:
KUBERNETES_PROVIDER="azure"
Next, specify an existing virtual network and subnet in cluster/azure/config-default.sh
:
AZ_VNET=
You can create a virtual network:
azure network vnet create
Now you're ready.
You can download and install the latest Kubernetes release from this page, then run the <kubernetes>/cluster/kube-up.sh
script to start the cluster:
cd kubernetes cluster/kube-up.sh
The script above will start (by default) a single master VM along with 4 worker VMs. You
can tweak some of these parameters by editing cluster/azure/config-default.sh
.
The kubectl tool controls the Kubernetes cluster manager. It lets you inspect your cluster resources, create, delete, and update components, and much more. You will use it to look at your new cluster and bring up example apps.
Add the appropriate binary folder to your PATH
to access kubectl:
# OS X
export PATH=
# Linux
export PATH=
See a simple nginx example to try out your new cluster.
For more complete applications, please look in the examples directory.
cluster/kube-down.sh