@@ -84,13 +84,14 @@ $ az group create --name "${RG_NAME}" --location "${DC_LOCATION}"
8484Execute 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
193183Verify connectivity to the new ACS Kubernetes cluster by running ` kubectl cluster-info `
0 commit comments