Skip to content

Commit d67c4a4

Browse files
committed
- Updated output to match current output
- 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
1 parent b734d0e commit d67c4a4

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

articles/aks/tutorial-kubernetes-deploy-application.md

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Kubernetes on Azure tutorial - Deploy an application to Azure Kubernetes Service (AKS)
33
description: In this Azure Kubernetes Service (AKS) tutorial, you deploy a multi-container application to your cluster using images stored in Azure Container Registry.
44
ms.topic: tutorial
5-
ms.date: 02/20/2023
5+
ms.date: 06/10/2024
66
ms.custom: mvc, devx-track-extended-azdevcli
77
#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.
88
---
@@ -132,7 +132,8 @@ In these tutorials, your Azure Container Registry (ACR) instance stores the cont
132132
The following example output shows the resources successfully created in the AKS cluster:
133133
134134
```output
135-
deployment.apps/rabbitmq created
135+
statefulset.apps/rabbitmq created
136+
configmap/rabbitmq-enabled-plugins created
136137
service/rabbitmq created
137138
deployment.apps/order-service created
138139
service/order-service created
@@ -210,21 +211,21 @@ When the application runs, a Kubernetes service exposes the application front en
210211
kubectl get service store-front --watch
211212
```
212213
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>`:
214215
215216
```output
216217
store-front LoadBalancer 10.0.34.242 <pending> 80:30676/TCP 5s
217218
```
218219
219-
2. When the `EXTERNAL-IP` address changes from *pending* to an actual public IP address, use `CTRL-C` to stop the `kubectl` watch process.
220+
2. When the `EXTERNAL-IP` address changes from `<pending>` to a public IP address, use `CTRL-C` to stop the `kubectl` watch process.
220221
221222
The following example output shows a valid public IP address assigned to the service:
222223
223224
```output
224225
store-front LoadBalancer 10.0.34.242 52.179.23.131 80:30676/TCP 67s
225226
```
226227
227-
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>`.
228229
229230
:::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":::
230231
@@ -237,11 +238,27 @@ Navigate to your Azure portal to find your deployment information.
237238
1. Open your [Resource Group][azure-rg] on the Azure portal
238239
1. Navigate to the Kubernetes service for your cluster
239240
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
241242
1. Paste the IP into your browser and visit your store page
242243
243244
:::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":::
244245
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+
245262
## Next steps
246263
247264
In this tutorial, you deployed a sample Azure application to a Kubernetes cluster in AKS. You learned how to:

0 commit comments

Comments
 (0)