Repository files navigation Azure Kubernetes Service (AKS) scaling demo using AKS Automatic + Spot instances
AKS Automatic cluster
Node Auto Provisioning (NAP) with a spot NodePool
Clone the repository locally.
Login using az login.
Make sure kubectl is installed. You can install using az aks install-cli.
Make sure hey is installed if you want to use it for the load test.
Run ./setup.sh in a Bash shell, preferably in Windows Subsystem for Linux (WSL) .
/workout: generates long strings and stores them in memory.
/metrics: Prometheus metrics.
/stats: .NET stats.
After deployment observe the node claims being created
kubectl get nodeclaims -o wide -w
Verify that the deployment is available and running
kubectl get deployment serverloader -n test -w
When the deployment is running, run a load test against the /workout endpoint. You can use Azure Load Testing or hey.
hey -n 240000 -c 300 http://${SERVICE_IP} /workout"
Observe Node Auto Provisioning adding more nodes to the cluster.
kubectl get events -n test --field-selector source=karpenter -w
About
No description, website, or topics provided.
Resources
Code of conduct
Stars
Watchers
Forks
You can’t perform that action at this time.