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
Copy file name to clipboardExpand all lines: articles/aks/azure-disk-customer-managed-keys.md
+5-14Lines changed: 5 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: mlearned
6
6
7
7
ms.service: container-service
8
8
ms.topic: article
9
-
ms.date: 01/09/2020
9
+
ms.date: 01/12/2020
10
10
ms.author: mlearned
11
11
---
12
12
@@ -92,7 +92,7 @@ az role assignment create --assignee $desIdentity --role Reader --scope $keyVaul
92
92
93
93
## Create a new AKS cluster and encrypt the OS disk with a customer-manged key
94
94
95
-
Create a new resource group and AKS cluster, then use your key to encrypt the OS disk.
95
+
Create a new resource group and AKS cluster, then use your key to encrypt the OS disk. Customer managed key is only supported in kubernetes versions greater than 1.17
96
96
97
97
```azurecli-interactive
98
98
# Retrieve the DiskEncryptionSet value and set a variable
az group create -n myResourceGroup-l myAzureRegionName
103
103
104
104
# Create the AKS cluster
105
-
az aks create -n myAKSCluster -g myResourceGroup --node-osdisk-diskencryptionsetid diskEncryptionId
105
+
az aks create -n myAKSCluster -g myResourceGroup --node-osdisk-diskencryptionset-id diskEncryptionId --kubernetes-version 1.17
106
106
```
107
107
108
-
## Add a node pool to an existing AKS cluster and encrypt the OS disk with a customer-managed key
109
-
110
-
New nodepools do not use encrypted disks by default. You can add a new node pool to an existing cluster and encrypt the OS disk with your own key by using the following command.
111
-
112
-
```azurecli-interactive
113
-
# Add a nodepool to an existing cluster with BYOK encryption
When new node pools are added to the cluster created above, the customer managed key provided during the create is used to encrypt the OS disk
116
109
117
110
## Encrypt your AKS cluster data disk with a customer-managed key
118
111
119
112
You can also encrypt the AKS data disks with your own keys. Replace myResourceGroup and myDiskEncryptionSetName with your real values, and apply the yaml.
120
113
121
-
### Deploy the sample image from ACR to AKS
122
-
123
-
Ensure you have the proper AKS credentials
114
+
Ensure you have the proper AKS credentials. The Service principal will need to have contributor access to the resource group where the diskencryptionset is present. Otherwise, you will get an error suggesting that the service principal does not have permissions.
124
115
125
116
Create a file called **byok-azure-disk.yaml** that contains the following information. Replace myResourceGroup and myDiskEncrptionSetName with your values.
0 commit comments