mirror of
https://github.com/kelseyhightower/kubernetes-the-hard-way.git
synced 2025-12-16 09:48:57 +03:00
Adding Azure
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user