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: AKS-Arc/delete-cluster-pdb.md
+22-14Lines changed: 22 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,39 +19,47 @@ When you delete an AKS Arc cluster that has [PodDisruptionBudget](https://kubern
19
19
20
20
Before you delete the AKS Arc cluster, access the AKS Arc cluster's **kubeconfig** and delete all PDBs:
21
21
22
-
1. Access the AKS Arc cluster:
22
+
1. Access the AKS Arc cluster according to its connectivity state:
23
23
24
-
```azurecli
25
-
az connectedk8s proxy -n $aks_cluster_name -g $resource_group_name
26
-
```
24
+
- When the AKS Arc cluster is in a **Connected** state, run the [`az connectedk8s proxy`](/cli/azure/connectedk8s#az-connectedk8s-proxy) command
25
+
26
+
```azurecli
27
+
az connectedk8s proxy -n $aks_cluster_name -g $resource_group_name
28
+
```
29
+
30
+
- When the AKS Arc cluster is in a **disconnected** state, run the [`az aksarc get-credentials`](/cli/azure/aksarc#az-aksarc-get-credentials) command with permission to perform the **Microsoft.HybridContainerService/provisionedClusterInstances/listAdminKubeconfig/action** action, which is included in the **Azure Kubernetes Service Arc Cluster Admin** role permission. For more information, see [Retrieve certificate-based admin kubeconfig in AKS Arc](retrieve-admin-kubeconfig.md#retrieve-the-certificate-based-admin-kubeconfig-using-az-cli).
31
+
32
+
```azurecli
33
+
az aksarc get-credentials -n $aks_cluster_name -g $resource_group_name --admin
34
+
```
27
35
28
36
1. Verify PDB:
29
37
30
38
```bash
31
39
kubectl get pdb -A
32
40
```
33
41
34
-
1. Delete all PDBs. Here's an example of deleting a PDB generated from workload identity enablement:
42
+
1. Delete all PDBs. The following command is an example of deleting a PDB generated from workload identity enablement:
0 commit comments