1
0
mirror of https://github.com/taigrr/nats.docs synced 2025-01-18 04:03:23 -08:00

Update creating cluster with external in AKS

This commit is contained in:
Waldemar Quevedo 2021-01-11 13:20:24 -08:00 committed by GitHub
parent 0386ebb6e9
commit ab7ee60c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,17 +54,18 @@ az provider register -n Microsoft.ContainerService
# Create resource group and 3 node cluster
az group create --name nats --location westus
az aks create --resource-group nats --name nats --node-count 3 --node-vm-size Standard_DS1_v2
az aks create \
--resource-group nats \
--name nats \
--node-count 3 \
--node-vm-size Standard_DS2_v2 \
--load-balancer-sku basic \
--enable-node-public-ip
az aks get-credentials --resource-group nats --name nats
```
_Note_ In order to be able to access NATS externally you need to provision public IPs for your cluster installing the following component [dgkanatsios/AksNodePublicIPController](https://github.com/dgkanatsios/AksNodePublicIPController):
```bash
kubectl create -n kube-system -f https://raw.githubusercontent.com/dgkanatsios/AksNodePublicIPController/7846c78f77dc5cd4b43629bb5cb7ff3818594aee/deploy.yaml
```
After this component has been installed, eventually your cluster will be provided ExternalIPs that the NATS cluster can advertise to clients:
Eventually your cluster will be provided ExternalIPs that the NATS cluster can advertise to clients:
```text
kubectl get nodes -o wide