Skip to content

Commit

Permalink
Merge pull request #16 from prabhatpankaj/patch-1
Browse files Browse the repository at this point in the history
Update 11-pod-network-routes.md
  • Loading branch information
ivanfioravanti authored Aug 15, 2018
2 parents 42c69bd + 4a80b7e commit 3fb4104
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/11-pod-network-routes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In this section you will gather the information required to create routes in the
Print the internal IP address and Pod CIDR range for each worker instance:

```shell
for instance in worker-0 worker-1 worker-2; do
for instance in worker-0; do
PRIVATE_IP_ADDRESS=$(az vm show -d -g kubernetes -n ${instance} --query "privateIps" -otsv)
POD_CIDR=$(az vm show -g kubernetes --name ${instance} --query "tags" -o tsv)
echo $PRIVATE_IP_ADDRESS $POD_CIDR
Expand All @@ -24,8 +24,6 @@ done
```shell
10.240.0.20 10.200.0.0/24
10.240.0.21 10.200.1.0/24
10.240.0.22 10.200.2.0/24
```

## Routes
Expand All @@ -44,7 +42,7 @@ az network vnet subnet update -g kubernetes \
```

```shell
for i in 0 1 2; do
for i in 0; do
az network route-table route create -g kubernetes \
-n kubernetes-route-10-200-${i}-0-24 \
--route-table-name kubernetes-routes \
Expand All @@ -66,8 +64,6 @@ az network route-table route list -g kubernetes --route-table-name kubernetes-ro
AddressPrefix Name NextHopIpAddress NextHopType ProvisioningState ResourceGroup
--------------- ------------------------------ ------------------ ---------------- ------------------- ---------------
10.200.0.0/24 kubernetes-route-10-200-0-0-24 10.240.0.20 VirtualAppliance Succeeded kubernetes
10.200.1.0/24 kubernetes-route-10-200-1-0-24 10.240.0.21 VirtualAppliance Succeeded kubernetes
10.200.2.0/24 kubernetes-route-10-200-2-0-24 10.240.0.22 VirtualAppliance Succeeded kubernetes
```

Next: [Deploying the DNS Cluster Add-on](12-dns-addon.md)

0 comments on commit 3fb4104

Please sign in to comment.