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 about the core components that make up workloads and clusters in Kubernetes and their counterparts on Azure Kubernetes Services (AKS).
description: Learn about the core components that make up workloads and clusters in Azure Kubernetes Service (AKS).
4
4
ms.topic: conceptual
5
5
ms.custom: build-2023
6
-
ms.date: 01/16/2024
6
+
ms.date: 04/16/2024
7
7
---
8
8
9
-
# Core Kubernetes concepts for Azure Kubernetes Service
9
+
# Core Kubernetes concepts for Azure Kubernetes Service (aks)
10
10
11
-
Application development continues to move toward a container-based approach, increasing our need to orchestrate and manage resources. As the leading platform, Kubernetes provides reliable scheduling of fault-tolerant application workloads. Azure Kubernetes Service (AKS), a managed Kubernetes offering, further simplifies container-based application deployment and management.
12
-
13
-
This article introduces core concepts:
14
-
15
-
* Kubernetes infrastructure components:
16
-
17
-
**control plane*
18
-
**nodes*
19
-
**node pools*
20
-
21
-
* Workload resources:
22
-
23
-
**pods*
24
-
**deployments*
25
-
**sets*
26
-
27
-
* Group resources using *namespaces*.
11
+
This article describes core concepts of Azure Kubernetes Service (AKS), a managed Kubernetes service that you can use to deploy and operate containerized applications at scale on Azure. It helps you learn about the infrastructure components of Kubernetes and obtain a deeper understanding of how Kubernetes works in AKS.
Copy file name to clipboardExpand all lines: articles/aks/create-node-pools.md
+29-30Lines changed: 29 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,15 +45,15 @@ The following limitations apply when you create AKS clusters that support multip
45
45
1. Create an Azure resource group using the [`az group create`][az-group-create] command.
46
46
47
47
```azurecli-interactive
48
-
az group create --name myResourceGroup --location eastus
48
+
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION
49
49
```
50
50
51
51
2. Create an AKS cluster with a single node pool using the [`az aks create`][az-aks-create] command.
52
52
53
53
```azurecli-interactive
54
54
az aks create \
55
-
--resource-group myResourceGroup \
56
-
--name myAKSCluster \
55
+
--resource-group $RESOURCE_GROUP_NAME \
56
+
--name $CLUSTER_NAME \
57
57
--vm-set-type VirtualMachineScaleSets \
58
58
--node-count 2 \
59
59
--generate-ssh-keys \
@@ -65,7 +65,7 @@ The following limitations apply when you create AKS clusters that support multip
65
65
3. When the cluster is ready, get the cluster credentials using the [`az aks get-credentials`][az-aks-get-credentials] command.
66
66
67
67
```azurecli-interactive
68
-
az aks get-credentials --resource-group myResourceGroup --name myAKSCluster
68
+
az aks get-credentials --resource-group $RESOURCE_GROUP_NAME --name $CLUSTER_NAME
69
69
```
70
70
71
71
## Add a node pool
@@ -76,16 +76,16 @@ The cluster created in the previous step has a single node pool. In this section
76
76
77
77
```azurecli-interactive
78
78
az aks nodepool add \
79
-
--resource-group myResourceGroup \
80
-
--cluster-name myAKSCluster \
81
-
--name mynodepool \
79
+
--resource-group $RESOURCE_GROUP_NAME \
80
+
--cluster-name $CLUSTER_NAME \
81
+
--name $NODE_POOL_NAME \
82
82
--node-count 3
83
83
```
84
84
85
85
2. Check the status of your node pools using the [`az aks node pool list`][az-aks-nodepool-list] command and specify your resource group and cluster name.
86
86
87
87
```azurecli-interactive
88
-
az aks nodepool list --resource-group myResourceGroup --cluster-name myAKSCluster
88
+
az aks nodepool list --resource-group $RESOURCE_GROUP_NAME --cluster-name $CLUSTER_NAME
89
89
```
90
90
91
91
The following example output shows *mynodepool* has been successfully created with three nodes. When the AKS cluster was created in the previous step, a default *nodepool1* was created with a node count of *2*.
@@ -130,9 +130,9 @@ The ARM64 processor provides low power compute for your Kubernetes workloads. To
130
130
131
131
```azurecli-interactive
132
132
az aks nodepool add \
133
-
--resource-group myResourceGroup \
134
-
--cluster-name myAKSCluster \
135
-
--name armpool \
133
+
--resource-group $RESOURCE_GROUP_NAME \
134
+
--cluster-name $CLUSTER_NAME \
135
+
--name $ARM_NODE_POOL_NAME \
136
136
--node-count 3 \
137
137
--node-vm-size Standard_D2pds_v5
138
138
```
@@ -147,9 +147,9 @@ The Azure Linux container host for AKS is an open-source Linux distribution avai
147
147
148
148
```azurecli-interactive
149
149
az aks nodepool add \
150
-
--resource-group myResourceGroup \
151
-
--cluster-name myAKSCluster \
152
-
--name azlinuxpool \
150
+
--resource-group $RESOURCE_GROUP_NAME \
151
+
--cluster-name $CLUSTER_NAME \
152
+
--name $AZ_LINUX_NODE_POOL_NAME \
153
153
--os-sku AzureLinux
154
154
```
155
155
@@ -182,11 +182,11 @@ A workload may require splitting cluster nodes into separate pools for logical i
182
182
183
183
```azurecli-interactive
184
184
az aks nodepool add \
185
-
--resource-group myResourceGroup \
186
-
--cluster-name myAKSCluster \
187
-
--name mynodepool \
185
+
--resource-group $RESOURCE_GROUP_NAME \
186
+
--cluster-name $CLUSTER_NAME \
187
+
--name $NODE_POOL_NAME \
188
188
--node-count 3 \
189
-
--vnet-subnet-id <YOUR_SUBNET_RESOURCE_ID>
189
+
--vnet-subnet-id $SUBNET_RESOURCE_ID
190
190
```
191
191
192
192
## FIPS-enabled node pools
@@ -213,10 +213,10 @@ Beginning in Kubernetes version 1.20 and higher, you can specify `containerd` as
@@ -259,11 +259,11 @@ Beginning in Kubernetes version 1.20 and higher, you can specify `containerd` as
259
259
>
260
260
261
261
```azurecli-interactive
262
-
az aks nodepool add --name ephemeral --cluster-name myAKSCluster --resource-group myResourceGroup -s Standard_DS3_v2 --node-osdisk-type Ephemeral
262
+
az aks nodepool add --name $EPHEMERAL_NODE_POOL_NAME --cluster-name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME -s Standard_DS3_v2 --node-osdisk-type Ephemeral
263
263
```
264
264
265
265
> [!IMPORTANT]
266
-
> With Ephemeral OS, you can deploy VM and instance images up to the size of the VM cache. In the AKS case, the default node OS disk configuration uses 128 GB, which means that you need a VM size that has a cache larger than 128 GB. The default Standard_DS2_v2 has a cache size of 86 GB, which isn't large enough. The Standard_DS3_v2 has a cache size of 172 GB, which is large enough. You can also reduce the default size of the OS disk by using `--node-osdisk-size`. The minimum size for AKS images is 30 GB.
266
+
> With Ephemeral OS, you can deploy VMs and instance images up to the size of the VM cache. The default node OS disk configuration in AKS uses 128 GB, which means that you need a VM size that has a cache larger than 128 GB. The default Standard_DS2_v2 has a cache size of 86 GB, which isn't large enough. The Standard_DS3_v2 VM SKU has a cache size of 172 GB, which is large enough. You can also reduce the default size of the OS disk by using `--node-osdisk-size`, but keep in mind the minimum size for AKS images is 30 GB.
267
267
268
268
## Delete a node pool
269
269
@@ -275,7 +275,7 @@ If you no longer need a node pool, you can delete it and remove the underlying V
275
275
* Delete a node pool using the [`az aks nodepool delete`][az-aks-nodepool-delete] command and specify the node pool name.
276
276
277
277
```azurecli-interactive
278
-
az aks nodepool delete -g myResourceGroup --cluster-name myAKSCluster --name mynodepool --no-wait
278
+
az aks nodepool delete --resource-group $RESOURCE_GROUP_NAME --cluster-name $CLUSTER_NAME --name $NODE_POOL_NAME --no-wait
279
279
```
280
280
281
281
It takes a few minutes to delete the nodes and the node pool.
@@ -292,7 +292,6 @@ In this article, you learned how to create multiple node pools in an AKS cluster
Copy file name to clipboardExpand all lines: articles/aks/generation-2-vm-windows.md
+20-25Lines changed: 20 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,28 +10,23 @@ author: schaffererin
10
10
11
11
# Use generation 2 virtual machines on Windows in Azure Kubernetes Service (AKS) (preview)
12
12
13
-
Azure supports [Generation 2 (Gen2) virtual machines (VMs)](../virtual-machines/generation-2.md). Gen 2 VMs support key features not supported in generation 1 (Gen1) VMs, including increased memory, Intel Software Guard Extensions (Intel SGX), and virtualized persistent memory (vPMEM).
13
+
Azure supports [Generation 2 (Gen 2) virtual machines (VMs)](../virtual-machines/generation-2.md). Gen 2 VMs support key features not supported in Generation 1 (Gen 1) VMs, including increased memory, Intel Software Guard Extensions (Intel SGX), and virtualized persistent memory (vPMEM).
14
14
15
-
Gen 2 VMs use the new UEFI-based boot architecture rather than the BIOS-based architecture used by gen 1 VMs. Only specific SKUs and sizes support Gen2 VMs. Check the [list of supported sizes](../virtual-machines/generation-2.md#generation-2-vm-sizes) to see if your SKU supports or requires Gen2.
15
+
Gen 2 VMs use the new UEFI-based boot architecture rather than the BIOS-based architecture used by Gen 1 VMs. Only specific SKUs and sizes support Gen 2 VMs. Check the [list of supported sizes](../virtual-machines/generation-2.md#generation-2-vm-sizes) to see if your SKU supports or requires Gen 2.
16
16
17
-
Additionally, not all VM images support Gen2 VMs. On AKS, Gen2 VMs use the AKS Ubuntu 22.04 or 18.04 image or the AKS Windows Server 2022 image. These images support all Gen2 SKUs and sizes.
17
+
Additionally, not all VM images support Gen 2 VMs. On AKS, Gen 2 VMs use the AKS Ubuntu 22.04 or 18.04 image or the AKS Windows Server 2022 image. These images support all Gen 2 SKUs and sizes.
18
18
19
19
[!INCLUDE [preview features callout](includes/preview/preview-callout.md)]
20
20
21
-
## Considerations
22
-
23
-
* Generation 2 VMs are supported on Windows for WS2022 only.
24
-
* Generation 2 VMs are default for Windows clusters greater than or equal to Kubernetes 1.25.
25
-
* If your Kubernetes version is greater than 1.25, you only need to set the `vm_size` to get the generation 2 node pool. You can still use WS2019 generation 1 if you define that in the `os_sku`.
26
-
* If your Kubernetes version is less than 1.25, you can set the `os_sku` to WS2022 and set the `vm_size` to generation 2 to get the generation 2 node pool.
27
-
28
21
## Before you begin
29
22
30
23
Before you begin, you need the following resources installed and configured:
31
24
32
25
* The Azure CLI version 2.44.0 or later. Run `az --version` to find the current version. If you need to install or upgrade, see [Install Azure CLI][azure-cli-install].
33
26
* The `aks-preview` extension version 0.5.126 or later.
34
27
* The `AKSWindows2022Gen2Preview` feature flag registered on your subscription.
28
+
* Generation 2 VMs are supported on Windows for Windows Server 2022 (WS2022) only.
29
+
* Generation 2 VMs are default for Windows clusters running Kubernetes 1.25 or later.
35
30
36
31
### Install the `aks-preview` Azure CLI extension
37
32
@@ -67,49 +62,49 @@ Before you begin, you need the following resources installed and configured:
67
62
az provider register --namespace "Microsoft.ContainerService"
68
63
```
69
64
70
-
## Create a Windows node pool with a generation 2 VM
65
+
## Create a Windows node pool with a Generation 2 VM
71
66
72
-
1. Create a Windows node pool with a generation 2 VM using the [`az aks nodepool add`][az-aks-nodepool-add] command.
67
+
1. Check available Generation 2 VM sizes using the [`az vm list`][az-vm-list] command.
73
68
74
69
```azurecli-interactive
75
-
az aks nodepool add --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name> --os-type Windows --os-sku Windows2022
70
+
az vm list -skus --location <location> --size <vm-size> --output table
76
71
```
77
72
78
-
2. Verify successful node pool creation using the [`az aks nodepool show`][az-aks-nodepool-show] command and check that the `nodeImageVersion` contains `gen2` in the output.
73
+
2. Create a Windows node pool with a Generation 2 VM using the [`az aks nodepool add`][az-aks-nodepool-add] command.
79
74
80
75
```azurecli-interactive
81
-
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name>
76
+
az aks nodepool add --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name> --os-type Windows --os-sku Windows2022
82
77
```
83
78
84
-
3. Check available generation 2 VM sizes using the [`az vm list`][az-vm-list] command.
79
+
3. Verify a successful node pool creation using the [`az aks nodepool show`][az-aks-nodepool-show] command and check that the `nodeImageVersion` contains `gen2` in the output.
85
80
86
81
```azurecli-interactive
87
-
az vm list -skus --location <location> --size <vm-size> --output table
82
+
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name>
88
83
```
89
84
90
-
## Update a Windows node pool to a generation 2 VM
85
+
## Update a Windows node pool to a Generation 2 VM
91
86
92
-
1. Update a Windows node pool to a generation 2 VM using the [`az aks nodepool update`][az-aks-nodepool-update] command.
87
+
1. Check available Generation 2 VM sizes using the [`az vm list`][az-vm-list] command.
93
88
94
89
```azurecli-interactive
95
-
az aks nodepool update --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name> --os-type Windows --os-sku Windows2022
90
+
az vm list -skus --location <location> --size <vm-size> --output table
96
91
```
97
92
98
-
2. Verify successful node pool update using the [`az aks nodepool show`][az-aks-nodepool-show] command and check that the `nodeImageVersion` contains `gen2` in the output.
93
+
2. Update a Windows node pool to a Generation 2 VM using the [`az aks nodepool update`][az-aks-nodepool-update] command.
99
94
100
95
```azurecli-interactive
101
-
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name>
96
+
az aks nodepool update --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name> --os-type Windows --os-sku Windows2022
102
97
```
103
98
104
-
3. Check available generation 2 VM sizes using the [`az vm list`][az-vm-list] command.
99
+
3. Verify a successful node pool update using the [`az aks nodepool show`][az-aks-nodepool-show] command and check that the `nodeImageVersion` contains `gen2` in the output.
105
100
106
101
```azurecli-interactive
107
-
az vm list -skus --location <location> --size <vm-size> --output table
102
+
az aks nodepool show --resource-group <resource-group-name> --cluster-name <cluster-name> --name <node-pool-name>
108
103
```
109
104
110
105
## Next steps
111
106
112
-
To learn more about generation 2 VMs, see [Support for generation 2 VMs on Azure](../virtual-machines/generation-2.md).
107
+
To learn more about Generation 2 VMs, see [Support for Generation 2 VMs on Azure](../virtual-machines/generation-2.md).
0 commit comments