Autoscale
AKS autoscale setup and test
Setup the cluster
Enable AZ CLI preview.
az extension add --name aks-previewSet your subscription.
az account set --subscription "MY-SUBSCRIPTION"Create a Resource Group.
az group create \
--location brazilsouth \
--name my-test-autoscale \
--subscription "MY-SUBSCRIPTION"Create the cluster.
az aks create \
--name my-test-autoscale \
--resource-group my-test-autoscale \
--dns-name-prefix my-test-autoscale \
--dns-service-ip 10.0.0.10 \
--docker-bridge-address 172.17.0.1/16 \
--kubernetes-version 1.14.8 \
--location brazilsouth \
--network-plugin kubenet \
--node-count 3 \
--node-osdisk-size 128 \
--node-vm-size Standard_D4s_v3 \
--pod-cidr 10.244.0.0/16 \
--service-cidr 10.0.0.0/16 \
--subscription "MY-SUBSCRIPTION" \
--enable-cluster-autoscaler \
--max-count 5 \
--min-count 3Stress test
Create a few deployments.
Scale the deployments.
Get the public IPs.
Trigger resource usage.
References
https://github.com/kubernetes/kubernetes/tree/master/test/images/resource-consumer
Debug and troubleshoot
Log Analytics
Create a Log Analytics Workspace .
Add Diagnostic Settings on your AKS Resource Group (not the MC_...)
Go to logs and query.
References
https://docs.microsoft.com/en-us/azure/aks/view-master-logs#enable-diagnostics-logs
Configmap
Check out autoscaler configmap.
Troubleshoot
Last updated