|
| 1 | +--- |
| 2 | +title: Azure Kubernetes Services (AKS) core concepts |
| 3 | +description: Learn about the core concepts of Azure Kubernetes Service (AKS). |
| 4 | +ms.topic: conceptual |
| 5 | +ms.date: 07/10/2024 |
| 6 | +author: schaffererin |
| 7 | +ms.author: schaffererin |
| 8 | +--- |
| 9 | + |
| 10 | +# Core concepts for Azure Kubernetes Service (AKS) |
| 11 | + |
| 12 | +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. |
| 13 | + |
| 14 | +## What is Kubernetes? |
| 15 | + |
| 16 | +Kubernetes is an open-source container orchestration platform for automating the deployment, scaling, and management of containerized applications. For more information, see the official [Kubernetes documentation][kubernetes-docs]. |
| 17 | + |
| 18 | +## What is AKS? |
| 19 | + |
| 20 | +AKS is a managed Kubernetes service that simplifies deploying, managing, and scaling containerized applications using Kubernetes. For more information, see [What is Azure Kubernetes Service (AKS)?][aks-overview] |
| 21 | + |
| 22 | +## Cluster components |
| 23 | + |
| 24 | +An AKS cluster is divided into two main components: |
| 25 | + |
| 26 | +* **Control plane**: The control plane provides the core Kubernetes services and orchestration of application workloads. |
| 27 | +* **Nodes**: Nodes are the underlying virtual machines (VMs) that run your applications. |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | +### Control plane |
| 32 | + |
| 33 | +The Azure managed control plane is comprised of several components that help manage the cluster: |
| 34 | + |
| 35 | +| Component | Description | |
| 36 | +| --------- | ----------- | |
| 37 | +| *kube-apiserver* | The API server ([kube-apiserver][kube-apiserver]) exposes the Kubernetes API to enable requests to the cluster from inside and outside of the cluster. | |
| 38 | +| *etcd* | [etcd][etcd] is a highly available key-value store that helps maintain the state of your Kubernetes cluster and configuration. | |
| 39 | +| *kube-scheduler* | The scheduler ([kube-scheduler][kube-scheduler]) helps make scheduling decisions, watching for new pods with no assigned node and selecting a node for them to run on. | |
| 40 | +| *kube-controller-manager* | The controller manager ([kube-controller-manager][kube-controller-manager]) runs controller processes, such as noticing and responding when nodes go down. | |
| 41 | +| *cloud-controller-manager* | The cloud controller manager ([cloud-controller-manager][cloud-controller-manager]) embeds cloud-specific control logic to run controllers specific to the cloud provider. | |
| 42 | + |
| 43 | +### Nodes |
| 44 | + |
| 45 | +Each AKS cluster has at least one node, which is an Azure virtual machine (VM) that runs Kubernetes node components. The following components run on each node: |
| 46 | + |
| 47 | +| Component | Description | |
| 48 | +| --------- | ----------- | |
| 49 | +| *kubelet* | The [kubelet][kubelet] ensures that containers are running in a pod. | |
| 50 | +| *kube-proxy* | The [kube-proxy][kube-proxy] is a network proxy that maintains network rules on nodes. | |
| 51 | +| *container runtime* | The [container runtime][container-runtime] manages the execution and lifecycle of containers. | |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +## Node configuration |
| 56 | + |
| 57 | +### VM size and image |
| 58 | + |
| 59 | +The **Azure VM size** for your nodes defines CPUs, memory, size, and the storage type available, such as high-performance SSD or regular HDD. The VM size you choose depends on the workload requirements and the number of pods you plan to run on each node. For more information, see [Supported VM sizes in Azure Kubernetes Service (AKS)][aks-vm-sizes]. |
| 60 | + |
| 61 | +In AKS, the **VM image** for your cluster's nodes is based on Ubuntu Linux, [Azure Linux](use-azure-linux.md), or Windows Server 2022. When you create an AKS cluster or scale out the number of nodes, the Azure platform automatically creates and configures the requested number of VMs. Agent nodes are billed as standard VMs, so any VM size discounts, including [Azure reservations][reservation-discounts], are automatically applied. |
| 62 | + |
| 63 | +### OS disks |
| 64 | + |
| 65 | +Default OS disk sizing is only used on new clusters or node pools when Ephemeral OS disks aren't supported and a default OS disk size isn't specified. For more information, see [Default OS disk sizing][default-os-disk] and [Ephemeral OS disks][ephemeral-os-disks]. |
| 66 | + |
| 67 | +### Resource reservations |
| 68 | + |
| 69 | +AKS uses node resources to help the nodes function as part of the cluster. This usage can cause a discrepancy between the node's total resources and the allocatable resources in AKS. To maintain node performance and functionality, AKS reserves two types of resources, **CPU** and **memory**, on each node. For more information, see [Resource reservations in AKS][resource-reservations]. |
| 70 | + |
| 71 | +### OS |
| 72 | + |
| 73 | +AKS supports Ubuntu 22.04 and Azure Linux 2.0 as the node OS for Linux node pools. For Windows node pools, AKS supports Windows Server 2022 as the default OS. Windows Server 2019 is being retired after Kubernetes version 1.32 reaches end of life and isn't supported in future releases. If you need to upgrade your Windows OS version, see [Upgrade from Windows Server 2019 to Windows Server 2022][upgrade-2019-2022]. For more information on using Windows Server on AKS, see [Windows container considerations in Azure Kubernetes Service (AKS)][windows-considerations]. |
| 74 | + |
| 75 | +### Container runtime |
| 76 | + |
| 77 | +A container runtime is software that executes containers and manages container images on a node. The runtime helps abstract away sys-calls or OS-specific functionality to run containers on Linux or Windows. For Linux node pools, [`containerd`][containerd] is used on Kubernetes version 1.19 and higher. For Windows Server 2019 and 2022 node pools, [`containerd`][containerd] is generally available and is the only runtime option on Kubernetes version 1.23 and higher. |
| 78 | + |
| 79 | +## Pods |
| 80 | + |
| 81 | +A *pod* is a group of one or more containers that share the same network and storage resources and a specification for how to run the containers. Pods typically have a 1:1 mapping with a container, but you can run multiple containers in a pod. |
| 82 | + |
| 83 | +## Node pools |
| 84 | + |
| 85 | +In AKS, nodes of the same configuration are grouped together into *node pools*. These node pools contain the underlying virtual machine scale sets and virtual machines (VMs) that run your applications. When you create an AKS cluster, you define the initial number of nodes and their size (SKU), which creates a [*system node pool*][use-system-pool]. System node pools serve the primary purpose of hosting critical system pods, such as CoreDNS and `konnectivity`. To support applications that have different compute or storage demands, you can create *user node pools*. User node pools serve the primary purpose of hosting your application pods. |
| 86 | + |
| 87 | +For more information, see [Create node pools in AKS][create-node-pools] and [Manage node pools in AKS][manage-node-pools]. |
| 88 | + |
| 89 | +## Node resource group |
| 90 | + |
| 91 | +When you create an AKS cluster in an Azure resource group, the AKS resource provider automatically creates a second resource group called the *node resource group*. This resource group contains all the infrastructure resources associated with the cluster, including virtual machines (VMs), virtual machine scale sets, and storage. |
| 92 | + |
| 93 | +For more information, see the following resources: |
| 94 | + |
| 95 | +* [Why are two resource groups created with AKS?][node-resource-group] |
| 96 | +* [Can I provide my own name for the AKS node resource group?][custom-nrg] |
| 97 | +* [Can I modify tags and other properties of the resources in the AKS node resource group?][modify-nrg-resources] |
| 98 | + |
| 99 | +## Namespaces |
| 100 | + |
| 101 | +Kubernetes resources, such as pods and deployments, are logically grouped into *namespaces* to divide an AKS cluster and create, view, or manage access to resources. |
| 102 | + |
| 103 | +The following namespaces are created by default in an AKS cluster: |
| 104 | + |
| 105 | +| Namespace | Description | |
| 106 | +| --------- | ----------- | |
| 107 | +| *default* | The [default][kubernetes-namespaces] namespace allows you to start using cluster resources without creating a new namespace. | |
| 108 | +| *kube-node-lease* | The [kube-node-lease][kubernetes-namespaces] namespace enables nodes to communicate their availability to the control plane. | |
| 109 | +| *kube-public* | The [kube-public][kubernetes-namespaces] namespace isn't typically used, but can be used for resources to be visible across the whole cluster by any user. | |
| 110 | +| *kube-system* | The [kube-system][kubernetes-namespaces] namespace is used by Kubernetes to manage cluster resources, such as `coredns`, `konnectivity-agent`, and `metrics-server`. | |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | +## Cluster modes |
| 115 | + |
| 116 | +In AKS, you can create a cluster with the **Automatic (preview)** or **Standard** mode. AKS Automatic provides a more fully managed experience, managing cluster configuration, including nodes, scaling, security, and other preconfigured settings. AKS Standard provides more control over the cluster configuration, including the ability to manage node pools, scaling, and other settings. |
| 117 | + |
| 118 | +For more information, see [AKS Automatic and Standard feature comparison][automatic-standard]. |
| 119 | + |
| 120 | +## Pricing tiers |
| 121 | + |
| 122 | +AKS offers three pricing tiers for cluster management: **Free**, **Standard**, and **Premium**. The pricing tier you choose determines the features available for managing your cluster. |
| 123 | + |
| 124 | +For more information, see [Pricing tiers for AKS cluster management][pricing-tiers]. |
| 125 | + |
| 126 | +## Supported Kubernetes versions |
| 127 | + |
| 128 | +For more information, see [Supported Kubernetes versions in AKS][supported-kubernetes-versions]. |
| 129 | + |
| 130 | +## Next steps |
| 131 | + |
| 132 | +For information on more core concepts for AKS, see the following resources: |
| 133 | + |
| 134 | +* [AKS access and identity][access-identity] |
| 135 | +* [AKS security][security] |
| 136 | +* [AKS networking][networking] |
| 137 | +* [AKS storage][storage] |
| 138 | +* [AKS scaling][scaling] |
| 139 | +* [AKS monitoring][monitoring] |
| 140 | +* [AKS backup and recovery][backup-recovery] |
| 141 | + |
| 142 | +<!---LINKS---> |
| 143 | +[kube-apiserver]: https://kubernetes.io/docs/concepts/overview/components/#kube-apiserver |
| 144 | +[etcd]: https://kubernetes.io/docs/concepts/overview/components/#etcd |
| 145 | +[kube-scheduler]: https://kubernetes.io/docs/concepts/overview/components/#kube-scheduler |
| 146 | +[kube-controller-manager]: https://kubernetes.io/docs/concepts/overview/components/#kube-controller-manager |
| 147 | +[cloud-controller-manager]: https://kubernetes.io/docs/concepts/overview/components/#cloud-controller-manager |
| 148 | +[kubelet]: https://kubernetes.io/docs/concepts/overview/components/#kubelet |
| 149 | +[kube-proxy]: https://kubernetes.io/docs/concepts/overview/components/#kube-proxy |
| 150 | +[container-runtime]: https://kubernetes.io/docs/concepts/overview/components/#container-runtime |
| 151 | +[create-node-pools]: ./create-node-pools.md |
| 152 | +[manage-node-pools]: ./manage-node-pools.md |
| 153 | +[node-resource-group]: ./faq.md#why-are-two-resource-groups-created-with-aks |
| 154 | +[custom-nrg]: ./faq.md#can-i-provide-my-own-name-for-the-aks-node-resource-group |
| 155 | +[modify-nrg-resources]: ./faq.md#can-i-modify-tags-and-other-properties-of-the-aks-resources-in-the-node-resource-group |
| 156 | +[kubernetes-namespaces]: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#initial-namespaces |
| 157 | +[use-system-pool]: ./use-system-pools.md |
| 158 | +[automatic-standard]: ./intro-aks-automatic.md#aks-automatic-and-standard-feature-comparison |
| 159 | +[pricing-tiers]: ./free-standard-pricing-tiers.md |
| 160 | +[access-identity]: ./concepts-identity.md |
| 161 | +[security]: ./concepts-security.md |
| 162 | +[networking]: ./concepts-network.md |
| 163 | +[storage]: ./concepts-storage.md |
| 164 | +[scaling]: ./concepts-scale.md |
| 165 | +[monitoring]: ./monitor-aks.md |
| 166 | +[backup-recovery]: ../backup/azure-kubernetes-service-backup-overview.md |
| 167 | +[kubernetes-docs]: https://kubernetes.io/docs/home/ |
| 168 | +[resource-reservations]: ./node-resource-reservations.md |
| 169 | +[reservation-discounts]: ../cost-management-billing/reservations/save-compute-costs-reservations.md |
| 170 | +[supported-kubernetes-versions]: ./supported-kubernetes-versions.md |
| 171 | +[default-os-disk]: ./concepts-storage.md#default-os-disk-sizing |
| 172 | +[ephemeral-os-disks]: ./concepts-storage.md#ephemeral-os-disk |
| 173 | +[aks-overview]: ./what-is-aks.md |
| 174 | +[containerd]: https://containerd.io/ |
| 175 | +[aks-vm-sizes]: ./quotas-skus-regions.md#supported-vm-sizes |
| 176 | +[windows-considerations]: ./windows-vs-linux-containers.md |
| 177 | +[upgrade-2019-2022]: ./upgrade-windows-os.md |
0 commit comments