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
Copy file name to clipboardExpand all lines: articles/aks/tutorial-kubernetes-prepare-app.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,18 @@ title: Kubernetes on Azure tutorial - Prepare an application
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
services: container-service
5
5
ms.topic: tutorial
6
-
ms.date: 01/12/2021
7
-
6
+
ms.date: 12/06/2022
8
7
ms.custom: mvc
9
8
10
9
#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.
11
10
---
12
11
13
12
# Tutorial: Prepare an application for Azure Kubernetes Service (AKS)
14
13
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:
16
15
17
16
> [!div class="checklist"]
17
+
>
18
18
> * Clone a sample application source from GitHub
19
19
> * Create a container image from the sample application source
20
20
> * 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
23
23
24
24
:::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":::
25
25
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.
27
27
28
28
## Before you begin
29
29
@@ -38,7 +38,7 @@ To complete this tutorial, you need a local Docker development environment runni
38
38
39
39
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.
40
40
41
-
Use [git][] to clone the sample application to your development environment:
41
+
Use [git][] to clone the sample application to your development environment.
@@ -50,7 +50,7 @@ Change into the cloned directory.
50
50
cd azure-voting-app-redis
51
51
```
52
52
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:
54
54
55
55
```output
56
56
azure-voting-app-redis
@@ -84,13 +84,13 @@ azure-voting-app-redis
84
84
85
85
[Docker Compose][docker-compose] can be used to automate building container images and the deployment of multi-container applications.
86
86
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.
88
88
89
89
```console
90
90
docker-compose up -d
91
91
```
92
92
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.
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:
117
117
118
118
:::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":::
119
119
120
120
## Clean up resources
121
121
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.
123
123
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.
125
125
126
126
```console
127
127
docker-compose down
128
128
```
129
129
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.
131
131
132
132
## Next steps
133
133
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:
135
135
136
136
> [!div class="checklist"]
137
+
137
138
> * Clone a sample application source from GitHub
138
139
> * Create a container image from the sample application source
139
140
> * Test the multi-container application in a local Docker environment
140
141
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.
142
143
143
144
> [!div class="nextstepaction"]
144
145
> [Push images to Azure Container Registry][aks-tutorial-prepare-acr]
0 commit comments