Skip to content

Commit d081858

Browse files
committed
Merge pull request #3733 from mboersma/one-node-is-forbidden
docs(configure-dns): drop references to local.deisapp.com
2 parents 0f87b9d + fdd491e commit d081858

7 files changed

Lines changed: 29 additions & 19 deletions

File tree

client/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ somewhere in your $PATH.
9595

9696
.. code-block:: console
9797
98-
$ deis register http://deis.local.deisapp.com
98+
$ deis register http://deis.local3.deisapp.com
9999
$ deis keys:add
100100
101101

client/deis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ def auth_register(self, args):
728728
729729
Arguments:
730730
<controller>
731-
fully-qualified controller URI, e.g. `http://deis.local.deisapp.com/`
731+
fully-qualified controller URI, e.g. `http://deis.local3.deisapp.com/`
732732
733733
Options:
734734
--username=<username>
@@ -833,7 +833,7 @@ def auth_login(self, args):
833833
834834
Arguments:
835835
<controller>
836-
a fully-qualified controller URI, e.g. `http://deis.local.deisapp.com/`.
836+
a fully-qualified controller URI, e.g. `http://deis.local3.deisapp.com/`.
837837
838838
Options:
839839
--username=<username>

docs/managing_deis/configure-dns.rst

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,39 @@
66
Configure DNS
77
=============
88

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.
1113

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+
-------
1316

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.
1520

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.
1726

1827
.. _dns_records:
1928

2029
Necessary DNS records
2130
---------------------
2231

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:
2434

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
2636

2737
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``.
2838

2939
`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`_.
3040

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.
3242

3343
.. _xip_io:
3444

docs/using_deis/manage-application.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ When working with an application that has been shared with you, clone the origin
8080
$ git clone https://github.com/deis/example-java-jetty.git
8181
Cloning into 'example-java-jetty'... done
8282
$ cd example-java-jetty
83-
$ git remote add -f deis ssh://git@local.deisapp.com:2222/peachy-waxworks.git
83+
$ git remote add -f deis ssh://git@local3.deisapp.com:2222/peachy-waxworks.git
8484
Updating deis
8585
From deis-controller.local:peachy-waxworks
8686
* [new branch] master -> deis/master

docs/using_deis/using-buildpacks.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ Use ``git push deis master`` to deploy your application.
8282
Launching... done, v2
8383
8484
-----> unisex-huntress deployed to Deis
85-
http://unisex-huntress.local.deisapp.com
85+
http://unisex-huntress.local3.deisapp.com
8686
8787
To learn more, use `deis help` or visit http://deis.io
8888
89-
To ssh://git@local.deisapp.com:2222/unisex-huntress.git
89+
To ssh://git@local3.deisapp.com:2222/unisex-huntress.git
9090
* [new branch] master -> master
9191
92-
$ curl -s http://unisex-huntress.local.deisapp.com
92+
$ curl -s http://unisex-huntress.local3.deisapp.com
9393
Powered by Deis!
9494
9595
Because a Heroku-style application is detected, the ``web`` process type is automatically scaled to 1 on first deploy.

docs/using_deis/using-dockerfiles.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ Use ``git push deis master`` to deploy your application.
9797
Launching... done, v2
9898
9999
-----> folksy-offshoot deployed to Deis
100-
http://folksy-offshoot.local.deisapp.com
100+
http://folksy-offshoot.local3.deisapp.com
101101
102102
To learn more, use `deis help` or visit http://deis.io
103103
104-
To ssh://git@local.deisapp.com:2222/folksy-offshoot.git
104+
To ssh://git@local3.deisapp.com:2222/folksy-offshoot.git
105105
* [new branch] master -> master
106106
107-
$ curl -s http://folksy-offshoot.local.deisapp.com
107+
$ curl -s http://folksy-offshoot.local3.deisapp.com
108108
Welcome to Deis!
109109
See the documentation at http://docs.deis.io/ for more information.
110110

tests/utils/itutils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func GetGlobalConfig() *DeisTestConfig {
5959
}
6060
domain := os.Getenv("DEIS_TEST_DOMAIN")
6161
if domain == "" {
62-
domain = "local.deisapp.com"
62+
domain = "local3.deisapp.com"
6363
}
6464
sshKey := os.Getenv("DEIS_TEST_SSH_KEY")
6565
if sshKey == "" {

0 commit comments

Comments
 (0)