Skip to content

feat(oauth2-proxy): Support spec.unhealthyPodEvictionPolicy field for PDB #336

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

Merged

Conversation

younsl
Copy link
Contributor

@younsl younsl commented Aug 14, 2025

Changes

  • Add support for unhealthyPodEvictionPolicy field in PodDisruptionBudget to control eviction behavior for unhealthy pods.

Kubernetes will use its default value IfHealthyBudget when the field is not present. Users can optionally set it to "IfHealthyBudget" or "AlwaysAllow" to explicitly control the behavior.

References

younsl added 3 commits August 14, 2025 09:52
… HPA

* By using .spec.unhealthyPodEvictionPolicy, you can also define the criteria when unhealthy pods should be considered for eviction.

* Reference: https://kubernetes.io/docs/tasks/run-application/configure-pdb/\#unhealthy-pod-eviction-policy

Signed-off-by: younsl <cysl@kakao.com>
 Add podDisruptionBudget.unhealthyPodEvictionPolicy value in values table

Signed-off-by: younsl <cysl@kakao.com>
Signed-off-by: younsl <cysl@kakao.com>
@younsl younsl changed the title feat(oauth2-proxy): Support spec.unhealthyPodEvictionPolicy field for HPA feat(oauth2-proxy): Support spec.unhealthyPodEvictionPolicy field for PDB Aug 14, 2025
@pierluigilenoci pierluigilenoci merged commit 1454687 into oauth2-proxy:main Aug 14, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants