adding windows commands

Signed-off-by: Mike Stevenson <Mike.Stevenson@us.logicalis.com>
pull/252/head
Mike Stevenson 2017-10-24 16:29:42 -07:00
parent b2921f5be9
commit 197fc5029c
1 changed files with 19 additions and 0 deletions

View File

@ -12,6 +12,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: Print the internal IP address and Pod CIDR range for each worker instance:
#### Linux & OS X
``` ```
for instance in worker-0 worker-1 worker-2; do for instance in worker-0 worker-1 worker-2; do
gcloud compute instances describe ${instance} \ gcloud compute instances describe ${instance} \
@ -19,6 +20,13 @@ for instance in worker-0 worker-1 worker-2; do
done done
``` ```
#### Windows
```
@('worker-0','worker-1','worker-2') | ForEach-Object {
gcloud compute instances describe $_ `
--format 'value[separator=" "](networkInterfaces[0].networkIP,metadata.items[0].value)'
}
```
> output > output
``` ```
@ -31,6 +39,7 @@ done
Create network routes for each worker instance: Create network routes for each worker instance:
#### Linux & OS X
``` ```
for i in 0 1 2; do for i in 0 1 2; do
gcloud compute routes create kubernetes-route-10-200-${i}-0-24 \ gcloud compute routes create kubernetes-route-10-200-${i}-0-24 \
@ -40,6 +49,16 @@ for i in 0 1 2; do
done done
``` ```
#### Windows
```
@(0, 1, 2) | ForEach-Object {
gcloud compute routes create kubernetes-route-10-200-${_}-0-24 `
--network kubernetes-the-hard-way `
--next-hop-address 10.240.0.2${_} `
--destination-range 10.200.${_}.0/24
}
```
List the routes in the `kubernetes-the-hard-way` VPC network: List the routes in the `kubernetes-the-hard-way` VPC network:
``` ```