Skip to content

Commit d6e2e37

Browse files
authored
Merge pull request #199728 from alvinli222/master
PDB Step 1: Troubleshooting
2 parents d67ba2b + d42eab2 commit d6e2e37

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

articles/aks/troubleshooting.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,31 @@ To help diagnose the issue run `az aks show -g myResourceGroup -n myAKSCluster -
131131
* If cluster is actively upgrading, wait until the operation finishes. If it succeeded, retry the previously failed operation again.
132132
* If cluster has failed upgrade, follow steps outlined in previous section.
133133

134+
## I'm receiving an error due to "PodDrainFailure"
135+
136+
This error is due to the requested operation being blocked by a PodDisruptionBudget (PDB) that has been set on the deployments within the cluster. To learn more about how PodDisruptionBudgets work, please visit check out [the official Kubernetes example](https://kubernetes.io/docs/concepts/workloads/pods/disruptions/#pdb-example).
137+
138+
You may use this command to find the PDBs applied on your cluster:
139+
140+
```
141+
kubectl get poddisruptionbudgets --all-namespaces
142+
```
143+
or
144+
```
145+
kubectl get poddisruptionbudgets -n {namespace of failed pod}
146+
```
147+
Please view the label selector to see the exact pods that are causing this failure.
148+
149+
There are a few ways this error can occur:
150+
1. Your PDB may be too restrictive such as having a high minAvailable pod count, or low maxUnavailable pod count. You can change it by updating the PDB with less restrictive.
151+
2. During an upgrade, the replacement pods may not be ready fast enough. You can investigate your Pod Readiness times to attempt to fix this situation.
152+
3. The deployed pods may not work with the new upgraded node version, causing Pods to fail and fall below the PDB.
153+
154+
>[!NOTE]
155+
> If the pod is failing from the namespace 'kube-system', please contact support. This is a namespace managed by AKS.
156+
157+
For more information about PodDisruptionBudgets, please check out the [official Kubernetes guide on configuring a PDB](https://kubernetes.io/docs/tasks/run-application/configure-pdb/).
158+
134159
## Can I move my cluster to a different subscription or my subscription with my cluster to a new tenant?
135160

136161
If you've moved your AKS cluster to a different subscription or the cluster's subscription to a new tenant, the cluster won't function because of missing cluster identity permissions. **AKS doesn't support moving clusters across subscriptions or tenants** because of this constraint.

0 commit comments

Comments
 (0)