|
| 1 | +--- |
| 2 | +title: Use Confidential Virtual Machines (CVM) in Azure Kubernetes Service (AKS) (Preview) |
| 3 | +description: Learn how to create Confidential Virtual Machines (CVM) node pools with Azure Kubernetes Service (AKS) |
| 4 | +services: container-service |
| 5 | +ms.topic: article |
| 6 | +ms.date: 08/01/2022 |
| 7 | + |
| 8 | +--- |
| 9 | + |
| 10 | +# Use Confidential Virtual Machines (CVM) in Azure Kubernetes Service (AKS) cluster (Preview) |
| 11 | + |
| 12 | +You can use the generally available [confidential VM sizes (DCav5/ECav5)][cvm-announce] to add a node pool to your AKS cluster with CVM. Confidential VMs with AMD SEV-SNP support bring a new set of security features to protect date-in-use with full VM memory encryption. These features enable node pools with CVM to target the migration of highly sensitive container workloads to AKS without any code refactoring while benefiting from the features of AKS. The nodes in a node pool created with CVM use a customized Ubuntu 20.04 image specially configured for CVM. For more details on CVM, see [Confidential VM node pools support on AKS with AMD SEV-SNP confidential VMs][cvm]. |
| 13 | + |
| 14 | +Adding a node pool with CVM to your AKS cluster is currently in preview. |
| 15 | + |
| 16 | +[!INCLUDE [preview features callout](./includes/preview/preview-callout.md)] |
| 17 | + |
| 18 | +## Before you begin |
| 19 | + |
| 20 | +- An Azure subscription. If you don't have an Azure subscription, you can create a [free account](https://azure.microsoft.com/free). |
| 21 | +- [Azure CLI installed](/cli/azure/install-azure-cli). |
| 22 | +- An existing AKS cluster in the *westus*, *eastus*, *westeurope*, or *northeurope* region. |
| 23 | +- The [DCasv5 and DCadsv5-series][cvm-subs-dc] or [ECasv5 and ECadsv5-series][cvm-subs-ec] SKUs available for your subscription. |
| 24 | + |
| 25 | +## Limitations |
| 26 | + |
| 27 | +The following limitations apply when adding a node pool with CVM to AKS: |
| 28 | + |
| 29 | +- You can't use `--enable-fips-image`, ARM64, or Mariner. |
| 30 | +- You can't upgrade an existing node pool to use CVM. |
| 31 | +- The [DCasv5 and DCadsv5-series][cvm-subs-dc] or [ECasv5 and ECadsv5-series][cvm-subs-ec] SKUs must be available for your subscription in the region where the cluster is created. |
| 32 | + |
| 33 | +## Add a node pool with the CVM to AKS |
| 34 | + |
| 35 | +To add a node pool with the CVM to AKS, use `az aks nodepool add` and set `node-vm-size` to `Standard_DCa4_v5`. For example: |
| 36 | + |
| 37 | +```azurecli-interactive |
| 38 | +az aks nodepool add \ |
| 39 | + --resource-group myResourceGroup \ |
| 40 | + --cluster-name myAKSCluster \ |
| 41 | + --name cvmnodepool \ |
| 42 | + --node-count 3 \ |
| 43 | + --node-vm-size Standard_DC4as_v5 |
| 44 | +``` |
| 45 | + |
| 46 | +## Verify the node pool uses CVM |
| 47 | + |
| 48 | +To verify a node pool uses CVM, use `az aks nodepool show` and verify the `vmSize` is `Standard_DCa4_v5`. For example: |
| 49 | + |
| 50 | +```azurecli-interactive |
| 51 | +az aks nodepool show \ |
| 52 | + --resource-group myResourceGroup \ |
| 53 | + --cluster-name myAKSCluster \ |
| 54 | + --name cvmnodepool \ |
| 55 | + --query 'vmSize' |
| 56 | +``` |
| 57 | + |
| 58 | +The following example command and output shows the node pool uses CVM: |
| 59 | + |
| 60 | +```output |
| 61 | +az aks nodepool show \ |
| 62 | + --resource-group myResourceGroup \ |
| 63 | + --cluster-name myAKSCluster \ |
| 64 | + --name cvmnodepool \ |
| 65 | + --query 'vmSize' |
| 66 | +
|
| 67 | +"Standard_DC4as_v5" |
| 68 | +``` |
| 69 | + |
| 70 | +## Remove a node pool with CVM from an AKS cluster |
| 71 | + |
| 72 | +To remove a node pool with CVM from an AKS cluster, use `az aks nodepool delete`. For example: |
| 73 | + |
| 74 | +```azurecli-interactive |
| 75 | +az aks nodepool delete \ |
| 76 | + --resource-group myResourceGroup \ |
| 77 | + --cluster-name myAKSCluster \ |
| 78 | + --name cvmnodepool |
| 79 | +``` |
| 80 | + |
| 81 | +## Next steps |
| 82 | + |
| 83 | +In this article, you learned how to add a node pool with CVM to an AKS cluster. For more information about CVM, see [Confidential VM node pools support on AKS with AMD SEV-SNP confidential VMs][cvm]. |
| 84 | + |
| 85 | +<!-- LINKS - Internal --> |
| 86 | +[cvm]: ../confidential-computing/confidential-node-pool-aks.md |
| 87 | +[cvm-announce]: https://techcommunity.microsoft.com/t5/azure-confidential-computing/azure-confidential-vms-using-sev-snp-dcasv5-ecasv5-are-now/ba-p/3573747 |
| 88 | +[cvm-subs-dc]: ../virtual-machines/dcasv5-dcadsv5-series.md |
| 89 | +[cvm-subs-ec]: ../virtual-machines/ecasv5-ecadsv5-series.md |
0 commit comments