Cheapest Way to Create Temporary Azure Kubernetes Cluster for Testing Code?

Siegfried Heintze 1,861 Reputation points
2020-08-03T17:36:46.943+00:00

Since I'm trying to stretch my azure dollars and since I'm not in production yet, I'm creating kubernetes clusters, deploying some code, testing it and deleting the cluster with this command. I'm creating with this command:

az.cmd aks create -g rg-test -n aks-test --generate-ssh-keys

Might there be a way to save a few cents by explicitly specifying some VMs that are cheaper than the default VMs this command is using to create my kubernetes cluster?

Thanks

Siegfried

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. vipullag-MSFT 25,441 Reputation points
    2020-08-05T11:02:43.397+00:00

    @Siegfried Heintze

    You can specify the VM size for nodes but not for the master nodes.

    You can use az aks create with --node-vm-size argument to do this. Please check the details here.
    Please note that System node pool must use VM sku with more than 2 cores and 4GB memory.

    az aks create --resource-group myRG --name testakscluster --node-count 1 --node-vm-size Standard_DS3_v2  
    

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics.

    0 comments No comments