Skip to content

Commit 09d2257

Browse files
authored
Merge pull request #222579 from schaffererin/run-apps-aks-freshness-pass
AKS freshness pass: Run applications in AKS tutorial
2 parents 2ba736d + 657b8aa commit 09d2257

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

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

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
---
2-
title: Kubernetes on Azure tutorial - Deploy an application
2+
title: Kubernetes on Azure tutorial - Deploy an application
33
description: In this Azure Kubernetes Service (AKS) tutorial, you deploy a multi-container application to your cluster using a custom image stored in Azure Container Registry.
44
services: container-service
55
ms.topic: tutorial
6-
ms.date: 05/24/2021
7-
6+
ms.date: 01/04/2023
87
ms.custom: mvc, devx-track-azurepowershell
98

109
#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.
1110
---
1211

1312
# Tutorial: Run applications in Azure Kubernetes Service (AKS)
1413

15-
Kubernetes provides a distributed platform for containerized applications. You build and deploy your own applications and services into a Kubernetes cluster, and let the cluster manage the availability and connectivity. In this tutorial, part four of seven, a sample application is deployed into a Kubernetes cluster. You learn how to:
14+
Kubernetes provides a distributed platform for containerized applications. You build and deploy your own applications and services into a Kubernetes cluster and let the cluster manage the availability and connectivity. In this tutorial, part four of seven, you deploy a sample application into a Kubernetes cluster. You learn how to:
1615

1716
> [!div class="checklist"]
18-
> * Update a Kubernetes manifest file
19-
> * Run an application in Kubernetes
20-
> * Test the application
17+
>
18+
> * Update a Kubernetes manifest file.
19+
> * Run an application in Kubernetes.
20+
> * Test the application.
2121
22-
In later tutorials, this application is scaled out and updated.
22+
In later tutorials, you'll scale out and update your application.
2323

24-
This quickstart assumes a basic understanding of Kubernetes concepts. For more information, see [Kubernetes core concepts for Azure Kubernetes Service (AKS)][kubernetes-concepts].
24+
This quickstart assumes you have a basic understanding of Kubernetes concepts. For more information, see [Kubernetes core concepts for Azure Kubernetes Service (AKS)][kubernetes-concepts].
2525

2626
> [!TIP]
27-
> AKS clusters can use GitOps for configuration management. This enables declarations of your cluster's state, which are pushed to source control, to be applied to the cluster automatically. To learn how to use GitOps to deploy an application with an AKS cluster, see the tutorial [Use GitOps with Flux v2][gitops-flux-tutorial] and follow the [prerequisites for Azure Kubernetes Service clusters][gitops-flux-tutorial-aks].
27+
> AKS clusters can use GitOps for configuration management. GitOp enables declarations of your cluster's state, which are pushed to source control, to be applied to the cluster automatically. To learn how to use GitOps to deploy an application with an AKS cluster, see the [prerequisites for Azure Kubernetes Service clusters][gitops-flux-tutorial-aks] in the [GitOps with Flux v2][gitops-flux-tutorial] tutorial.
2828
2929
## Before you begin
3030

31-
In previous tutorials, an application was packaged into a container image, this image was uploaded to Azure Container Registry, and a Kubernetes cluster was created.
31+
In previous tutorials, you packaged an application into a container image, uploaded the image to Azure Container Registry, and created a Kubernetes cluster.
3232

33-
To complete this tutorial, you need the pre-created `azure-vote-all-in-one-redis.yaml` Kubernetes manifest file. This file was downloaded with the application source code in a previous tutorial. Verify that you've cloned the repo, and that you have changed directories into the cloned repo. If you haven't done these steps, and would like to follow along, start with [Tutorial 1 – Create container images][aks-tutorial-prepare-app].
33+
To complete this tutorial, you need the pre-created `azure-vote-all-in-one-redis.yaml` Kubernetes manifest file. This file download was included with the application source code in a previous tutorial. Verify that you've cloned the repo and that you've changed directories into the cloned repo. If you haven't done these steps and would like to follow along, start with [Tutorial 1: Prepare an application for AKS][aks-tutorial-prepare-app].
3434

3535
### [Azure CLI](#tab/azure-cli)
3636

@@ -48,37 +48,37 @@ In these tutorials, an Azure Container Registry (ACR) instance stores the contai
4848

4949
### [Azure CLI](#tab/azure-cli)
5050

51-
Get the ACR login server name using the [az acr list][az-acr-list] command as follows:
51+
Get the ACR login server name using the [az acr list][az-acr-list] command.
5252

5353
```azurecli
5454
az acr list --resource-group myResourceGroup --query "[].{acrLoginServer:loginServer}" --output table
5555
```
5656

5757
### [Azure PowerShell](#tab/azure-powershell)
5858

59-
Get the ACR login server name using the [Get-AzContainerRegistry][get-azcontainerregistry] cmdlet as follows:
59+
Get the ACR login server name using the [Get-AzContainerRegistry][get-azcontainerregistry] cmdlet.
6060

6161
```azurepowershell
6262
(Get-AzContainerRegistry -ResourceGroupName myResourceGroup -Name <acrName>).LoginServer
6363
```
6464

6565
---
6666

67-
The sample manifest file from the git repo cloned in the first tutorial uses the images from Microsoft Container Registry (*mcr.microsoft.com*). Make sure that you're in the cloned *azure-voting-app-redis* directory, then open the manifest file with a text editor, such as `vi`:
67+
The sample manifest file from the git repo you cloned in the first tutorial uses the images from Microsoft Container Registry (*mcr.microsoft.com*). Make sure you're in the cloned *azure-voting-app-redis* directory, and then open the manifest file with a text editor, such as `vi`:
6868

6969
```console
7070
vi azure-vote-all-in-one-redis.yaml
7171
```
7272

73-
Replace *mcr.microsoft.com* with your ACR login server name. The image name is found on line 60 of the manifest file. The following example shows the default image name:
73+
Replace *mcr.microsoft.com* with your ACR login server name. You can find the image name on line 60 of the manifest file. The following example shows the default image name:
7474

7575
```yaml
7676
containers:
7777
- name: azure-vote-front
7878
image: mcr.microsoft.com/azuredocs/azure-vote-front:v1
7979
```
8080
81-
Provide your own ACR login server name so that your manifest file looks like the following example:
81+
Provide your own ACR login server name so your manifest file looks similar to the following example:
8282
8383
```yaml
8484
containers:
@@ -90,7 +90,7 @@ Save and close the file. In `vi`, use `:wq`.
9090

9191
## Deploy the application
9292

93-
To deploy your application, use the [kubectl apply][kubectl-apply] command. This command parses the manifest file and creates the defined Kubernetes objects. Specify the sample manifest file, as shown in the following example:
93+
To deploy your application, use the [`kubectl apply`][kubectl-apply] command, specifying the sample manifest file. This command parses the manifest file and creates the defined Kubernetes objects.
9494

9595
```console
9696
kubectl apply -f azure-vote-all-in-one-redis.yaml
@@ -111,13 +111,13 @@ service "azure-vote-front" created
111111

112112
When the application runs, a Kubernetes service exposes the application front end to the internet. This process can take a few minutes to complete.
113113

114-
To monitor progress, use the [kubectl get service][kubectl-get] command with the `--watch` argument.
114+
To monitor progress, use the [`kubectl get service`][kubectl-get] command with the `--watch` argument.
115115

116116
```console
117117
kubectl get service azure-vote-front --watch
118118
```
119119

120-
Initially the *EXTERNAL-IP* for the *azure-vote-front* service is shown as *pending*:
120+
Initially the *EXTERNAL-IP* for the *azure-vote-front* service shows as *pending*.
121121

122122
```output
123123
azure-vote-front LoadBalancer 10.0.34.242 <pending> 80:30676/TCP 5s
@@ -129,22 +129,23 @@ When the *EXTERNAL-IP* address changes from *pending* to an actual public IP add
129129
azure-vote-front LoadBalancer 10.0.34.242 52.179.23.131 80:30676/TCP 67s
130130
```
131131

132-
To see the application in action, open a web browser to the external IP address of your service:
132+
To see the application in action, open a web browser to the external IP address of your service.
133133

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

136-
If the application didn't load, it might be due to an authorization problem with your image registry. To view the status of your containers, use the `kubectl get pods` command. If the container images can't be pulled, see [Authenticate with Azure Container Registry from Azure Kubernetes Service](cluster-container-registry-integration.md).
136+
If the application doesn't load, it might be an authorization problem with your image registry. To view the status of your containers, use the `kubectl get pods` command. If you can't pull the container images, see [Authenticate with Azure Container Registry from Azure Kubernetes Service](cluster-container-registry-integration.md).
137137

138138
## Next steps
139139

140-
In this tutorial, a sample Azure vote application was deployed to a Kubernetes cluster in AKS. You learned how to:
140+
In this tutorial, you deployed a sample Azure vote application to a Kubernetes cluster in AKS. You learned how to:
141141

142142
> [!div class="checklist"]
143-
> * Update a Kubernetes manifest files
144-
> * Run an application in Kubernetes
145-
> * Test the application
143+
>
144+
> * Update a Kubernetes manifest file.
145+
> * Run an application in Kubernetes.
146+
> * Test the application.
146147

147-
Advance to the next tutorial to learn how to scale a Kubernetes application and the underlying Kubernetes infrastructure.
148+
In the next tutorial, you'll learn how to scale a Kubernetes application and the underlying Kubernetes infrastructure.
148149

149150
> [!div class="nextstepaction"]
150151
> [Scale Kubernetes application and infrastructure][aks-tutorial-scale]

0 commit comments

Comments
 (0)