|
| 1 | +# Installing Deis Workflow |
| 2 | + |
| 3 | +We will use the `helm` utility to install Deis Workflow onto a Kubernetes cluster. If you don't |
| 4 | +have `helm` installed, see [installing helm][helm] for more info. |
| 5 | + |
| 6 | +## Check Your Setup |
| 7 | + |
| 8 | +First check that you have `helm` installed and the version is correct. |
| 9 | + |
| 10 | +``` |
| 11 | +$ helm --version |
| 12 | +0.4.0 |
| 13 | +``` |
| 14 | + |
| 15 | +Ensure your kubectl client is installed and ensure it can connect to your Kubernetes cluster. This |
| 16 | +is where `helm` will attempt to communicate with the cluster. You can test that it is working |
| 17 | +properly by running: |
| 18 | + |
| 19 | +``` |
| 20 | +$ helm target |
| 21 | +Kubernetes master is running at https://10.245.1.2 |
| 22 | +Heapster is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/services/heapster |
| 23 | +KubeDNS is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/services/kube-dns |
| 24 | +KubeUI is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/services/kube-ui |
| 25 | +Grafana is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana |
| 26 | +InfluxDB is running at https://10.245.1.2/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb |
| 27 | +``` |
| 28 | + |
| 29 | +If you see a list of targets like the one above, 'helm' can communicate with the kubernetes master. |
| 30 | + |
| 31 | +## Get the Helm Chart |
| 32 | + |
| 33 | +The [Deis Chart Repository](https://github.com/deis/charts) contains everything you |
| 34 | +need to install Deis onto your Kubernetes cluster, with a single `helm install` command. |
| 35 | + |
| 36 | +Run the following commands to set up your Helm environment and install the chart: |
| 37 | + |
| 38 | +``` |
| 39 | +$ helm update |
| 40 | +$ helm repo add deis https://github.com/deis/charts |
| 41 | +$ helm fetch deis/deis |
| 42 | +``` |
| 43 | + |
| 44 | +## Install Deis Workflow |
| 45 | + |
| 46 | +Now that you have Helm installed and added the Deis Chart Repository, install Workflow by running: |
| 47 | + |
| 48 | +``` |
| 49 | +$ helm install deis/deis --namespace=deis |
| 50 | +``` |
| 51 | + |
| 52 | +Helm will install a variety of Kubernetes resources in the `deis` namespace. |
| 53 | +You'll need to wait for the pods that it launched to be ready. Monitor their status |
| 54 | +by running: |
| 55 | + |
| 56 | +``` |
| 57 | +$ kubectl get pods --namespace=deis |
| 58 | +``` |
| 59 | + |
| 60 | +If you would like `kubectl` to automatically update as the pod states change, run (type Ctrl-C to stop the watch): |
| 61 | +``` |
| 62 | +$ kubectl get pods --namespace=deis -w |
| 63 | +``` |
| 64 | + |
| 65 | +Once you see all of the pods in the `READY` state, Deis Workflow is up and running! |
| 66 | + |
| 67 | +Next, [configure dns][] so you can register your first user. |
| 68 | + |
| 69 | +[helm]: http://helm.sh |
| 70 | +[using deis]: ../using-deis/deploying-an-application.md |
| 71 | +[configure dns]: ../managing-deis/configuring-dns.md |
0 commit comments