Nem lehet teljes mértékben törölni az AKS Arc-fürtöt PodDisruptionBudget (PDB) erőforrásokkal

> Applies to: AKS on Azure Local, AKS Edge Essentials

Amikor egy AKS Arc-fürtöt töröl, amely PodDisruptionBudget (PDB) erőforrásokkal rendelkezik, előfordulhat, hogy a törlés nem távolítja el a PDB-erőforrásokat. By default, PDB is installed in the workload identity-enabled AKS Arc cluster.

Enyhítés

Ezt a problémát az Azure Local AKS 2503-es verziójában javítottuk.

  • For deleting an AKS cluster with a PodDisruptionBudget: If you're on an older build, please update to Azure Local, version 2503. A 2503-ra való frissítés után újra megpróbálhatja törölni az AKS klasztert. File a support case if you're on the 2503 release and your AKS cluster is not deleted after at least one retry.
  • For deleting a nodepool with a PodDisruptionBudget: By design, the nodepool isn't deleted if a PodDisruptionBudget exists, to protect applications. Use the following workaround to delete the PDB resources and then retry deleting the nodepool.

Workaround for AKS Edge Essentials and older versions of AKS on Azure Local

Before you delete the AKS Arc cluster, access the AKS Arc cluster's kubeconfig and delete all PDBs:

  1. Access the AKS Arc cluster according to its connectivity state:

    • When the AKS Arc cluster is in a Connected state, run the az connectedk8s proxy command

      az connectedk8s proxy -n $aks_cluster_name -g $resource_group_name 
      
    • Ha az AKS Arc-fürt leválasztott állapotban van, futtassa a az aksarc get-credentials parancsot a Microsoft.HybridContainerService/provisionedClusterInstances/listAdminKubeconfig/action művelet végrehajtásához, amely az Azure Kubernetes Service Arc-fürt rendszergazdai szerepkör-engedély részét képezi. További információ: Tanúsítványalapú rendszergazdai kubeconfig lekérése az AKS Arc.

      az aksarc get-credentials -n $aks_cluster_name -g $resource_group_name --admin
      
  2. A PDB ellenőrzése:

    kubectl get pdb -A 
    
  3. Törölje az összes PDF-et. Az alábbi parancs egy példa a számítási feladatok identitásának engedélyezéséből létrehozott PDB törlésére:

    kubectl delete pdb azure-wi-webhook-controller-manager -n arc-workload-identity 
    
  1. Törölje az AKS Arc-klasztert:

    az aksarc delete -n $aks_cluster_name -g $resource_group_name
    

Következő lépések

Az Azure Arc által engedélyezett AKS ismert problémái