Skip to content

Commit 1dfa801

Browse files
Merge pull request #281295 from CocoWang-wql/patch-66
Update use-kms-etcd-encryption.md
2 parents fff6132 + fc8647e commit 1dfa801

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

articles/aks/use-kms-etcd-encryption.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to use Key Management Service (KMS) etcd encryption with
44
ms.topic: article
55
ms.subservice: aks-security
66
ms.custom: devx-track-azurecli
7-
ms.date: 06/26/2024
7+
ms.date: 07/19/2024
88
---
99

1010
# Add Key Management Service etcd encryption to an Azure Kubernetes Service cluster
@@ -346,6 +346,12 @@ Turn off KMS on an existing cluster and release the key vault:
346346
az aks update --name myAKSCluster --resource-group MyResourceGroup --disable-azure-keyvault-kms
347347
```
348348

349+
Use the following command to update all secrets. If you don't run this command, secrets that were created earlier are still encrypted with the previous key. For larger clusters, you might want to subdivide the secrets by namespace or create an update script.
350+
351+
```azurecli-interactive
352+
kubectl get secrets --all-namespaces -o json | kubectl replace -f -
353+
```
354+
349355
### Change the key vault mode
350356

351357
Update the key vault from public to private:

0 commit comments

Comments
 (0)