Skip to content

Commit dfb32b8

Browse files
committed
add nodepool name to scale target
1 parent f81b77e commit dfb32b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pipelines/cni/cilium/cilium-scale-test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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-
make -C ./hack/aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODE_COUNT=$new_count
120+
make -C ./hack/aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODEPOOL=nodepool1 NODE_COUNT=$new_count
121121
if [ $new_count -eq ${NODE_COUNT_UP} ]; then
122122
echo "Node count reached ${NODE_COUNT_UP}"
123123
break
@@ -454,7 +454,7 @@ stages:
454454
set -ex
455455
az aks get-credentials --resource-group ${RESOURCE_GROUP} --name ${CLUSTER}
456456
echo "Scaling to 5 nodes"
457-
make -C ./hack/aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODE_COUNT=5
457+
make -C ./hack/aks scale-nodes AZCLI=az GROUP=${RESOURCE_GROUP} CLUSTER=${CLUSTER} NODEPOOL=nodepool1 NODE_COUNT=5
458458
kubectl get node
459459
name: "ScaleDown"
460460
displayName: "Scale down to 5 Nodes"

hack/aks/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,4 +468,4 @@ restart-vmss: ## Restarts the nodes in the cluster
468468
$(AZCLI) vmss restart -g MC_${GROUP}_${CLUSTER}_${REGION} --name $(VMSS_NAME)
469469

470470
scale-nodes: ## Scales the nodes in the cluster
471-
$(AZCLI) aks nodepool scale -g $(GROUP) -n $(CLUSTER) --node-count $(NODE_COUNT)
471+
$(AZCLI) aks nodepool scale --resource-group $(GROUP) --cluster-name $(CLUSTER) --name $(NODEPOOL) --node-count $(NODE_COUNT)

0 commit comments

Comments
 (0)