You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/installing_deis/azure.rst
+30-32Lines changed: 30 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,36 +8,29 @@ Microsoft Azure
8
8
9
9
This section will show you how to create a 3-node Deis cluster on Microsoft Azure.
10
10
11
-
Before you start, :ref:`get the Deis source <get_the_source>` and change directory into `contrib/azure`_ while following this documentation.
11
+
Before you start, :ref:`get the Deis source <get_the_source>` and change directory into `contrib/azure`_
12
+
while following this documentation.
12
13
13
14
14
15
Install Python and Azure SDK for Python
15
16
---------------------------------------
16
17
17
-
The cluster creation tool uses Python and the Python Azure library to create a CoreOS cluster. If you haven't already, install these on your development machine:
18
+
The cluster creation tool uses Python and the Python Azure library to create a CoreOS cluster.
19
+
If you haven't already, install these on your development machine:
18
20
19
21
.. code-block:: console
20
22
21
23
$ brew install python
22
-
...
23
-
24
-
$ sudo pip install azure
25
-
...
26
-
27
-
28
-
And check to make sure they are configured correctly:
The azure-coreos-cluster creation tool uses the Azure management REST API to create the CoreOS cluster which uses a management certificate to authenticate.
29
+
The azure-coreos-cluster creation tool uses the Azure management REST API to create the CoreOS
30
+
cluster which uses a management certificate to authenticate.
39
31
40
-
If you don't have a management certificate already configured, the script generate-mgmt-cert.sh can create this certificate for you. Otherwise, you can skip to the next section.
32
+
If you don't have a management certificate already configured, the script generate-mgmt-cert.sh can
33
+
create this certificate for you. Otherwise, you can skip to the next section.
41
34
42
35
If you need to create a certificate, edit cert.conf in contrib/azure with your company's details and then run:
43
36
@@ -48,48 +41,58 @@ If you need to create a certificate, edit cert.conf in contrib/azure with your c
48
41
Upload Management Cert
49
42
----------------------
50
43
51
-
If you haven't uploaded your management certificate to Azure (azure-cert.cer if you used the script in the previous section), do that now using the `management certificates tab`_ of the Azure portal's Settings.
44
+
If you haven't uploaded your management certificate to Azure (azure-cert.cer if you used the script
45
+
in the previous section), do that now using the `management certificates tab`_ of the
46
+
Azure portal's Settings.
52
47
53
48
Also copy the Azure subscription id from this table and save it for the cluster creation script below.
54
49
55
50
Create Cluster Cloud Config
56
51
---------------------------
57
52
58
-
Before we can create a cluster, we need to create a cloud config for it. The script create-azure-user-data does this for you. This script takes the stock cluster instance config in ../coreos/user-data.example and customizes it for Azure and inserts a unique cluster discovery url:
53
+
Before we can create a cluster, we need to create a cloud config for it. The script
54
+
``create-azure-user-data`` does this for you. This script takes the stock cluster instance config
55
+
in ``../coreos/user-data.example``, customizes it for Azure, and inserts a unique cluster discovery
This will create a azure-user-data cloud config file. We'll use this with the script in the next section during cluster creation.
62
+
This will create a azure-user-data cloud config file. We'll use this with the script in the next
63
+
section during cluster creation.
65
64
66
65
Create CoreOS Cluster
67
66
---------------------
68
67
69
68
With the management certificate and cloud config in place, we are ready to create our cluster.
70
69
71
-
* Create a container called 'vhds' within a storage account in the same region as your cluster using the Azure portal. Note the URL of the container for the cluster creation script below.
70
+
* Create a container called ``vhds`` within a storage account in the same region as your cluster using the Azure portal. Note the URL of the container for the cluster creation script below.
72
71
* Choose a cloud service name for your Deis cluster for the script below. The script will automatically create this cloud service for you.
72
+
* Choose an Azure `region`_ to use. Supply it in quotes with the ``--location`` parameter. The default is "West US".
73
73
74
74
With that, let's run the azure-coreos-cluster script which will create the CoreOS cluster. Fill in the bracketed values with the values for your deployment you created above.
This script will by default provision a 3 node cluster but you can increase this with the --num-nodes parameter. Likewise, you can increase the vm size using the --vm-size. It is not recommended that you use smaller than Large (A3) sized instances.
90
+
This script will by default provision a 3 node cluster but you can increase this with the
91
+
``--num-nodes`` parameter. Likewise, you can increase the VM size using ``--vm-size``.
92
+
It is not recommended that you use smaller than Large (A3) sized instances.
91
93
92
-
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members. For more information, see `optimal etcd cluster size`_.
94
+
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always
95
+
have an odd number of members. For more information, see `etcd disaster recovery`_.
93
96
94
97
95
98
Configure DNS
@@ -104,13 +107,8 @@ Install Deis Platform
104
107
Now that you've finished provisioning a cluster, please refer to :ref:`install_deis_platform` to
105
108
start installing the platform.
106
109
107
-
IMPORTANT NOTE: Once you have installed deisctl, you will need to use a customized deis-builder component for Azure since Azure uses routable IP addresses for each instance. Configure this using the following command before you run 'deisctl install platform':
108
-
109
-
.. code-block:: console
110
-
111
-
$ deisctl config builder set image=deis/builder:v1.1.1-azure
0 commit comments