updated lb setup

pull/709/head
Xander Grzywinski 2019-05-24 12:30:44 -07:00
parent 3f39873d44
commit c64bac4284
1 changed files with 22 additions and 3 deletions

View File

@ -161,14 +161,16 @@ az network lb create \
--resource-group kubernetes-the-hard-way \ --resource-group kubernetes-the-hard-way \
--backend-pool-name kubernetes-the-hard-way-lb-pool \ --backend-pool-name kubernetes-the-hard-way-lb-pool \
--public-ip-address kubernetes-the-hard-way-ip --public-ip-address kubernetes-the-hard-way-ip
```
```
az network lb probe create \ az network lb probe create \
--lb-name kubernetes-the-hard-way-lb \ --lb-name kubernetes-the-hard-way-lb \
--resource-group kubernetes-the-hard-way \ --resource-group kubernetes-the-hard-way \
--name kubernetes-the-hard-way-lb-probe \ --name kubernetes-the-hard-way-lb-probe \
--port 80 \ --port 80 \
--protocol tcp --protocol tcp
```
```
az network lb rule create \ az network lb rule create \
--resource-group kubernetes-the-hard-way \ --resource-group kubernetes-the-hard-way \
--lb-name kubernetes-the-hard-way-lb \ --lb-name kubernetes-the-hard-way-lb \
@ -188,6 +190,14 @@ The compute instances in this lab will be provisioned using [Ubuntu Server](http
Create three network interfaces and three compute instances which will host the Kubernetes control plane: Create three network interfaces and three compute instances which will host the Kubernetes control plane:
```
for i in 0 1 2; do
az network public-ip create \
--name controller-${i}-ip \
--resource-group kubernetes-the-hard-way \
--allocation-method Static
done
```
``` ```
for i in 0 1 2; do for i in 0 1 2; do
az network nic create \ az network nic create \
@ -196,6 +206,7 @@ for i in 0 1 2; do
--vnet-name kubernetes-the-hard-way-vnet \ --vnet-name kubernetes-the-hard-way-vnet \
--subnet kubernetes-the-hard-way-subnet \ --subnet kubernetes-the-hard-way-subnet \
--network-security-group kubernetes-the-hard-way-nsg \ --network-security-group kubernetes-the-hard-way-nsg \
--public-ip-address controller-${i}-ip
--private-ip-address 10.240.0.1${i} \ --private-ip-address 10.240.0.1${i} \
--lb-name kubernetes-the-hard-way-lb \ --lb-name kubernetes-the-hard-way-lb \
--lb-address-pools kubernetes-the-hard-way-lb-pool \ --lb-address-pools kubernetes-the-hard-way-lb-pool \
@ -226,6 +237,14 @@ Each worker instance requires a pod subnet allocation from the Kubernetes cluste
Create three compute instances which will host the Kubernetes worker nodes: Create three compute instances which will host the Kubernetes worker nodes:
```
for i in 0 1 2; do
az network public-ip create \
--name worker-${i}-ip \
--resource-group kubernetes-the-hard-way \
--allocation-method Static
done
```
``` ```
for i in 0 1 2; do for i in 0 1 2; do
az network nic create \ az network nic create \
@ -234,6 +253,7 @@ for i in 0 1 2; do
--vnet-name kubernetes-the-hard-way-vnet \ --vnet-name kubernetes-the-hard-way-vnet \
--subnet kubernetes-the-hard-way-subnet \ --subnet kubernetes-the-hard-way-subnet \
--network-security-group kubernetes-the-hard-way-nsg \ --network-security-group kubernetes-the-hard-way-nsg \
--public-ip worker-${i}-ip
--private-ip-address 10.240.0.2${i} \ --private-ip-address 10.240.0.2${i} \
--ip-forwarding true --ip-forwarding true
done done
@ -245,7 +265,6 @@ for i in 0 1 2; do
--resource-group kubernetes-the-hard-way --resource-group kubernetes-the-hard-way
--no-wait \ --no-wait \
--nics worker-${i}-nic --nics worker-${i}-nic
--public-ip-address-allocation Static
--image Canonical:UbuntuServer:18.04-LTS:latest --image Canonical:UbuntuServer:18.04-LTS:latest
--admin-username azureuser --admin-username azureuser
--generate-ssh-keys --generate-ssh-keys