Skip to content

Commit d830adf

Browse files
committed
Merge pull request #4663 from carmstrong/azure-premium-storage
fix(contrib/azure): use Azure premium storage
2 parents a47fcfe + 39980b8 commit d830adf

3 files changed

Lines changed: 33 additions & 8 deletions

File tree

contrib/azure/arm-template.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"customData": {
6666
"type": "string",
6767
"metadata": {
68-
"description": "Base64-encoded cloud-config.yaml file to deploy and start Fleet"
68+
"description": "Base64-encoded cloud-config.yaml file to deploy and start fleet"
6969
}
7070
},
7171
"numberOfNodes": {
@@ -78,23 +78,33 @@
7878
"dockerVolumeSize": {
7979
"type": "int",
8080
"metadata": {
81-
"description": "Size in GB of the Docker volume."
81+
"description": "Size in GB of the Docker volume"
8282
},
8383
"defaultValue": "100"
8484
},
8585
"coreosVersion": {
8686
"type": "string",
8787
"metadata": {
88-
"description": "Version of CoreOS to deploy."
88+
"description": "Version of CoreOS to deploy"
8989
}
90+
},
91+
"storageAccountType": {
92+
"type": "string",
93+
"metadata": {
94+
"description": "Storage account type"
95+
},
96+
"allowedValues": [
97+
"Standard_LRS",
98+
"Premium_LRS"
99+
],
100+
"defaultValue": "Premium_LRS"
90101
}
91102
},
92103
"variables": {
93104
"addressPrefix": "10.0.0.0/16",
94105
"subnet1Name": "Subnet-1",
95106
"subnet1Prefix": "10.0.0.0/24",
96107
"publicIPAddressType": "Dynamic",
97-
"storageAccountType": "Standard_LRS",
98108
"imagePublisher": "CoreOS",
99109
"imageOffer": "CoreOS",
100110
"imageSKU": "Stable",
@@ -134,7 +144,7 @@
134144
"location": "[resourceGroup().location]",
135145
"apiVersion": "2015-05-01-preview",
136146
"properties": {
137-
"accountType": "[variables('storageAccountType')]"
147+
"accountType": "[parameters('storageAccountType')]"
138148
}
139149
},
140150
{

contrib/azure/parameters.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"value": ""
1010
},
1111
"vmSize": {
12-
"value": "Standard_A3"
12+
"value": "Standard_DS2"
1313
},
1414
"adminUsername": {
1515
"value": "core"
@@ -28,5 +28,8 @@
2828
},
2929
"coreosVersion": {
3030
"value": "766.4.0"
31+
},
32+
"storageAccountType": {
33+
"value": "Premium_LRS"
3134
}
3235
}

docs/installing_deis/azure.rst

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,20 @@ base64-encoded version of ``azure-user-data``. This can be generated using ``bas
7070
7171
$ base64 azure-user-data
7272
73-
Paste the result into ``parameters.json``.
73+
Paste the result into ``parameters.json``. Any of the values in ``parameters.json``
74+
are defaults and can be customized if desired.
75+
76+
.. note::
77+
78+
For best performance, Deis clusters on Azure default to using `premium storage`_.
79+
This incurs an additional cost. Using standard storage is possible, but is unsupported
80+
as it resulted in cluster issues during testing. Premium storage is only available
81+
in `some regions`_.
7482

7583
Finally, we can deploy. Choose a valid location to deploy -- you can list all locations
76-
with ``azure location list``:
84+
with ``azure location list``.
85+
86+
As an example, to create a deployment named "deis" in the "West US" region:
7787

7888
.. code-block:: console
7989
@@ -103,3 +113,5 @@ start installing the platform.
103113
.. _`Azure Resource Manager`: https://azure.microsoft.com/en-us/documentation/articles/resource-manager-deployment-model/
104114
.. _`contrib/azure`: https://github.com/deis/deis/tree/master/contrib/azure
105115
.. _`organizational account`: http://www.brucebnews.com/2013/04/the-difference-between-a-microsoft-account-and-an-office-365-account/
116+
.. _`premium storage`: https://azure.microsoft.com/en-us/services/storage/premium-storage/
117+
.. _`some regions`: https://azure.microsoft.com/en-us/regions/#services

0 commit comments

Comments
 (0)