File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ stages:
117117 new_count=${NODE_COUNT_UP} # Do not exceed NODE_COUNT_UP
118118 fi
119119 echo "Scaling up nodes to $new_count"
120- az aks nodepool scale --name nodepool1 --cluster-name ${CLUSTER} --resource-group ${RESOURCE_GROUP} --node-count $new_count
120+ make -C ./hack/ aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODE_COUNT= $new_count
121121 if [ $new_count -eq ${NODE_COUNT_UP} ]; then
122122 echo "Node count reached ${NODE_COUNT_UP}"
123123 break
@@ -454,8 +454,7 @@ stages:
454454 set -ex
455455 az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
456456 echo "Scaling to 5 nodes"
457- vmss_name=$(az vmss list -g MC_${RESOURCE_GROUP}_${CLUSTER}_$(LOCATION) --query "[].name" -o tsv)
458- az aks nodepool scale --name nodepool1 --cluster-name ${CLUSTER} --resource-group ${RESOURCE_GROUP} --node-count 5
457+ make -C ./hack/aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODE_COUNT=$new_count
459458 kubectl get node
460459 name : " ScaleDown"
461460 displayName : " Scale down to 5 Nodes"
Original file line number Diff line number Diff line change @@ -467,5 +467,5 @@ down: ## Delete the cluster
467467restart-vmss : # # Restarts the nodes in the cluster
468468 $(AZCLI ) vmss restart -g MC_${GROUP} _${CLUSTER} _${REGION} --name $(VMSS_NAME )
469469
470- scale-vmss : # # Scales the nodes in the cluster
471- $(AZCLI ) vmss scale -g MC_ ${ GROUP} _ ${CLUSTER} _ ${REGION} --name $(VMSS_NAME ) --new-capacity $(NODE_COUNT )
470+ scale-nodes : # # Scales the nodes in the cluster
471+ $(AZCLI ) aks nodepool scale -g $( GROUP ) -n $(CLUSTER ) --node-count $(NODE_COUNT )
You can’t perform that action at this time.
0 commit comments