Complete the code to specify the node count for the node pool.
az aks nodepool add --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --node-count [1]The --node-count parameter sets the number of nodes in the node pool. Setting it to 1 creates a single node.
Complete the code to enable autoscaling for the node pool.
az aks nodepool update --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --enable-cluster-autoscaler [1]Autoscaling requires specifying minimum and maximum node counts. Here, minimum is 1 and maximum is 3 nodes.
Fix the error in the command to scale the node pool to 4 nodes.
az aks nodepool scale --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --node-count [1]The --node-count must be a positive integer representing the desired number of nodes. 4 is valid to scale up to four nodes.
Fill both blanks to create a node pool with spot instances and a max price of -1 (unlimited).
az aks nodepool add --resource-group myResourceGroup --cluster-name myAKSCluster --name spotpool --priority [1] --spot-max-price [2]
Setting --priority to 'Spot' enables spot instances. The --spot-max-price of -1 means unlimited price.
Fill all four blanks to update a node pool to enable autoscaling with min 2 nodes and max 6 nodes.
az aks nodepool update --resource-group myResourceGroup --cluster-name myAKSCluster --name mynodepool --enable-cluster-autoscaler [1] [2] [3] [4]
To enable autoscaling, you specify --enable-cluster-autoscaler and set minimum and maximum counts with --min-count and --max-count. Here, min is 2 and max is 6.