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/kubernetes-walkthrough-powershell.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,18 @@
1
1
---
2
2
title: 'Quickstart: Deploy an AKS cluster by using PowerShell'
3
-
description: Learn how to quickly create a Kubernetes cluster, deploy an application, and monitor performance in Azure Kubernetes Service (AKS) using PowerShell.
3
+
description: Learn how to quickly create a Kubernetes cluster and deploy an application in Azure Kubernetes Service (AKS) using PowerShell.
4
4
services: container-service
5
5
ms.topic: quickstart
6
-
ms.date: 03/15/2021
6
+
ms.date: 01/13/2022
7
7
ms.custom: devx-track-azurepowershell, mode-api
8
-
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy an application so that I can see how to run and monitor applications using the managed Kubernetes service in Azure.
8
+
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy an application so that I can see how to run applications using the managed Kubernetes service in Azure.
9
9
---
10
10
11
11
# Quickstart: Deploy an Azure Kubernetes Service cluster using PowerShell
12
12
13
13
Azure Kubernetes Service (AKS) is a managed Kubernetes service that lets you quickly deploy and manage clusters. In this quickstart, you will:
14
14
* Deploy an AKS cluster using PowerShell.
15
15
* Run a multi-container application with a web front-end and a Redis instance in the cluster.
16
-
* Monitor the health of the cluster and pods that run your application.
17
16
18
17
To learn more about creating a Windows Server node pool, see
19
18
[Create an AKS cluster that supports Windows Server containers][windows-container-powershell].
*[Quick steps: Create and use an SSH public-private key pair for Linux VMs in Azure](../virtual-machines/linux/mac-create-ssh-keys.md)
70
69
*[How to use SSH keys with Windows on Azure](../virtual-machines/linux/ssh-from-windows.md)
71
70
72
-
1. Create an AKS cluster using the [New-AzAksCluster][new-azakscluster] cmdlet. Azure Monitor for containers is enabled by default.
71
+
1. Create an AKS cluster using the [New-AzAksCluster][new-azakscluster] cmdlet.
73
72
74
73
The following example creates a cluster named **myAKSCluster** with one node.
75
74
@@ -101,7 +100,7 @@ To manage a Kubernetes cluster, use the Kubernetes command-line client, [kubectl
101
100
3. Verify the connection to your cluster using the [kubectl get][kubectl-get] command. This command returns a list of the cluster nodes.
102
101
103
102
```azurepowershell-interactive
104
-
.\kubectl get nodes
103
+
kubectl get nodes
105
104
```
106
105
107
106
Output shows the single node created in the previous steps. Make sure the node status is *Ready*:
@@ -218,7 +217,7 @@ Two [Kubernetes Services][kubernetes-service] are also created:
218
217
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
219
218
220
219
```azurepowershell-interactive
221
-
.\kubectl apply -f azure-vote.yaml
220
+
kubectl apply -f azure-vote.yaml
222
221
```
223
222
224
223
Output shows the successfully created deployments and services:
@@ -237,7 +236,7 @@ When the application runs, a Kubernetes service exposes the application front en
237
236
Monitor progress using the [kubectl get service][kubectl-get] command with the `--watch` argument.
238
237
239
238
```azurepowershell-interactive
240
-
.\kubectl get service azure-vote-front --watch
239
+
kubectl get service azure-vote-front --watch
241
240
```
242
241
243
242
The **EXTERNAL-IP** output for the `azure-vote-front` service will initially show as *pending*.
@@ -257,8 +256,6 @@ To see the Azure Vote app in action, open a web browser to the external IP addre
257
256
258
257

259
258
260
-
View the cluster nodes' and pods' health metrics captured by Azure Monitor for containers in the Azure portal.
261
-
262
259
## Delete the cluster
263
260
264
261
To avoid Azure charges, clean up your unnecessary resources. Use the [Remove-AzResourceGroup][remove-azresourcegroup] cmdlet to remove the resource group, container service, and all related resources.
0 commit comments