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
description: Learn the basic cluster and workload components of Kubernetes and how they relate to features in Azure Kubernetes Service (AKS)
4
4
services: container-service
5
5
ms.topic: conceptual
6
-
ms.date: 03/05/2020
6
+
ms.date: 10/31/2022
7
7
8
8
---
9
9
@@ -196,7 +196,7 @@ Most stateless applications in AKS should use the deployment model rather than s
196
196
197
197
You don't want to disrupt management decisions with an update process if your application requires a minimum number of available instances. *Pod Disruption Budgets* define how many replicas in a deployment can be taken down during an update or node upgrade. For example, if you have *five (5)* replicas in your deployment, you can define a pod disruption of *4 (four)* to only allow one replica to be deleted or rescheduled at a time. As with pod resource limits, best practice is to define pod disruption budgets on applications that require a minimum number of replicas to always be present.
198
198
199
-
Deployments are typically created and managed with `kubectl create` or `kubectl apply`. Create a deployment by defining a manifest file in the YAML format.
199
+
Deployments are typically created and managed with `kubectl create` or `kubectl apply`. Create a deployment by defining a manifest file in the YAML format.
200
200
201
201
The following example creates a basic deployment of the NGINX web server. The deployment specifies *three (3)* replicas to be created, and requires port *80* to be open on the container. Resource requests and limits are also defined for CPU and memory.
202
202
@@ -229,6 +229,32 @@ spec:
229
229
memory: 256Mi
230
230
```
231
231
232
+
A breakdown of the deployment specifications in the YAML manifest file is as follows:
233
+
234
+
| Specification | Description |
235
+
| ----------------- | ------------- |
236
+
| `.apiVersion` | Specifies the API group and API resource you want to use when creating the resource. |
237
+
| `.kind` | Specifies the type of resource you want to create. |
238
+
| `.metadata.name` | Specifies the image to run. This file will run the *nginx* image from Docker Hub. |
239
+
| `.spec.replicas` | Specifies how many pods to create. This file will create three deplicated pods. |
240
+
| `.spec.selector` | Specifies which pods will be affected by this deployment. |
241
+
| `.spec.selector.matchLabels` | Contains a map of *{key, value}* pairs that allows the deployment to find and manage the created pods. |
242
+
| `.spec.selector.matchLabels.app` | Has to match `.spec.template.metadata.labels`. |
243
+
| `.spec.template.labels` | Specifies the *{key, value}* pairs attached to the object. |
244
+
| `.spec.template.app` | Has to match `.spec.selector.matchLabels`. |
245
+
| `.spec.spec.containers` | Specifies the list of containers belonging to the pod. |
246
+
| `.spec.spec.containers.name` | Specifies the name of the container specified as a DNS label. |
247
+
| `.spec.spec.containers.image` | Specifies the container image name. |
248
+
| `.spec.spec.containers.ports` | Specifies the list of ports to expose from the container. |
249
+
| `.spec.spec.containers.ports.containerPort` | Specifies the number of port to expose on the pod's IP address. |
250
+
| `.spec.spec.resources` | Specifies the compute resources required by the container. |
251
+
| `.spec.spec.resources.requests` | Specifies the minimum amount of compute resources required. |
252
+
| `.spec.spec.resources.requests.cpu` | Specifies the minimum amount of CPU required. |
253
+
| `.spec.spec.resources.requests.memory` | Specifies the minimum amount of memory required. |
254
+
| `.spec.spec.resources.limits` | Specifies the maximum amount of compute resources allowed. This limit is enforced by the kubelet. |
255
+
| `.spec.spec.resources.limits.cpu` | Specifies the maximum amount of CPU allowed. This limit is enforced by the kubelet. |
256
+
| `.spec.spec.resources.limits.memory` | Specifies the maximum amount of memory allowed. This limit is enforced by the kubelet. |
257
+
232
258
More complex applications can be created by including services (such as load balancers) within the YAML manifest.
233
259
234
260
For more information, see [Kubernetes deployments][kubernetes-deployments].
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-kubernetes-deploy-bicep.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Quickstart - Create an Azure Kubernetes Service (AKS) cluster by using Bi
3
3
description: Learn how to quickly create a Kubernetes cluster using a Bicep file and deploy an application in Azure Kubernetes Service (AKS)
4
4
services: container-service
5
5
ms.topic: quickstart
6
-
ms.date: 08/11/2022
6
+
ms.date: 11/01/2022
7
7
ms.custom: mvc, subject-armbicep
8
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
---
@@ -271,6 +271,8 @@ Two [Kubernetes Services][kubernetes-service] are also created:
271
271
app: azure-vote-front
272
272
```
273
273
274
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
275
+
274
276
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-kubernetes-deploy-cli.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: 'Quickstart: Deploy an AKS cluster by using Azure CLI'
3
3
description: Learn how to quickly create a Kubernetes cluster, deploy an application, and monitor performance in Azure Kubernetes Service (AKS) using the Azure CLI.
#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.
9
9
---
@@ -230,6 +230,8 @@ Two [Kubernetes Services][kubernetes-service] are also created:
230
230
app: azure-vote-front
231
231
```
232
232
233
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
234
+
233
235
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-kubernetes-deploy-portal.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ titleSuffix: Azure Kubernetes Service
4
4
description: Learn how to quickly create a Kubernetes cluster, deploy an application, and monitor performance in Azure Kubernetes Service (AKS) using the Azure portal.
#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.
10
10
---
@@ -228,6 +228,8 @@ Two Kubernetes Services are also created:
228
228
app: azure-vote-front
229
229
```
230
230
231
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
232
+
231
233
1. Deploy the application using the `kubectl apply` command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-kubernetes-deploy-powershell.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: 'Quickstart: Deploy an AKS cluster by using PowerShell'
3
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: 04/29/2022
6
+
ms.date: 11/01/2022
7
7
ms.custom: devx-track-azurepowershell, mode-api
8
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
---
@@ -211,6 +211,8 @@ Two [Kubernetes Services][kubernetes-service] are also created:
211
211
app: azure-vote-front
212
212
```
213
213
214
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
215
+
214
216
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-kubernetes-deploy-rm-template.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Quickstart - Create an Azure Kubernetes Service (AKS) cluster
3
3
description: Learn how to quickly create a Kubernetes cluster using an Azure Resource Manager template and deploy an application in Azure Kubernetes Service (AKS)
#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
---
@@ -269,6 +269,8 @@ Two [Kubernetes Services][kubernetes-service] are also created:
269
269
app: azure-vote-front
270
270
```
271
271
272
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
273
+
272
274
1. Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-windows-container-deploy-cli.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to quickly create a Kubernetes cluster, deploy an applica
4
4
services: container-service
5
5
ms.topic: article
6
6
ms.custom: event-tier1-build-2022
7
-
ms.date: 04/29/2022
7
+
ms.date: 11/01/2022
8
8
#Customer intent: As a developer or cluster operator, I want to quickly create an AKS cluster and deploy a Windows Server container so that I can see how to run applications running on a Windows Server container using the managed Kubernetes service in Azure.
9
9
---
10
10
@@ -288,6 +288,8 @@ spec:
288
288
app: sample
289
289
```
290
290
291
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
292
+
291
293
Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your YAML manifest:
Copy file name to clipboardExpand all lines: articles/aks/learn/quick-windows-container-deploy-powershell.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create a Windows Server container on an AKS cluster by using PowerShell
3
3
description: Learn how to quickly create a Kubernetes cluster, deploy an application in a Windows Server container in Azure Kubernetes Service (AKS) using PowerShell.
4
4
services: container-service
5
5
ms.topic: article
6
-
ms.date: 04/29/2022
6
+
ms.date: 11/01/2022
7
7
ms.custom: devx-track-azurepowershell
8
8
9
9
@@ -219,6 +219,8 @@ spec:
219
219
app: sample
220
220
```
221
221
222
+
For a breakdown of YAML manifest files, see [Deployments and YAML manifests](../concepts-clusters-workloads.md#deployments-and-yaml-manifests).
223
+
222
224
Deploy the application using the [kubectl apply][kubectl-apply] command and specify the name of your
0 commit comments