Skip to content

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 <[email protected]>
 Add podDisruptionBudget.unhealthyPodEvictionPolicy value in values table

Signed-off-by: younsl <[email protected]>
@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