Skip to content

Commit 50e0cd2

Browse files
author
Matthew Fisher
committed
Merge pull request #2447 from bacongobbler/2446-ssh-key-docs
docs(installing_deis): add quick start guide
2 parents 1082530 + 50eb2e7 commit 50e0cd2

6 files changed

Lines changed: 95 additions & 57 deletions

File tree

docs/installing_deis/baremetal.rst

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@ machine running entirely from RAM. Then, you can `install CoreOS to disk`_.
1515
Deis requires CoreOS version 472.0.0 or more recent.
1616

1717

18-
Generate SSH key
18+
Generate SSH Key
1919
----------------
2020

21-
To avoid problems deploying/launching apps later on it is necessary to install `CoreOS`_ to disk
22-
with a SSH key without a passphrase. The following command will generate a new keypair named
23-
"deis":
24-
25-
.. code-block:: console
26-
27-
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis
21+
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
2822

2923

3024
Customize user-data
@@ -34,17 +28,7 @@ Customize user-data
3428
Generate a New Discovery URL
3529
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3630

37-
To get started with provisioning Deis, we will need to generate a new Discovery URL. Discovery URLs
38-
help connect `etcd`_ instances together by storing a list of peer addresses and metadata under a
39-
unique address. You can generate a new discovery URL for use in your platform by
40-
running the following from the root of the repository:
41-
42-
.. code-block:: console
43-
44-
$ make discovery-url
45-
46-
This will write a new discovery URL to the user-data file. Some convenience scripts are supplied in
47-
this user-data file, so it is mandatory for provisioning Deis.
31+
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
4832

4933

5034
SSH Key
@@ -166,7 +150,6 @@ disk. Add the following block to the ``write_files`` section:
166150
167151
.. _`cluster size`: https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md
168152
.. _`CoreOS`: https://coreos.com/
169-
.. _`etcd`: https://github.com/coreos/etcd
170153
.. _`install CoreOS to disk`: https://coreos.com/docs/running-coreos/bare-metal/installing-to-disk/
171154
.. _`iPXE`: https://coreos.com/docs/running-coreos/bare-metal/booting-with-ipxe/
172155
.. _`PXE`: https://coreos.com/docs/running-coreos/bare-metal/booting-with-pxe/

docs/installing_deis/digitalocean.rst

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Prerequisites
1414

1515
To complete this guide, you must have the following:
1616

17-
- An SSH key for running operator's commands against the cluster using ``deisctl``
18-
- An SSH key for authorizing yourself against Deis' builder
1917
- A domain to point to the cluster
2018
- The ability to provision at least 3 DigitalOcean Droplets that are 2GB or greater
2119

@@ -24,21 +22,16 @@ In order to provision the cluster, we will need to install a couple of administr
2422
`Deis Control Utility`_, which will assist us with installing, configuring and managing the Deis
2523
platform.
2624

27-
Generate a New Discovery URL
28-
----------------------------
25+
Generate SSH Key
26+
----------------
2927

30-
To get started with provisioning the Droplets, we will need to generate a new Discovery URL.
31-
Discovery URLs help connect `etcd`_ instances together by storing a list of peer addresses and
32-
metadata under a unique address. You can generate a new discovery URL for use in your platform by
33-
running the following from the root of the repository:
28+
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
3429

35-
.. code-block:: console
30+
Generate a New Discovery URL
31+
----------------------------
3632

37-
$ make discovery-url
33+
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
3834

39-
This will write a new discovery URL to the user-data file. This file is used by DigitalOcean's v2
40-
metadata API to create and customize each machine in our cluster to our liking. Some convenience
41-
scripts are supplied in this user-data file, so it is mandatory for provisioning Deis.
4235

4336
Create CoreOS Droplets
4437
----------------------
@@ -135,5 +128,4 @@ start installing the platform.
135128
.. _`docl`: https://github.com/nathansamson/docl#readme
136129
.. _`Deis Control Utility`: https://github.com/deis/deis/tree/master/deisctl#readme
137130
.. _`DNS control panel`: https://cloud.digitalocean.com/domains
138-
.. _`etcd`: https://github.com/coreos/etcd
139131
.. _`this tutorial`: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean

docs/installing_deis/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ with CoreOS.
2020

2121
.. toctree::
2222

23+
quick-start
2324
install-deisctl
2425
install-platform
2526
digitalocean
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
:title: Quick Start
2+
:description: How to start provisioning a multi-node Deis cluster
3+
4+
Quick Start
5+
===========
6+
7+
These steps will help you get started with deploying a multi-node Deis cluster.
8+
9+
10+
.. _generate_ssh_key:
11+
12+
Generate an SSH key
13+
-------------------
14+
15+
To avoid problems deploying/launching apps later on, it is necessary to install `CoreOS`_ to disk
16+
with an SSH key without a passphrase. The following command will generate a new keypair named
17+
"deis":
18+
19+
.. code-block:: console
20+
21+
$ ssh-keygen -q -t rsa -f ~/.ssh/deis -N '' -C deis
22+
23+
24+
.. _generate_discovery_url:
25+
26+
Generate a New Discovery URL
27+
----------------------------
28+
29+
To get started with provisioning Deis, we will need to generate a new Discovery URL. Discovery URLs
30+
help connect `etcd`_ instances together by storing a list of peer addresses and metadata under a
31+
unique address. You can generate a new discovery URL for use in your platform by
32+
running the following from the root of the repository:
33+
34+
.. code-block:: console
35+
36+
$ make discovery-url
37+
38+
This will write a new discovery URL to the user-data file. Some essential scripts are supplied in
39+
this user-data file, so it is mandatory for provisioning Deis.
40+
41+
42+
Choose a Provider
43+
-----------------
44+
45+
Choose one of the following providers and deploy a new cluster:
46+
47+
- :ref:`deis_on_digitalocean`
48+
- :ref:`deis_on_aws`
49+
- :ref:`deis_on_vagrant`
50+
- :ref:`deis_on_gce`
51+
- :ref:`deis_on_rackspace`
52+
- :ref:`deis_on_bare_metal`
53+
54+
55+
Configure DNS
56+
-------------
57+
58+
See :ref:`configure-dns` for more information on properly setting up your DNS records with Deis.
59+
60+
61+
Install Deis Platform
62+
---------------------
63+
64+
Now that you've finished provisioning a cluster, please refer to :ref:`install_deisctl` and :ref:`install_deis_platform` to
65+
start the platform.
66+
67+
68+
.. _`CoreOS`: https://coreos.com/
69+
.. _`etcd`: https://github.com/coreos/etcd

docs/installing_deis/rackspace.rst

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,16 @@ Your account ID is displayed in the upper right-hand corner of the cloud control
4040
API key can be found on the Account Settings page.
4141

4242

43+
Generate SSH Key
44+
----------------
45+
46+
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
47+
48+
4349
Set up your keys
4450
----------------
4551

46-
Choose an existing keypair or generate a new one, if desired. Tell supernova about the key pair and
47-
give it an identifiable name:
52+
Tell supernova about the key pair and give it an identifiable name:
4853

4954
.. code-block:: console
5055
@@ -54,14 +59,7 @@ give it an identifiable name:
5459
Generate a New Discovery URL
5560
----------------------------
5661

57-
To get started with provisioning the nodes, we will need to generate a new Discovery URL.
58-
Discovery URLs help connect `etcd`_ instances together by storing a list of peer addresses and
59-
metadata under a unique address. You can generate a new discovery URL for use in your platform by
60-
running the following from the root of the repository:
61-
62-
.. code-block:: console
63-
64-
$ make discovery-url
62+
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
6563

6664

6765
Choose number of instances
@@ -74,7 +72,7 @@ By default, the provision script will provision 3 servers. You can override this
7472
$ DEIS_NUM_INSTANCES=5 ./provision-rackspace-cluster.sh deis-key
7573
7674
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members.
77-
For more information, see [optimal etcd cluster size](https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md).
75+
For more information, see `optimal etcd cluster size`_.
7876

7977
Deis clusters of less than 3 nodes are unsupported.
8078

@@ -127,6 +125,6 @@ start installing the platform.
127125

128126
.. _`contrib/rackspace`: https://github.com/deis/deis/tree/master/contrib/rackspace
129127
.. _`CoreOS on Rackspace`: https://coreos.com/docs/running-coreos/cloud-providers/rackspace/
130-
.. _etcd: https://github.com/coreos/etcd
128+
.. _`optimal etcd cluster size`: https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md
131129
.. _Rackspace: https://github.com/deis/deis/tree/master/contrib/rackspace#readme
132130
.. _`contrib/rackspace`: https://github.com/deis/deis/tree/master/contrib/rackspace

docs/installing_deis/vagrant.rst

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,16 @@ Please install `Vagrant`_ v1.6.5+ and `VirtualBox`_.
2222
website.
2323

2424

25-
Generate a New Discovery URL
26-
----------------------------
25+
Generate SSH Key
26+
----------------
2727

28-
To get started with provisioning Deis, we will need to generate a new Discovery URL. Discovery URLs
29-
help connect `etcd`_ instances together by storing a list of peer addresses and metadata under a
30-
unique address. You can generate a new discovery URL for use in your platform by
31-
running the following from the root of the repository:
28+
Please refer to :ref:`generate_ssh_key` for generating a new SSH key.
3229

33-
.. code-block:: console
3430

35-
$ make discovery-url
31+
Generate a New Discovery URL
32+
----------------------------
3633

37-
This will write a new discovery URL to the user-data file. Some convenience scripts are supplied in
38-
this user-data file, so it is mandatory for provisioning Deis.
34+
Please refer to :ref:`generate_discovery_url` for generating a new Discovery URL.
3935

4036

4137
Boot CoreOS
@@ -74,4 +70,3 @@ start installing the platform.
7470

7571
.. _Vagrant: http://www.vagrantup.com/
7672
.. _VirtualBox: https://www.virtualbox.org/wiki/Downloads
77-
.. _etcd: https://github.com/coreos/etcd

0 commit comments

Comments
 (0)