Skip to content

Commit e758dac

Browse files
authored
Merge pull request #16371 from sethmanheim/aksclusterdel
Add AKS workload cluster known issue
2 parents 913f0c8 + 164c9f5 commit e758dac

File tree

3 files changed

+58
-3
lines changed

3 files changed

+58
-3
lines changed

AKS-Hybrid/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
href: cluster-k8s-version.md
143143
- name: Deleted cluster still visible in portal
144144
href: deleted-cluster-visible.md
145+
- name: Can't fully remove workload cluster with PodDisruptionBudget (PDB) resources
146+
href: delete-cluster-pdb.md
145147
- name: Kubernetes version x.x.x is not available
146148
href: webhook-denied-request.md
147149
- name: Reference

AKS-Hybrid/aks-create-clusters-cli.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to create Kubernetes clusters in Azure Local using Azure
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli
66
author: sethmanheim
7-
ms.date: 09/24/2024
7+
ms.date: 11/18/2024
88
ms.author: sethm
99
ms.lastreviewed: 01/25/2024
1010
ms.reviewer: guanghu
@@ -52,8 +52,13 @@ az aksarc create -n $aksclustername -g $resource_group --custom-location $custom
5252

5353
After a few minutes, the command completes and returns JSON-formatted information about the cluster.
5454

55-
[!NOTE]
56-
To use Azure RBAC or workload identity for an AKS cluster, you must pass the required parameters during cluster creation using Azure CLI. Currently, updating an existing AKS cluster to enable workload identity and/or Azure RBAC is not supported. For more information, see [Use Azure RBAC for Kubernetes authorization](/azure/aks/hybrid/azure-rbac-23h2) or [Deploy and configure Workload Identity for your cluster}(workload-identity.md).
55+
> [!NOTE]
56+
> - The SSH key value is the public key for accessing nodes in the provisioned cluster. By default, this key is located at `~/.ssh/id_rsa.pub`. You can specify a different location using the `--ssh-key-value` parameter during cluster creation.
57+
> - The `--generate-ssh-keys` parameter is required if there's no pre-existing SSH key on your local machine. If you don't include this parameter during cluster creation and no SSH key exists, you receive an error message.
58+
> - If you already have an SSH key on your local machine, the AKS cluster reuses that key. In this case, specifying `--generate-ssh-keys`, or omitting that parameter, has no effect.
59+
60+
> [!IMPORTANT]
61+
> To use Azure RBAC or workload identity for an AKS cluster, you must pass the required parameters during cluster creation using Azure CLI. Currently, updating an existing AKS cluster to enable workload identity and/or Azure RBAC is not supported. For more information, see [Use Azure RBAC for Kubernetes authorization](/azure/aks/hybrid/azure-rbac-23h2) or [Deploy and configure Workload Identity for your cluster}(workload-identity.md).
5762
5863
## Connect to the Kubernetes cluster
5964

AKS-Hybrid/delete-cluster-pdb.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Troubleshoot deleted workload cluster resources can't be deleted
3+
description: Learn how to troubleshoot when deleted workload cluster resources can't be deleted.
4+
ms.topic: troubleshooting
5+
author: sethmanheim
6+
ms.author: sethm
7+
ms.date: 11/18/2024
8+
ms.reviewer: leslielin
9+
10+
---
11+
12+
# Can't fully remove workload cluster with PodDisruptionBudget (PDB) resources
13+
14+
[!INCLUDE [hci-applies-to-23h2](includes/hci-applies-to-23h2.md)]
15+
16+
When you delete a workload cluster that has [PodDisruptionBudget](https://kubernetes.io/docs/tasks/run-application/configure-pdb/) (PDB) resources, the deletion might fail to remove the PDB resources. By default, PDB is installed in the Workload Identity-enabled AKS Arc cluster.
17+
18+
## Workaround
19+
20+
Before you delete the AKS Arc cluster, access the target cluster's **kubeconfig** and delete the PDB:
21+
22+
1. Access the target cluster:
23+
24+
```azurecli
25+
az connectedk8s proxy -n $aks_cluster_name -g $resource_group_name
26+
```
27+
28+
1. Verify PDB:
29+
30+
```bash
31+
kubectl get pdb -A
32+
```
33+
34+
1. Delete PDB:
35+
36+
```bash
37+
kubectl delete pdb azure-wi-webhook-controller-manager -n arc-workload-identity
38+
```
39+
40+
1. Delete cluster:
41+
42+
```azurecli
43+
az aksarc delete -n $aks_cluster_name -g $resource_group_name
44+
```
45+
46+
## Next steps
47+
48+
[Known issues in AKS enabled by Azure Arc](aks-known-issues.md)

0 commit comments

Comments
 (0)