☁️ Cloud

Azure AKS

Azure Kubernetes Service

Azure's managed Kubernetes service. Free management of the Control Plane. Native integration with Azure services.

📖 Detailed Explanation

Azure AKS (Azure Kubernetes Service) is a fully managed Kubernetes service provided by Microsoft Azure. 'AKS' and 'Azure AKS' refer to the same service; Azure manages the Control Plane (API server, etcd, scheduler, Controller Manager) free of charge, and users pay only for Worker Nodes.

Since its GA (general availability) in 2018, it has grown rapidly and is now available in more than 60 Azure regions worldwide. It integrates natively with Azure Entra ID (formerly Active Directory), making RBAC-based access control easy, and CI/CD integration with Azure DevOps and GitHub Actions is seamless.

AKS supports various networking models such as Azure CNI, Kubenet, and Azure CNI Overlay. It can integrate with Azure Container Registry (ACR) with automatic authentication, and through the Virtual Node feature it also supports burst scaling with Azure Container Instances (ACI). It also supports Windows Container node pools, making it suitable for .NET workloads.

In practice, AKS is especially well suited to organizations that already use the Microsoft ecosystem (Active Directory, Azure DevOps, Visual Studio). With Managed Identity, you can securely connect to Azure SQL, Cosmos DB, Key Vault, and more without passwords, and integrated monitoring is possible with Azure Monitor and Container Insights.

💻 Code Example

# AKS 클러스터 생성
az aks create \
  --resource-group myResourceGroup \
  --name myAKSCluster \
  --node-count 3 \
  --node-vm-size Standard_D4s_v3 \
  --enable-managed-identity \
  --network-plugin azure \
  --enable-addons monitoring \
  --generate-ssh-keys

# kubeconfig 가져오기
az aks get-credentials \
  --resource-group myResourceGroup \
  --name myAKSCluster

# 클러스터 노드 확인
kubectl get nodes

# ACR 연동 (이미지 풀 권한 부여)
az aks update \
  --name myAKSCluster \
  --resource-group myResourceGroup \
  --attach-acr myContainerRegistry

# 노드 풀 추가 (GPU 노드)
az aks nodepool add \
  --resource-group myResourceGroup \
  --cluster-name myAKSCluster \
  --name gpupool \
  --node-count 2 \
  --node-vm-size Standard_NC6s_v3

🗣️ Say It Like This in Practice

💬 In an Architecture Review
"If we migrate to AKS, we no longer have to manage the Control Plane, and integrating Key Vault with Workload Identity will make secret management clean too. Since we're already on Azure infrastructure, VNet integration should be easy as well. If we assign IPs directly to Pods with Azure CNI, we can also apply Azure Firewall policies."
💬 In an Interview
"I have experience operating production clusters on AKS. I solved the IP address exhaustion problem with Azure CNI Overlay, and used AAD integration to separate namespace permissions for each development team with RBAC. I collected logs with Container Insights and also set up a Slack alert via an Alert Rule for Pod OOM events."
💬 During Incident Response
"Pods were evicted in the AKS node pool when the Spot Instance nodes were preempted. For critical workloads, let's set a nodeSelector to the regular node pool, and also add a PodDisruptionBudget with minAvailable: 2 to ensure availability. That way we can hold on while the Cluster Autoscaler provisions new nodes."

Take a mock interview on this topic → WIA SOOM AI Interview · Start for free

⚠️ Common Mistakes & Cautions

❌
Mistakes in choosing the network plugin

With Kubenet, Pod IPs are for internal use within the node, so direct integration with Azure services is not possible. If you need integration with Azure services (such as Private Endpoint), choose Azure CNI from the start. Changing it later requires recreating the cluster.

❌
Not establishing a Kubernetes version upgrade plan

AKS supports only up to N-2 Kubernetes versions. If you do not configure an automatic upgrade channel (stable, rapid, node-image), you end up using an unsupported version and cannot receive security patches. Plan a minor version upgrade every six months.

✅
The right approach

In production, separate the System node pool from the User node pool. Apply governance with Azure Policy, and enabling Container Insights + Prometheus for metric/log monitoring is also essential. Don't forget to distribute across Availability Zones when creating the cluster.

🔗 Related Terms

📚 Learn More