Skip to content

Commit fa0046f

Browse files
authored
Adding kubectl commands to edit AKS cluster
1 parent d6d929b commit fa0046f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/install.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ az vmss identity assign --resource-group $VMSSresourceGroup --name $VMSSnodepool
5656
#Update VMSS instances
5757
az vmss update-instances -g $VMSSresourceGroup -n $VMSSnodepoolName --instance-ids *
5858

59+
# Get AKS credentials
60+
az aks get-credentials --resource-group $resourceGroup --name $aksName
61+
62+
#Set the custom label to the workload node pool
63+
kubectl get nodes -l agentpool=$nodePoolName -o name | % { kubectl label $_ workload=true }
64+
5965
# Create CosmosDB account (SQL API)
6066
az cosmosdb create --name $accountName --resource-group $resourceGroup --locations regionName=$location failoverPriority=0 isZoneRedundant=False --kind GlobalDocumentDB
6167

0 commit comments

Comments
 (0)