Skip to content

Commit b08687b

Browse files
committed
auto get K8s master fqdn
1 parent c2f7f1c commit b08687b

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

  • src/quickstart/provider/azure-acs

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,22 +187,17 @@ The Kubernetes cluster will take a few minutes to complete provisioning and conf
187187

188188
## Connect to the ACS Kubernetes Cluster
189189

190-
Find the fully qualified domain name (FQDN) for the Kubernetes master:
190+
Retrieve the fully qualified domain name (FQDN) for the Kubernetes master.
191191

192192
```
193-
$ az acs list
194-
# Part of the way down the output, find and copy the FQDN for the master, it should end with `cloudapp.azure.com`:
195-
"masterProfile": {
196-
"count": 1,
197-
"dnsPrefix": "asc-deis-k8s-masters",
198-
"fqdn": "mydnsprefix.myregion.cloudapp.azure.com"
199-
},
193+
$ export K8S_FQDN=`az acs list -g $RG_NAME --query [0].masterProfile.fqdn --output tsv`
194+
$ echo $K8S_FQDN
200195
```
201196

202197
Download the Kubeconfig from the master to the local machine, make sure to use the right SSH identity and master FQDN:
203198

204199
```
205-
$ scp -i ~/.ssh/id_rsa k8sadmin@mydnsprefix.myregion.cloudapp.azure.com:.kube/config ~/.kube/k8sanddeis.config
200+
$ scp -i ~/.ssh/id_rsa k8sadmin@$K8S_FQDN:.kube/config ~/.kube/k8sanddeis.config
206201
The authenticity of host 'mydnsprefix.myregion.cloudapp.azure.com (40.78.71.181)' can't be established.
207202
ECDSA key fingerprint is a0:09:ff:59:83:47:70:38:d4:0d:68:b2:cf:0f:2a:cf.
208203
Are you sure you want to continue connecting (yes/no)? yes

0 commit comments

Comments
 (0)