Skip to content

Commit 01aa71f

Browse files
committed
Add AKS workload cluster known issue
1 parent f11f75a commit 01aa71f

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
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/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+
# Workload cluster with PodDisruptionBudget (PDB) resources can't be fully removed
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)