Grading Checklist¶
- Correctly identifies the PDB with
minAvailable: 1as the root cause blocking eviction of the sole replica. - Explains why the eviction API cannot proceed: evicting the pod would violate the PDB since there is only one replica.
- Suggests scaling the deployment to 2+ replicas before retrying the drain.
- Mentions verifying available cluster capacity for the new replica before scaling.
- Describes the difference between
--disable-eviction(delete bypass) and normal eviction API behavior. - Warns against using
--delete-emptydir-dataor--forcewithout understanding implications. - Recommends reviewing PDB configuration to use
maxUnavailable: 1or adjustingminAvailablerelative to replica count. - Notes that PDBs are namespace-scoped and matched by label selectors.
- Suggests a long-term fix: ensure production deployments always have replicas > minAvailable.
- Mentions checking
kubectl get pdb -n prodandkubectl get eventsfor diagnostic information. - Considers the maintenance window timeline and communicates risk to stakeholders.