Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with Example Policy "Add Pod Disruption Budget" #1133

Open
abuechler opened this issue Aug 23, 2024 · 0 comments
Open

Issues with Example Policy "Add Pod Disruption Budget" #1133

abuechler opened this issue Aug 23, 2024 · 0 comments

Comments

@abuechler
Copy link

abuechler commented Aug 23, 2024

I see several issues with that example policy:

  • what if there is already an existing PDB? => precondition for the rule
  • what if the user creates a deployment and then afterwards creates a PDB, the default one should be deleted => the policy should also listen on PDB creation/deletion/etc
  • what if the number of replicas is set to 1, then the minAvailable: 1 will block pod eviction for no reason => precondition for the rule

Also notable is that draining nodes with pods that are covered by more than one PDB will give you (at least on GKE) following error: "This pod has more than one PodDisruptionBudget, which the eviction subresource does not support."

@abuechler abuechler changed the title Add Pod Disruption Budget Issues with Example Policy "Add Pod Disruption Budget" Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant