Skip to content

Commit 54a352e

Browse files
Merge pull request #220613 from schaffererin/freshness-pass-prepare-application-aks
AKS freshness pass: Prepare an application for AKS
2 parents 351b665 + a085667 commit 54a352e

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

articles/aks/tutorial-kubernetes-prepare-app.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ title: Kubernetes on Azure tutorial - Prepare an application
33
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.
44
services: container-service
55
ms.topic: tutorial
6-
ms.date: 01/12/2021
7-
6+
ms.date: 12/06/2022
87
ms.custom: mvc
98

109
#Customer intent: As a developer, I want to learn how to build a container-based application so that I can deploy the app to Azure Kubernetes Service.
1110
---
1211

1312
# Tutorial: Prepare an application for Azure Kubernetes Service (AKS)
1413

15-
In this tutorial, part one of seven, a multi-container application is prepared for use in Kubernetes. Existing development tools such as Docker Compose are used to locally build and test an application. You learn how to:
14+
In this tutorial, part one of seven, you prepare a multi-container application to use in Kubernetes. You use existing development tools like Docker Compose to locally build and test the application. You learn how to:
1615

1716
> [!div class="checklist"]
17+
>
1818
> * Clone a sample application source from GitHub
1919
> * Create a container image from the sample application source
2020
> * Test the multi-container application in a local Docker environment
@@ -23,7 +23,7 @@ Once completed, the following application runs in your local development environ
2323

2424
:::image type="content" source="./media/container-service-kubernetes-tutorials/azure-vote-local.png" alt-text="Screenshot showing the container image Azure Voting App running locally opened in a local web browser" lightbox="./media/container-service-kubernetes-tutorials/azure-vote-local.png":::
2525

26-
In later tutorials, the container image is uploaded to an Azure Container Registry, and then deployed into an AKS cluster.
26+
In later tutorials, you upload the container image to an Azure Container Registry (ACR), and then deploy it into an AKS cluster.
2727

2828
## Before you begin
2929

@@ -38,7 +38,7 @@ To complete this tutorial, you need a local Docker development environment runni
3838

3939
The [sample application][sample-application] used in this tutorial is a basic voting app consisting of a front-end web component and a back-end Redis instance. The web component is packaged into a custom container image. The Redis instance uses an unmodified image from Docker Hub.
4040

41-
Use [git][] to clone the sample application to your development environment:
41+
Use [git][] to clone the sample application to your development environment.
4242

4343
```console
4444
git clone https://github.com/Azure-Samples/azure-voting-app-redis.git
@@ -50,7 +50,7 @@ Change into the cloned directory.
5050
cd azure-voting-app-redis
5151
```
5252

53-
Inside the directory is the application source code, a pre-created Docker compose file, and a Kubernetes manifest file. These files are used throughout the tutorial set. The contents and structure of the directory are as follows:
53+
The directory contains the application source code, a pre-created Docker compose file, and a Kubernetes manifest file. These files are used throughout the tutorial set. The contents and structure of the directory are as follows:
5454

5555
```output
5656
azure-voting-app-redis
@@ -84,13 +84,13 @@ azure-voting-app-redis
8484

8585
[Docker Compose][docker-compose] can be used to automate building container images and the deployment of multi-container applications.
8686

87-
Use the sample `docker-compose.yaml` file to create the container image, download the Redis image, and start the application:
87+
The following command uses the sample `docker-compose.yaml` file to create the container image, download the Redis image, and start the application.
8888

8989
```console
9090
docker-compose up -d
9191
```
9292

93-
When completed, use the [docker images][docker-images] command to see the created images. Three images have been downloaded or created. The *azure-vote-front* image contains the front-end application and uses the *nginx-flask* image as a base. The *redis* image is used to start a Redis instance.
93+
When completed, use the [`docker images`][docker-images] command to see the created images. Three images are downloaded or created. The *azure-vote-front* image contains the front-end application and uses the *nginx-flask* image as a base. The *redis* image is used to start a Redis instance.
9494

9595
```
9696
$ docker images
@@ -101,7 +101,7 @@ mcr.microsoft.com/oss/bitnami/redis 6.0.8 3a54a920bb6c
101101
tiangolo/uwsgi-nginx-flask python3.6 a16ce562e863 6 weeks ago 944MB
102102
```
103103

104-
Run the [docker ps][docker-ps] command to see the running containers:
104+
Run the [`docker ps`][docker-ps] command to see the running containers.
105105

106106
```
107107
$ docker ps
@@ -113,32 +113,33 @@ d10e5244f237 mcr.microsoft.com/azuredocs/azure-vote-front:v1 "/entrypoi
113113

114114
## Test application locally
115115

116-
To see the running application, enter `http://localhost:8080` in a local web browser. The sample application loads, as shown in the following example:
116+
To see your running application, navigate to `http://localhost:8080` in a local web browser. The sample application loads, as shown in the following example:
117117

118118
:::image type="content" source="./media/container-service-kubernetes-tutorials/azure-vote-local.png" alt-text="Screenshot showing the container image Azure Voting App running locally opened in a local web browser" lightbox="./media/container-service-kubernetes-tutorials/azure-vote-local.png":::
119119

120120
## Clean up resources
121121

122-
Now that the application's functionality has been validated, the running containers can be stopped and removed. ***Do not delete the container images*** - in the next tutorial, the *azure-vote-front* image is uploaded to an Azure Container Registry instance.
122+
Now that the application's functionality has been validated, the running containers can be stopped and removed. ***Do not delete the container images*** - in the next tutorial, you'll upload the *azure-vote-front* image to an ACR instance.
123123

124-
Stop and remove the container instances and resources with the [docker-compose down][docker-compose-down] command:
124+
To stop and remove the container instances and resources, use the [`docker-compose down`][docker-compose-down] command.
125125

126126
```console
127127
docker-compose down
128128
```
129129

130-
When the local application has been removed, you have a Docker image that contains the Azure Vote application, *azure-vote-front*, for use with the next tutorial.
130+
When the local application has been removed, you have a Docker image that contains the Azure Vote application, *azure-vote-front*, to use in the next tutorial.
131131

132132
## Next steps
133133

134-
In this tutorial, an application was tested and container images created for the application. You learned how to:
134+
In this tutorial, you created a sample application, created container images for the application, and then tested the application. You learned how to:
135135

136136
> [!div class="checklist"]
137+
137138
> * Clone a sample application source from GitHub
138139
> * Create a container image from the sample application source
139140
> * Test the multi-container application in a local Docker environment
140141
141-
Advance to the next tutorial to learn how to store container images in Azure Container Registry.
142+
In the next tutorial, you'll learn how to store container images in an ACR.
142143

143144
> [!div class="nextstepaction"]
144145
> [Push images to Azure Container Registry][aks-tutorial-prepare-acr]

0 commit comments

Comments
 (0)