Skip to content

Commit 1186d4e

Browse files
committed
AKS freshness pass: Run apps in AKS tutorial
1 parent 9d5d9b1 commit 1186d4e

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

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

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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
6+
ms.date: 12/28/2022
77

88
ms.custom: mvc, devx-track-azurepowershell
99

@@ -25,13 +25,13 @@ In later tutorials, you'll scale out and update your application.
2525
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].
2626

2727
> [!TIP]
28-
> 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 tutorial [Use GitOps with Flux v2][gitops-flux-tutorial] and follow the [prerequisites for Azure Kubernetes Service clusters][gitops-flux-tutorial-aks].
28+
> 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.
2929
3030
## Before you begin
3131

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

34-
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 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].
34+
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].
3535

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

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

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

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

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

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

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

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

6666
---
6767

68-
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`:
68+
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`:
6969

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

74-
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:
74+
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:
7575

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

9292
## Deploy the application
9393

94-
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:
94+
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.
9595

9696
```console
9797
kubectl apply -f azure-vote-all-in-one-redis.yaml
@@ -112,13 +112,13 @@ service "azure-vote-front" created
112112

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

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

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

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

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

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

135135
:::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":::
136136

137-
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).
137+
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).
138138

139139
## Next steps
140140

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

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

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

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

0 commit comments

Comments
 (0)