# Create a 3 node Kubernetes cluster. One node in each of the region's three zones.gcloudcontainerclusterscreatenats-k8s-cluster\--project$YOUR_GOOGLE_CLOUD_PROJECT\--regionus-west2\--num-nodes1\--machine-typen1-standard-2
Note that since this is a regional cluster we are specifying --num-nodes 1 which will create a kubelet on 3 different zones. If you are creating a single-zone cluster but want 3 nodes then you have to specify --num-nodes 3.
# Create 3 node Kubernetes clustereksctlcreatecluster--namenats-k8s-cluster\--nodes3\--node-type=t3.large\--region=eu-west-1# Get the credentials for your clustereksctlutilswrite-kubeconfig--name$YOUR_EKS_NAME--regioneu-west-1
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:
# In case not done already, register to use some services:
az login
az provider register -n Microsoft.Network
az provider register -n Microsoft.Storage
az provider register -n Microsoft.Compute
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 get-credentials --resource-group nats --name nats