Skip to content

Commit d430e42

Browse files
committed
docs(azure): streamline azure boot process
1 parent 70f50a5 commit d430e42

2 files changed

Lines changed: 10 additions & 20 deletions

File tree

src/quickstart/install-cli-tools.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ Install the latest `helm` cli for Linux or Mac OS X by following the
3434

3535
## Step 2: Boot a Kubernetes Cluster and Install Deis Workflow
3636

37-
There are many ways to boot and run Kubernetes. You may choose to get up and running in cloud environments or locally on
38-
your laptop.
37+
There are many ways to boot and run Kubernetes. You may choose to get up and running in cloud environments or locally on your laptop.
3938

4039
Cloud-based options:
4140

4241
* [Google Container Engine](provider/gke/boot.md): provides a managed Kubernetes environment, available with a few clicks.
4342
* [Amazon Web Services](provider/aws/boot.md): uses Kubernetes upstream `kube-up.sh` to boot a cluster on AWS EC2.
43+
* [Azure Container Service](provider/azure-acs/boot.md): provides a managed Kubernetes environment.
4444

4545
If you would like to test on your local machine follow our guide for [Vagrant](provider/vagrant/boot.md).
4646

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

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,14 @@ $ az group create --name "${RG_NAME}" --location "${DC_LOCATION}"
8484
Execute the command to deploy the cluster. The `dns-prefix` and `ssh-key-value` must be replaced with your own values.
8585

8686
```
87+
$ export SERVICE_NAME=myacs
8788
$ az acs create --resource-group="${RG_NAME}" --location="${DC_LOCATION}" \
8889
--service-principal="${SP_NAME}" \
8990
--client-secret="${SP_PASS}" \
9091
--orchestrator-type=kubernetes --master-count=1 --agent-count=2 \
9192
--agent-vm-size="Standard_D2_v2" \
9293
--admin-username="k8sadmin" \
93-
--name="k8sanddeis" --dns-prefix="mydnsprefix" \
94+
--name="${SERVICE_NAME}" --dns-prefix="mydnsprefix" \
9495
--ssh-key-value @/home/myusername/.ssh/id_rsa.pub
9596
```
9697

@@ -167,27 +168,16 @@ The Kubernetes cluster will take a few minutes to complete provisioning and conf
167168

168169
## Connect to the ACS Kubernetes Cluster
169170

170-
Retrieve the fully qualified domain name (FQDN) for the Kubernetes master.
171+
`kubectl` is the Kubernetes command line client. If you don't already have it installed, you can install it with:
171172

172-
```
173-
$ export K8S_FQDN=`az acs list -g $RG_NAME --query [0].masterProfile.fqdn --output tsv`
174-
$ echo $K8S_FQDN
175-
```
176-
177-
Download the Kubeconfig from the master to the local machine, make sure to use the same SSH credentials used to create the cluster:
178-
179-
```
180-
$ scp -i ~/.ssh/id_rsa k8sadmin@$K8S_FQDN:.kube/config ~/.kube/k8sanddeis.config
181-
The authenticity of host 'mydnsprefix.myregion.cloudapp.azure.com (40.78.71.181)' can't be established.
182-
ECDSA key fingerprint is a0:09:ff:59:83:47:70:38:d4:0d:68:b2:cf:0f:2a:cf.
183-
Are you sure you want to continue connecting (yes/no)? yes
184-
Warning: Permanently added 'mydnsprefix.myregion.cloudapp.azure.com,40.78.71.181' (ECDSA) to the list of known hosts.
173+
```console
174+
az acs kubernetes install-cli
185175
```
186176

187-
Point `kubectl` at the kubernetes configuration file by setting the `KUBECONFIG` environment value:
177+
Download the master kubernetes cluster configuration to the ~/.kube/config file by running the following command:
188178

189-
```
190-
export KUBECONFIG=~/.kube/k8sanddeis.config
179+
```console
180+
az acs kubernetes get-credentials --resource-group=$RG_NAME --name=$SERVICE_NAME
191181
```
192182

193183
Verify connectivity to the new ACS Kubernetes cluster by running `kubectl cluster-info`

0 commit comments

Comments
 (0)