Adding Azure

This commit is contained in:
Jonathan Carter
2017-01-14 10:00:06 -08:00
parent 753e71bac8
commit 28bb2663c4
10 changed files with 148 additions and 7 deletions

View File

@@ -79,6 +79,29 @@ NODE_PUBLIC_IP=$(aws ec2 describe-instances \
jq -j '.Reservations[].Instances[].PublicIpAddress')
```
#### Azure
```shell
az network nsg rule create -g kubernetes \
-n kubernetes-allow-nginx \
--access allow \
--destination-address-prefix '*' \
--destination-port-range ${NODE_PORT} \
--direction inbound \
--nsg-name kubernetes-nsg \
--protocol tcp \
--source-address-prefix '*' \
--source-port-range '*' \
--priority 1002
```
Grab the `EXTERNAL_IP` for one of the worker nodes:
```
NODE_PUBLIC_IP=$(gcloud compute instances describe worker0 \
--format 'value(networkInterfaces[0].accessConfigs[0].natIP)')
```
---
Test the nginx service using cURL: