Skip to content

Commit 3c6cb1c

Browse files
committed
doc(azure-acs): style and typo fixes
1 parent ba50b7b commit 3c6cb1c

1 file changed

Lines changed: 26 additions & 23 deletions

File tree

  • src/quickstart/provider/azure-acs

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

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

33
## Prerequisites
44

5-
1. Azure Accout - 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 - 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.
66
2. Some form of *nix-based terminal - MacOS, Ubuntu, CentOS, Bash on Windows, etc
77
<br>Where the following is present:
88
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).
@@ -13,7 +13,7 @@
1313

1414
After installing the CLI, log in to your Azure Account by typing `az login` and output would look similar to this:
1515
```
16-
~ $ az login
16+
$ 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.
1818
[
1919
{
@@ -34,22 +34,22 @@ To sign in, use a web browser to open the page https://aka.ms/devicelogin and en
3434
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.
3535
```
3636
SUBSCRIPTION_ID=57849302-a9f0-4908-b300-31337a0fb205
37-
az account set --subscription="${SUBSCRIPTION_ID}"
37+
$ az account set --subscription="${SUBSCRIPTION_ID}"
3838
```
3939

4040
## Create an Azure Service Principle
4141

4242
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.
4343

4444
```
45-
SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
46-
SP_NAME=`echo $SP_JSON | jq -r '.name'`
47-
SP_PASS=`echo $SP_JSON | jq -r '.password'`
48-
SP_TENANT=`echo $SP_JSON | jq -r '.tenant'`
49-
echo $SP_JSON
45+
$ export SP_JSON=`az ad sp create-for-rbac -n="http://acsk8sdeis" --role="Contributor" --scopes="/subscriptions/${SUBSCRIPTION_ID}"`
46+
$ export SP_NAME=`echo $SP_JSON | jq -r '.name'`
47+
$ export SP_PASS=`echo $SP_JSON | jq -r '.password'`
48+
$ export SP_TENANT=`echo $SP_JSON | jq -r '.tenant'`
49+
$ echo $SP_JSON
5050
```
5151

52-
This should display an output similar to this. jq has also automatically extracted these values for use in the creation of the cluster.
52+
This should display an output similar to this. `jq` has also automatically extracted these values for use in the creation of the cluster.
5353
```
5454
{
5555
"appId": "58b21231-3dd7-4546-bd37-9df88812331f",
@@ -61,21 +61,21 @@ This should display an output similar to this. jq has also automatically extrac
6161

6262
## Create Your 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+
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:
6565

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

6868
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.
6969

7070
```
71-
RG_NAME=myresourcegroup
72-
az resource group create --name "${RG_NAME}" --location southcentralus
71+
$ export RG_NAME=myresourcegroup
72+
$ az resource group create --name "${RG_NAME}" --location southcentralus
7373
```
7474

7575
2. Execute the command to deploy the cluster. The dns-prefix and ssh-key-value must be replaced with your own values.
7676

7777
```
78-
az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
78+
$ az acs create --resource-group="${RG_NAME}" --location="southcentralus" \
7979
--service-principal="${SP_NAME}" \
8080
--client-secret="${SP_PASS}" \
8181
--orchestrator-type=kubernetes --master-count=1 --agent-count=2 \
@@ -159,32 +159,35 @@ The Kubernetes cluster will take a few minutes to complete provisioning and conf
159159

160160
## Connect to your Kubernetes Cluster
161161

162-
1. Find hostname for the master
163-
`az acs list`
164-
Part of the way down the output, copy the fqdn value for your master dns name which will end with cloudapp.azure.com.
162+
Find the fully qualified domain name (FQDN) for the Kubernetes master:
163+
165164
```
165+
$ az acs list
166+
# Part of the way down the output, find and copy the FQDN for the master, it should end with `cloudapp.azure.com`:
166167
"masterProfile": {
167168
"count": 1,
168169
"dnsPrefix": "asc-deis-k8s-masters",
169170
"fqdn": "mydnsprefix.myregion.cloudapp.azure.com"
170171
},
171172
```
172173

173-
2. Download the Kubeconfig from the master to your terminal<br>
174-
Update the proper SSH key and fqdn name and then execute:<br>
175-
`scp -i ~/.ssh/id_rsa k8sadmin@mydnsprefix.myregion.cloudapp.azure.com:.kube/config ~/.kube/k8sanddeis.config`<br>
176-
Say yes to the prompt.
174+
Download the Kubeconfig from the master to your local machine, make sure to use the right SSH identity and master FQDN:
175+
177176
```
177+
$ scp -i ~/.ssh/id_rsa k8sadmin@mydnsprefix.myregion.cloudapp.azure.com:.kube/config ~/.kube/k8sanddeis.config
178178
The authenticity of host 'mydnsprefix.myregion.cloudapp.azure.com (40.78.71.181)' can't be established.
179179
ECDSA key fingerprint is a0:09:ff:59:83:47:70:38:d4:0d:68:b2:cf:0f:2a:cf.
180180
Are you sure you want to continue connecting (yes/no)? yes
181181
Warning: Permanently added 'mydnsprefix.myregion.cloudapp.azure.com,40.78.71.181' (ECDSA) to the list of known hosts.
182182
```
183183

184-
3. Set KUBECONFIG environment value
185-
`export KUBECONFIG=~/.kube/k8sanddeis.config`
184+
Point `kubectl` at the kubernetes configuration file by setting the `KUBECONFIG` environment value:
185+
186+
```
187+
export KUBECONFIG=~/.kube/k8sanddeis.config
188+
```
186189

187-
4. Verify you can connect to your Kubernetes cluster by running `kubectl cluster-info`
190+
Verify you can connect to your Kubernetes cluster by running `kubectl cluster-info`
188191

189192
```
190193
$ kubectl cluster-info

0 commit comments

Comments
 (0)