completed etcd config for Azure + fixes on infrastructure-azure file

pull/79/head
khenidak 2016-09-30 12:44:38 -07:00
parent ca0913f4f3
commit e42c2b4aae
3 changed files with 18 additions and 13 deletions

View File

@ -112,7 +112,7 @@ azure network vnet subnet set \
``` ```
Create Public IP + DNS Lable for JumpBox Create Public IP + DNS label for JumpBox
``` ```
azure network public-ip create \ azure network public-ip create \
@ -297,10 +297,10 @@ azure vm create \
### Kubernetes Controllers ### Kubernetes Controllers
#### Workers Internal Load Balancer #### Controllers Internal Load Balancer
Create load balancer Create controllers load balancer
``` ```
azure network lb create \ azure network lb create \
@ -309,7 +309,7 @@ azure network lb create \
--location "West Us" --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 \ azure network lb frontend-ip create \
@ -331,7 +331,7 @@ clbbackendPoolId=$(azure network lb address-pool create \
--json | jq -r '.id') --json | jq -r '.id')
``` ```
#### Create Controllers Availablity set #### Create controllers availability set
``` ```
azure availset create \ azure availset create \
@ -474,7 +474,7 @@ azure network lb create \
--location "West Us" --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 \ azure network lb frontend-ip create \
@ -651,7 +651,7 @@ ssh -i ./keys/cluster \
thehardway@$jumpboxDnsLabel.westus.cloudapp.azure.com thehardway@$jumpboxDnsLabel.westus.cloudapp.azure.com
``` ```
### Copy the Private Key to Jumpbox ### Copy the cluster private key to Jumpbox
``` ```
scp -i ./keys/cluster \ scp -i ./keys/cluster \

View File

@ -139,10 +139,11 @@ KUBERNETES_PUBLIC_ADDRESS=$(aws elb describe-load-balancers \
#### Azure #### Azure
``` ```
KUBERNETES_PUBLIC_ADDRESS=$(azure network public-ip show \ KUBERNETES_PUBLIC_ADDRESS=$(azure network lb show \
--resource-group the-hard-way \ --resource-group the-hard-way \
--name the-hard-way-workers \ --name the-hard-way-clb \
--json | jq -r '.dnsSettings.fqdn') --json | \
jq -r '.frontendIPConfigurations[0].privateIPAddress')
``` ```
--- ---
@ -252,7 +253,7 @@ done
``` ```
### Azure ### 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 for host in ${KUBERNETES_HOSTS[*]}; do
scp -i ./cluster ca.pem kubernetes-key.pem kubernetes.pem \ scp -i ./cluster ca.pem kubernetes-key.pem kubernetes.pem \

View File

@ -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) 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: Set the etcd name: