|
6 | 6 | Configure DNS |
7 | 7 | ============= |
8 | 8 |
|
9 | | -For Vagrant clusters, we've created the DNS record ``local.deisapp.com`` which resolves to the IP of the first VM, 172.17.8.100. |
10 | | -You can use ``local.deisapp.com`` to both log into the controller and to access applications that you've deployed (they will be subdomains of ``local.deisapp.com``, like ``happy-unicorn.local.deisapp.com``). Similarly, you can use ``local3.deisapp.com`` or ``local5.deisapp.com`` for 3- and 5-node clusters, respectively. No DNS configuration is necessary for Vagrant clusters. |
| 9 | +For Deis clusters on EC2, GCE, Azure, DigitalOcean, Rackspace, OpenStack, or bare metal, |
| 10 | +:ref:`DNS records <dns_records>` must be created. The cluster runs multiple routers in |
| 11 | +front of the Deis controller and apps you deploy, so a |
| 12 | +:ref:`load balancer <configure-load-balancers>` is recommended. |
11 | 13 |
|
12 | | -For Deis clusters hosted elsewhere (EC2, Rackspace, DigitalOcean, Google Compute Engine, bare metal, etc.), DNS records will need to be created to point to the cluster. For a one-node cluster, we schedule and launch one router, and deis-router and deis-controller will run on the same host. So, the DNS record specified below can be configured to point to this one machine. |
| 14 | +Vagrant |
| 15 | +------- |
13 | 16 |
|
14 | | -On a multi-node cluster, however, there are probably multiple routers, and the controller will likely be scheduled on a separate machine. As mentioned in :ref:`configure-load-balancers`, a load balancer is recommended in this scenario. |
| 17 | +For local Vagrant clusters, no DNS configuration is required. The domain |
| 18 | +``local3.deisapp.com`` already resolves to the IPs of the first 3 VMs provisioned |
| 19 | +by Deis' Vagrantfile: 172.17.8.100, 172.17.8.101, 172.17.8.102. |
15 | 20 |
|
16 | | -Note that the controller will eventually live behind the routers so that all external traffic will flow through the load balancer - configuring a DNS record which points to a service whose IP could change is less than ideal. |
| 21 | +Use ``deis.local3.deisapp.com`` to log in to the controller on a 3-node Vagrant |
| 22 | +cluster. Apps that you deploy will have their name prefixed to the domain, such |
| 23 | +as "golden-chinbone.local3.deisapp.com". |
| 24 | + |
| 25 | +Similarly, use ``local5.deisapp.com`` for a 5-node Vagrant cluster. |
17 | 26 |
|
18 | 27 | .. _dns_records: |
19 | 28 |
|
20 | 29 | Necessary DNS records |
21 | 30 | --------------------- |
22 | 31 |
|
23 | | -Deis requires a wildcard DNS record. Assuming ``myapps.com`` is the top-level domain apps will live under: |
| 32 | +Deis requires a wildcard DNS record. Assuming ``myapps.com`` is the top-level domain |
| 33 | +apps will live under: |
24 | 34 |
|
25 | | -* ``*.myapps.com`` should have "A" record entries for each of the load balancer IP addresses |
| 35 | +* ``*.myapps.com`` should have "A" record entries for each of the load balancer's IP addresses |
26 | 36 |
|
27 | 37 | Apps can then be accessed by browsers at ``appname.myapps.com``, and the controller will be available to the Deis client at ``deis.myapps.com``. |
28 | 38 |
|
29 | 39 | `EC2 recommends`_ against creating "A" record entries; instead, create a wildcard "CNAME" record entry for the load balancer's DNS name, or use Amazon `Route 53`_. |
30 | 40 |
|
31 | | -These records are necessary for all deployments of Deis (EC2, Rackspace, DigitalOcean, Google Compute Engine, bare metal, etc.). Vagrant clusters can use the domain ``local.deisapp.com``, ``local3.deisapp.com``, or ``local5.deiaspp.com``. |
| 41 | +These records are necessary for all deployments of Deis other than Vagrant clusters. |
32 | 42 |
|
33 | 43 | .. _xip_io: |
34 | 44 |
|
|
0 commit comments