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
- Fixed formatting to be consistent with other pages
- Clarified how to access the service (on HTTP)
- Added a step to clean up services, otherwise results are inconsistent in the next tutorial
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-deploy-application.md
+23-6Lines changed: 23 additions & 6 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
---
@@ -132,7 +132,8 @@ In these tutorials, your Azure Container Registry (ACR) instance stores the cont
132
132
The following example output shows the resources successfully created in the AKS cluster:
133
133
134
134
```output
135
-
deployment.apps/rabbitmq created
135
+
statefulset.apps/rabbitmq created
136
+
configmap/rabbitmq-enabled-plugins created
136
137
service/rabbitmq created
137
138
deployment.apps/order-service created
138
139
service/order-service created
@@ -210,21 +211,21 @@ When the application runs, a Kubernetes service exposes the application front en
210
211
kubectl get service store-front --watch
211
212
```
212
213
213
-
Initially, the `EXTERNAL-IP` for the *store-front* service shows as *pending*:
214
+
Initially, the `EXTERNAL-IP` for the `store-front` service shows as `<pending>`:
3. View the application in action by opening a web browser to the external IP address of your service.
228
+
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
229
229
230
:::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
231
@@ -237,11 +238,27 @@ Navigate to your Azure portal to find your deployment information.
237
238
1. Open your [Resource Group][azure-rg] on the Azure portal
238
239
1. Navigate to the Kubernetes service for your cluster
239
240
1. Select `Services and Ingress` under `Kubernetes Resources`
240
-
1. Copy the External IP shown in the column for store-front
241
+
1. Copy the External IP shown in the column for the `store-front` service
241
242
1. Paste the IP into your browser and visit your store page
242
243
243
244
:::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
245
246
+
## Clean up resources
247
+
248
+
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.
249
+
250
+
1. Stop and remove the container instances and resources using the [`docker-compose down`][docker-compose-down] command.
251
+
252
+
```console
253
+
kubectl delete -f aks-store-quickstart.yaml
254
+
```
255
+
256
+
1. Check that all the application pods have been removed:
257
+
258
+
```console
259
+
kubectl get pods
260
+
```
261
+
245
262
## Next steps
246
263
247
264
In this tutorial, you deployed a sample Azure application to a Kubernetes cluster in AKS. You learned how to:
0 commit comments