Skip to content

Commit ba18248

Browse files
author
gitName
committed
User Feedback 427672 - Fix several code issues
1 parent 59fe396 commit ba18248

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

learn-pr/azure/aks-cluster-autoscaling/includes/3-exercise-cluster-autoscaler.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
## Enable the cluster autoscaler on an AKS cluster
22

33
1. Open the [Azure Cloud Shell](https://shell.azure.com) in your browser and select **Bash**.
4-
2. Create an Azure resource group using the `az group create` command.
4+
1. In the Cloud Shell window on the right side of the screen, select the **More** icon (**...**), then select **Settings** > **Go to Classic version**.
5+
1. Create an Azure resource group using the `az group create` command.
56

67
```azurecli-interactive
78
az group create --name myResourceGroup --location eastus
89
```
910
10-
3. Create a new Azure Kubernetes Service (AKS) cluster with the cluster autoscaler enabled using the `az aks create` command and the `--enable-cluster-autoscaler` flag.
11+
1. Create a new Azure Kubernetes Service (AKS) cluster with the cluster autoscaler enabled using the `az aks create` command and the `--enable-cluster-autoscaler` flag.
1112
1213
```azurecli-interactive
1314
az aks create --resource-group myResourceGroup --name myAKSCluster --enable-addons monitoring --enable-msi-auth-for-monitoring --enable-cluster-autoscaler --min-count 1 --max-count 10 --generate-ssh-keys
1415
```
1516
1617
It takes a few minutes to create the cluster.
1718
18-
4. Connect to your cluster using the `az aks get-credentials` command.
19+
1. Connect to your cluster using the `az aks get-credentials` command.
1920
2021
```azurecli-interactive
2122
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
2223
```
2324
24-
5. View the nodes in your cluster using the `kubectl get nodes` command.
25+
1. View the nodes in your cluster using the `kubectl get nodes` command.
2526
2627
```azurecli-interactive
2728
kubectl get nodes
@@ -44,13 +45,13 @@
4445
touch deployment.yml
4546
```
4647
47-
2. Open the manifest file using the `code` command.
48+
1. Open the manifest file using the `code` command.
4849
4950
```azurecli-interactive
5051
code deployment.yml
5152
```
5253
53-
3. Paste the following code into the manifest file.
54+
1. Paste the following code into the manifest file.
5455
5556
```yml
5657
apiVersion: apps/v1
@@ -82,7 +83,12 @@
8283
name: http
8384
```
8485
85-
4. Save the file and close the editor.
86+
1. Save the file and close the editor.
87+
1. Run the deployment by using the following code:
88+
89+
```azurecli-interactive
90+
kubectl apply -f deployment.yml
91+
```
8692
8793
## Update the cluster autoscaler profile
8894

0 commit comments

Comments
 (0)