You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> If no patch is specified, the cluster automatically upgrades to the specified minor version's latest GA patch. For example, setting `--kubernetes-version` to `1.21` results in the cluster upgrading to `1.21.9`.
3
+
> If no patch is specified, the cluster automatically upgrades to the specified minor version's latest GA patch. For example, setting `--kubernetes-version` to `1.28` results in the cluster upgrading to `1.28.9`.
4
4
>
5
5
> For more information, see [Supported Kubernetes minor version upgrades in AKS](../../supported-kubernetes-versions.md#alias-minor-version).
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-deploy-application.md
+30-20Lines changed: 30 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Kubernetes on Azure tutorial - Deploy an application to Azure Kubernetes Service (AKS)
3
3
description: In this Azure Kubernetes Service (AKS) tutorial, you deploy a multi-container application to your cluster using images stored in Azure Container Registry.
4
4
ms.topic: tutorial
5
-
ms.date: 02/20/2023
5
+
ms.date: 06/10/2024
6
6
ms.custom: mvc, devx-track-extended-azdevcli
7
7
#Customer intent: As a developer, I want to learn how to deploy apps to an Azure Kubernetes Service (AKS) cluster so that I can deploy and run my own applications.
8
8
---
@@ -57,11 +57,7 @@ In these tutorials, your Azure Container Registry (ACR) instance stores the cont
57
57
az acr list --resource-group myResourceGroup --query "[].{acrLoginServer:loginServer}" --output table
58
58
```
59
59
60
-
2. Make sure you're in the cloned *aks-store-demo* directory, and then open the manifest file with a text editor, such as `vi`.
61
-
62
-
```azurecli-interactive
63
-
vi aks-store-quickstart.yaml
64
-
```
60
+
2. Make sure you're in the cloned *aks-store-demo* directory, and then open the `aks-store-quickstart.yaml` manifest file with a text editor.
65
61
66
62
3. Update the `image` property for the containers by replacing *ghcr.io/azure-samples* with your ACR login server name.
67
63
@@ -79,21 +75,17 @@ In these tutorials, your Azure Container Registry (ACR) instance stores the cont
79
75
...
80
76
```
81
77
82
-
4. Save and close the file. In `vi`, use `:wq`.
78
+
4. Save and close the file.
83
79
84
80
### [Azure PowerShell](#tab/azure-powershell)
85
81
86
82
1. Get your login server address using the [`Get-AzContainerRegistry`][get-azcontainerregistry] cmdlet and query for your login server. Make sure you replace `<acrName>` with the name of your ACR instance.
3. View the application in action by opening a web browser to the external IP address of your service.
221
+
3. View the application in action by opening a web browser and navigating to the external IP address of your service: `http://<external-ip>`.
228
222
229
223
:::image type="content" source="./learn/media/quick-kubernetes-deploy-cli/aks-store-application.png" alt-text="Screenshot of AKS Store sample application." lightbox="./learn/media/quick-kubernetes-deploy-cli/aks-store-application.png":::
230
224
@@ -237,11 +231,27 @@ Navigate to your Azure portal to find your deployment information.
237
231
1. Open your [Resource Group][azure-rg] on the Azure portal
238
232
1. Navigate to the Kubernetes service for your cluster
239
233
1. Select `Services and Ingress` under `Kubernetes Resources`
240
-
1. Copy the External IP shown in the column for store-front
234
+
1. Copy the External IP shown in the column for the `store-front` service
241
235
1. Paste the IP into your browser and visit your store page
242
236
243
237
:::image type="content" source="./learn/media/quick-kubernetes-deploy-cli/aks-store-application.png" alt-text="Screenshot of AKS Store sample application." lightbox="./learn/media/quick-kubernetes-deploy-cli/aks-store-application.png":::
244
238
239
+
## Clean up resources
240
+
241
+
Since you validated the application's functionality, you can now remove the cluster from the application. We will deploy the application again in the next tutorial.
242
+
243
+
1. Stop and remove the container instances and resources using the [`docker-compose down`][docker-compose-down] command.
244
+
245
+
```console
246
+
kubectl delete -f aks-store-quickstart.yaml
247
+
```
248
+
249
+
1. Check that all the application pods have been removed:
250
+
251
+
```console
252
+
kubectl get pods
253
+
```
254
+
245
255
## Next steps
246
256
247
257
In this tutorial, you deployed a sample Azure application to a Kubernetes cluster in AKS. You learned how to:
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-deploy-cluster.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Kubernetes on Azure tutorial - Create an Azure Kubernetes Service (AKS) cluster
3
3
description: In this Azure Kubernetes Service (AKS) tutorial, you learn how to create an AKS cluster and use kubectl to connect to the Kubernetes main node.
4
4
ms.topic: tutorial
5
-
ms.date: 02/14/2024
5
+
ms.date: 06/10/2024
6
6
author: schaffererin
7
7
ms.author: schaffererin
8
8
@@ -18,7 +18,7 @@ Kubernetes provides a distributed platform for containerized applications. With
18
18
In this tutorial, part three of seven, you deploy a Kubernetes cluster in AKS. You learn how to:
19
19
20
20
> [!div class="checklist"]
21
-
21
+
>
22
22
> * Deploy an AKS cluster that can authenticate to an Azure Container Registry (ACR).
23
23
> * Install the Kubernetes CLI, `kubectl`.
24
24
> * Configure `kubectl` to connect to your AKS cluster.
@@ -98,15 +98,15 @@ For information about AKS resource limits and region availability, see [Quotas,
98
98
99
99
To allow an AKS cluster to interact with other Azure resources, the Azure platform automatically creates a cluster identity. In this example, the cluster identity is [granted the right to pull images][container-registry-integration] from the ACR instance you created in the previous tutorial. To execute the command successfully, you need to have an **Owner** or **Azure account administrator** role in your Azure subscription.
100
100
101
-
* Create an AKS cluster using the [`az aks create`][az aks create] command. The following example creates a cluster named *myAKSCluster* in the resource group named *myResourceGroup*. This resource group was created in the [previous tutorial][aks-tutorial-prepare-acr] in the *eastus* region.
101
+
* Create an AKS cluster using the [`az aks create`][az aks create] command. The following example creates a cluster named *myAKSCluster* in the resource group named *myResourceGroup*. This resource group was created in the [previous tutorial][aks-tutorial-prepare-acr] in the *eastus* region. We will continue to use the environment variable, `$ACRNAME`, that we set in the [previous tutorial][aks-tutorial-prepare-acr]. If you do not have this environment variable set, set it now to the same value you used previously.
102
102
103
103
```azurecli-interactive
104
104
az aks create \
105
105
--resource-group myResourceGroup \
106
106
--name myAKSCluster \
107
107
--node-count 2 \
108
108
--generate-ssh-keys \
109
-
--attach-acr <acrName>
109
+
--attach-acr $ACRNAME
110
110
```
111
111
112
112
> [!NOTE]
@@ -121,7 +121,7 @@ To allow an AKS cluster to interact with other Azure resources, the Azure platfo
121
121
* Create an AKS cluster using the [`New-AzAksCluster`][new-azakscluster] cmdlet. The following example creates a cluster named *myAKSCluster* in the resource group named *myResourceGroup*. This resource group was created in the [previous tutorial][aks-tutorial-prepare-acr] in the *eastus* region.
#Customer intent: As a developer, I want to learn how to use PaaS services with an Azure Kubernetes Service (AKS) cluster so that I can deploy and manage my applications.
8
8
---
@@ -289,7 +289,7 @@ In previous tutorials, you used a RabbitMQ container to store orders submitted b
289
289
kubectl get service store-front
290
290
```
291
291
292
-
2. Navigate to the external IP address of the `store-front` service in your browser.
292
+
2. Navigate to the external IP address of the `store-front` service in your browser using `http://<external-ip>`.
293
293
3. Place an order by choosing a product and selecting **Add to cart**.
294
294
4. Select **Cart** to view your order, and then select **Checkout**.
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-prepare-acr.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Kubernetes on Azure tutorial - Create an Azure Container Registry and build images
3
3
description: In this Azure Kubernetes Service (AKS) tutorial, you create an Azure Container Registry instance and upload sample application container images.
4
4
ms.topic: tutorial
5
-
ms.date: 11/28/2023
5
+
ms.date: 06/10/2024
6
6
author: schaffererin
7
7
ms.author: schaffererin
8
8
@@ -69,6 +69,9 @@ Before creating an ACR instance, you need a resource group. An Azure resource gr
69
69
2. Create an ACR instance using the [`New-AzContainerRegistry`][new-azcontainerregistry] cmdlet and provide your own unique registry name. The registry name must be unique within Azure and contain 5-50 alphanumeric characters. The rest of this tutorial uses an environment variable, `$ACRNAME`, as a placeholder for the container registry name. You can set this environment variable to your unique ACR name to use in future commands. The *Basic* SKU is a cost-optimized entry point for development purposes that provides a balance of storage and throughput.
70
70
71
71
```azurepowershell-interactive
72
+
$rand=New-Object System.Random
73
+
$RAND=$rand.Next()
74
+
$ACRNAME="myregistry$RAND" # Or replace with your own name
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-prepare-app.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Kubernetes on Azure tutorial - Prepare an application for Azure Kubernetes Service (AKS)
3
3
description: In this Azure Kubernetes Service (AKS) tutorial, you learn how to prepare and build a multi-container app with Docker Compose that you can then deploy to AKS.
4
4
ms.topic: tutorial
5
-
ms.date: 02/15/2023
5
+
ms.date: 06/10/2024
6
6
author: schaffererin
7
7
ms.author: schaffererin
8
8
@@ -294,9 +294,9 @@ In the next tutorial, you learn how to create a cluster using the `azd` template
0 commit comments