diff --git a/docs/01-infrastructure-azure.md b/docs/01-infrastructure-azure.md index 95fbaf1..4de5138 100644 --- a/docs/01-infrastructure-azure.md +++ b/docs/01-infrastructure-azure.md @@ -24,7 +24,7 @@ jumpboxDnsLabel="the-hard-way-jumpbox" workersDnsLabel="the-hard-way" #storage account used by jumpbox + controllers + Etcd VMs -controlPlaneStorageAccount="thehardwaycsa" +controlPlaneStorageAccount="thehardwaycsa" #storage account used by workers VMs workersStorageAccount="thehardwaywsa" @@ -108,11 +108,11 @@ azure network vnet subnet set \ --vnet-name the-hard-way-net \ --name kubernetes \ --network-security-group-name the-hard-way-nsg \ - --route-table-name the-hard-way-rtable + --route-table-name the-hard-way-rtable ``` -Create Public IP + DNS Lable for JumpBox +Create Public IP + DNS label for JumpBox ``` azure network public-ip create \ @@ -297,10 +297,10 @@ azure vm create \ ### Kubernetes Controllers -#### Workers Internal Load Balancer +#### Controllers Internal Load Balancer -Create load balancer +Create controllers load balancer ``` azure network lb create \ @@ -309,7 +309,7 @@ azure network lb create \ --location "West Us" ``` -Create & the front-end IP to the internal load balancer +Create & assign the front-end private IP to the internal load balancer ``` azure network lb frontend-ip create \ @@ -331,7 +331,7 @@ clbbackendPoolId=$(azure network lb address-pool create \ --json | jq -r '.id') ``` -#### Create Controllers Availablity set +#### Create controllers availability set ``` azure availset create \ @@ -474,7 +474,7 @@ azure network lb create \ --location "West Us" ``` -Create & the front-end IP to the load balancer +Assign the front-end public IP to the load balancer ``` azure network lb frontend-ip create \ @@ -651,7 +651,7 @@ ssh -i ./keys/cluster \ thehardway@$jumpboxDnsLabel.westus.cloudapp.azure.com ``` -### Copy the Private Key to Jumpbox +### Copy the cluster private key to Jumpbox ``` scp -i ./keys/cluster \ diff --git a/docs/02-certificate-authority.md b/docs/02-certificate-authority.md index 300febe..dde628e 100644 --- a/docs/02-certificate-authority.md +++ b/docs/02-certificate-authority.md @@ -139,10 +139,11 @@ KUBERNETES_PUBLIC_ADDRESS=$(aws elb describe-load-balancers \ #### Azure ``` -KUBERNETES_PUBLIC_ADDRESS=$(azure network public-ip show \ +KUBERNETES_PUBLIC_ADDRESS=$(azure network lb show \ --resource-group the-hard-way \ - --name the-hard-way-workers \ - --json | jq -r '.dnsSettings.fqdn') + --name the-hard-way-clb \ + --json | \ + jq -r '.frontendIPConfigurations[0].privateIPAddress') ``` --- @@ -252,7 +253,7 @@ done ``` ### Azure -If you used the jumpbox to configure the CA +If you are using the jumpbox to create the certificates ``` for host in ${KUBERNETES_HOSTS[*]}; do scp -i ./cluster ca.pem kubernetes-key.pem kubernetes.pem \ diff --git a/docs/03-etcd.md b/docs/03-etcd.md index 069f7a1..f2eae9d 100644 --- a/docs/03-etcd.md +++ b/docs/03-etcd.md @@ -95,6 +95,10 @@ INTERNAL_IP=$(curl -s -H "Metadata-Flavor: Google" \ INTERNAL_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) ``` +#### Azure +``` +INTERNAL_IP=$(ifconfig eth0 | grep 'inet ' | cut -d: -f2 | awk '{print $1}') +``` --- Set the etcd name: