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
+14-13Lines changed: 14 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,15 @@ 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 according to its connectivity state
23
-
- When the AKS Arc cluster is in a **Connected** state, run the `[az connectedk8s proxy](/cli/azure/connectedk8s#az-connectedk8s-proxy)` command
22
+
1. Access the AKS Arc cluster according to its connectivity state:
23
+
24
+
- When the AKS Arc cluster is in a **Connected** state, run the [`az connectedk8s proxy`](/cli/azure/connectedk8s#az-connectedk8s-proxy) command
24
25
25
26
```azurecli
26
27
az connectedk8s proxy -n $aks_cluster_name -g $resource_group_name
27
28
```
28
29
29
-
- When the AKS Arc cluster is in a **disconnected** state. You will need to run the `[az aksarc get-credentials](/cli/azure/aksarc#az-aksarc-get-credentials)` command with the permission to perform **Microsoft.HybridContainerService/provisionedClusterInstances/listAdminKubeconfig/action**, which is included in the **Azure Kubernetes Service Arc Cluster Admin** role permission. To learn more, refer to[Retrieve certificate-based admin kubeconfig in AKS Arc](/aks/aksarc/retrieve-admin-kubeconfig#retrieve-the-certificate-based-admin-kubeconfig-using-az-cli)
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](/aks/aksarc/retrieve-admin-kubeconfig#retrieve-the-certificate-based-admin-kubeconfig-using-az-cli)
30
31
31
32
```azurecli
32
33
az aksarc get-credentials -n $aks_cluster_name -g $resource_group_name --admin
@@ -38,27 +39,27 @@ Before you delete the AKS Arc cluster, access the AKS Arc cluster's **kubeconfig
38
39
kubectl get pdb -A
39
40
```
40
41
41
-
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