Skip to content

Commit

Permalink
fix aks script
Browse files Browse the repository at this point in the history
Signed-off-by: denis-tingaikin <[email protected]>
  • Loading branch information
denis-tingaikin committed Nov 20, 2021
1 parent 745e88f commit 3d5d6c1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/aks/aks-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ else
az aks create \
--resource-group "$AZURE_RESOURCE_GROUP" \
--name "$AZURE_CLUSTER_NAME" \
--node-count 1 \
--node-count 2 \
--node-vm-size Standard_B2s \
--generate-ssh-keys \
--debug \
Expand All @@ -65,7 +65,7 @@ else
\"agentPoolProfiles\":
[{
\"name\": \"nodepool1\",
\"count\": 1,
\"count\": 2,
\"orchestratorVersion\": \"1.21.2\",
\"vmSize\": \"Standard_B2s\",
\"osType\": \"Linux\",
Expand Down Expand Up @@ -95,7 +95,8 @@ echo "done" || exit 1
echo "Creating Inbound traffic rule"
NODE_RESOURCE_GROUP=$(az aks show -g "$AZURE_RESOURCE_GROUP" -n "$AZURE_CLUSTER_NAME" --query nodeResourceGroup -o tsv)
NSG_NAME=$(nsg_polling "$NODE_RESOURCE_GROUP")
az network nsg rule create --name "${NSG_NAME}-rule" \
echo "NSG_NAME=$NSG_NAME"
az network nsg rule create --name "nsg-rule" \
--nsg-name "$NSG_NAME" \
--priority 100 \
--resource-group "$NODE_RESOURCE_GROUP" \
Expand All @@ -113,4 +114,4 @@ az aks get-credentials \
--name "$AZURE_CLUSTER_NAME" \
--resource-group "$AZURE_RESOURCE_GROUP" \
--file "$AZURE_CREDENTIALS_PATH" \
--overwrite-existing || exit 1
--overwrite-existing || exit 1

0 comments on commit 3d5d6c1

Please sign in to comment.