Skip to content

Commit 13c26fc

Browse files
committed
style(azure-acs): you-ectomy
1 parent 3c6cb1c commit 13c26fc

1 file changed

Lines changed: 44 additions & 23 deletions

File tree

  • src/quickstart/provider/azure-acs

src/quickstart/provider/azure-acs/boot.md

Lines changed: 44 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
## Prerequisites
44

5-
1. Azure Account - If you do not already have a Azure Cloud account, you can start a trial with $200 of free credit [here](https://azure.microsoft.com/en-us/free/). After completing sign up, you must add your billing information.
5+
1. Azure Account - An active Azure Cloud account is required for this quick start. Start a trial with $200 of free credit [here](https://azure.microsoft.com/en-us/free/). After completing trial sign up, a credit card for billing must be added, but will not be charged.
66
2. Some form of *nix-based terminal - MacOS, Ubuntu, CentOS, Bash on Windows, etc
77
<br>Where the following is present:
8-
3. Azure CLI - The Azure CLI (2.0) provides the `az` command and allows you to interact with Azure through the command line. Install the CLI by following the instructions on [GitHub for the Azure CLI](https://github.com/Azure/azure-cli).
8+
3. Azure CLI - The Azure CLI (2.0) provides the `az` command which drives Azure through the command line. Install the CLI by following the instructions on [GitHub for the Azure CLI](https://github.com/Azure/azure-cli).
99
4. SSH Key - This is used to deploy the cluster. [This URL helps to create SSH keys compatible with Linux VMs on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys)
1010
5. jq - to parse the JSON responses from the CLI. [jq download page](https://stedolan.github.io/jq/)
1111

1212
## Configure the Azure CLI
1313

14-
After installing the CLI, log in to your Azure Account by typing `az login` and output would look similar to this:
14+
After installing the CLI, log in to an Azure Account by typing `az login`:
1515
```
1616
$ az login
1717
To sign in, use a web browser to open the page https://aka.ms/devicelogin and enter the code F7DLMNOPE to authenticate.
@@ -31,15 +31,15 @@ To sign in, use a web browser to open the page https://aka.ms/devicelogin and en
3131
]
3232
```
3333

34-
Replace the value of SUBSCRIPTION_ID with the desired subscription id where you want to deploy from the previous step. We also set the active subscription to deploy to.
34+
The `id` field from the `az login` command is the Azure Subscription Id. This id will be used throughout the guide. As a matter of convenience, set an environment variable named `SUBSCRIPTION_ID` with the value of the id (e.g. 57849302-a9f0-4908-b300-31337a0fb205). Check the configuration by setting the active subscription with `az account set`:
3535
```
36-
SUBSCRIPTION_ID=57849302-a9f0-4908-b300-31337a0fb205
36+
$ export SUBSCRIPTION_ID=57849302-a9f0-4908-b300-31337a0fb205
3737
$ az account set --subscription="${SUBSCRIPTION_ID}"
3838
```
3939

4040
## Create an Azure Service Principle
4141

42-
Next, create an Azure Service Principle that will be used to provision the ACS Kubernetes Cluster. Service Principles are entities that have permission to create resources on your behalf. New Service Principles must be given a unique name, a role, and an Azure subscription that the Service Principle may modify.
42+
Next, create an Azure Service Principle that will be used to provision the ACS Kubernetes Cluster. Service Principles are entities that have permission to create resources in an Azure Subscription. New Service Principles must be given a unique name, a role, and an Azure subscription that the Service Principle may modify.
4343

4444
```
4545
$ export SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
@@ -59,20 +59,42 @@ This should display an output similar to this. `jq` has also automatically extra
5959
}
6060
```
6161

62-
## Create Your ACS Kubernetes Cluster
62+
## Create an ACS Kubernetes Cluster
6363

64-
You can build the Kubernetes cluster on ACS using primarily the Azure Web Portal (UI) or entirely using the Azure command line (CLI). Choose one of the two paths:
64+
Azure supports two methods to build an ACS Kubernetes cluster, through the Azure Web Portal (UI) or using the Azure command line (CLI). Choose one of the two paths:
6565

6666
### Path 1: Azure 'az' CLI
6767

68-
1. Create an empty Azure resource group to deploy your cluster. The location of the resource group value can be changed to any datacenter. `az account list-locations` gives the name of all locations.
68+
Create an empty Azure resource group to hold the ACS Kubernetes cluster. The location of the resource group can be set to any available Azure datacenter. To see the possible locations use `az account list-locations`. Remember to reference the location by the `name` attribute:
69+
70+
```
71+
{
72+
"displayName": "West Central US",
73+
"id": "/subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/locations/westcentralus",
74+
"latitude": "40.890",
75+
"longitude": "-110.234",
76+
"name": "westcentralus",
77+
"subscriptionId": null
78+
},
79+
{
80+
"displayName": "West US 2",
81+
"id": "/subscriptions/57ac26cf-a9f0-4908-b300-9a4e9a0fb205/locations/westus2",
82+
"latitude": "47.233",
83+
"longitude": "-119.852",
84+
"name": "westus2",
85+
"subscriptionId": null
86+
}
87+
]
88+
```
89+
90+
Create an environment variable to hold the resource group name:
6991

7092
```
7193
$ export RG_NAME=myresourcegroup
7294
$ az resource group create --name "${RG_NAME}" --location southcentralus
7395
```
7496

75-
2. Execute the command to deploy the cluster. The dns-prefix and ssh-key-value must be replaced with your own values.
97+
Execute the command to deploy the cluster. The `dns-prefix` and `ssh-key-value` must be replaced with your own values.
7698

7799
```
78100
$ az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
@@ -85,12 +107,11 @@ $ az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
85107
--ssh-key-value @/home/myusername/.ssh/id_rsa.pub
86108
```
87109

88-
> Note: When this is successfully executed, you'll only see this to start: `waiting for AAD role to propogate.done`. It will take a few minutes for the cluster to complete creation.
110+
> Note: When `az acs create` starts the only output will be `waiting for AAD role to propogate.done`. The provisioning process is running in the background, in a few minutes the `az` command should return with information about the deployment created behind the scenes.
89111
90-
Finally you should see something like this:
91112
```
92113
{
93-
"id": "/subscriptions/ed7cedf5-fcd8-4a5d-9980-96d838f65ab8/resourceGroups/ascdeis/providers/Microsoft.Resources/deployments/azurecli1481240849.890798",
114+
"id": "/subscriptions/ed7cedf5-fcd8-4a5d-9980-96d838f65ab8/resourceGroups/myresourcegroup/providers/Microsoft.Resources/deployments/azurecli1481240849.890798",
94115
"name": "azurecli1481240849.890798",
95116
"properties": {
96117
"correlationId": "61be22d1-28d8-466c-a2ba-7bc11c2a3578",
@@ -106,7 +127,7 @@ Finally you should see something like this:
106127
"namespace": "Microsoft.ContainerService",
107128
...
108129
},
109-
"resourceGroup": "ascdeis"
130+
"resourceGroup": "myresourcegroup"
110131
}
111132
```
112133

@@ -120,15 +141,15 @@ Select "Resource Manager" for the deployment model:
120141

121142
![](images/step2.png)
122143

123-
Provide basic settings for your Kubernetes cluster.
144+
Provide basic settings for the new ACS Kubernetes cluster.
124145

125146
* User name: this is the unix user name that will be added to all master and worker nodes
126147
* SSH public key: provide a public key that will be associated with the user name specified above
127-
* Subscription: choose the Azure Subscription that will be charged for your compute resources
148+
* Subscription: choose the Azure Subscription that will be charged for the compute resources
128149
* Resource group: create a new resource group and give the group a unique name
129-
* Location: choose an Azure location for your cluster
150+
* Location: choose an Azure location for the cluster
130151

131-
When you have filled out the information, click "Ok".
152+
When the required information is filled out, click "Ok".
132153

133154
![](images/step3.png)
134155

@@ -139,15 +160,15 @@ The next step takes the Service Principle name and password generated using the
139160

140161
![](images/step4.png)
141162

142-
Next, configure the number of worker nodes, the node size, and DNS prefix for your cluster.
163+
Next, configure the number of worker nodes, the node size, and DNS prefix for the cluster.
143164

144165
Worker nodes should have at least 7GB of available RAM.
145166

146167
Click "Ok" to continue.
147168

148169
![](images/step5.png)
149170

150-
Review the cluster configuration and click "Ok". After clicking "Purchase" on the next screen you will be returned to the Azure Portal dashboard.
171+
Review the cluster configuration and click "Ok". After clicking "Purchase" on the next screen the browser will be returned to the Azure Portal dashboard.
151172

152173
![](images/step6.png)
153174

@@ -157,7 +178,7 @@ The Kubernetes cluster will take a few minutes to complete provisioning and conf
157178

158179
![](images/step9.png)
159180

160-
## Connect to your Kubernetes Cluster
181+
## Connect to the ACS Kubernetes Cluster
161182

162183
Find the fully qualified domain name (FQDN) for the Kubernetes master:
163184

@@ -171,7 +192,7 @@ $ az acs list
171192
},
172193
```
173194

174-
Download the Kubeconfig from the master to your local machine, make sure to use the right SSH identity and master FQDN:
195+
Download the Kubeconfig from the master to the local machine, make sure to use the right SSH identity and master FQDN:
175196

176197
```
177198
$ scp -i ~/.ssh/id_rsa k8sadmin@mydnsprefix.myregion.cloudapp.azure.com:.kube/config ~/.kube/k8sanddeis.config
@@ -187,7 +208,7 @@ Point `kubectl` at the kubernetes configuration file by setting the `KUBECONFIG`
187208
export KUBECONFIG=~/.kube/k8sanddeis.config
188209
```
189210

190-
Verify you can connect to your Kubernetes cluster by running `kubectl cluster-info`
211+
Verify connectivity to the new ACS Kubernetes cluster by running `kubectl cluster-info`
191212

192213
```
193214
$ kubectl cluster-info

0 commit comments

Comments
 (0)