-
Notifications
You must be signed in to change notification settings - Fork 960
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
chore: Added new policy to PodDisruptionBudget #7037
Conversation
✅ Deploy Preview for karpenter-docs-prod ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is only available in beta starting in 1.27. What happens with users who try to define this on 1.25/1.26? Is there some way we can just not include this based on the kubernetes version?
f5bff64
to
8257a6d
Compare
@njtran Good point, I've added a function that ensures it only adds the field if the Kubernetes version is >= 1.27. |
9458443
to
2db9c04
Compare
2db9c04
to
7df72fe
Compare
e2d8e73
to
464f2c8
Compare
fd0de9a
to
644339e
Compare
644339e
to
1234ac8
Compare
charts/karpenter/values.yaml
Outdated
@@ -49,6 +49,7 @@ podAnnotations: {} | |||
podDisruptionBudget: | |||
name: karpenter | |||
maxUnavailable: 1 | |||
unhealthyPodEvictionPolicy: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that we should set a default policy in our values.yaml if we are going to support this configuration parameter
charts/karpenter/README.md
Outdated
@@ -70,6 +70,7 @@ cosign verify public.ecr.aws/karpenter/karpenter:1.0.0 \ | |||
| podAnnotations | object | `{}` | Additional annotations for the pod. | | |||
| podDisruptionBudget.maxUnavailable | int | `1` | | | |||
| podDisruptionBudget.name | string | `"karpenter"` | | | |||
| podDisruptionBudget.unhealthyPodEvictionPolicy | string | `nil` | Unhealthy pod eviction policy for the PDB. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I question if we need this? What's the need for us to allow folks to configure this? Do you have a use-case for wanting to change this from the default eviction policy?
This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity. |
1.27 kube version minor
c55e69f
to
892b5a1
Compare
Fixes #7025
Description
Added the
unhealthyPodEvictionPolicy
to the Karpenter PDB.How was this change tested?
I generated a helm template file locally and tried to set
unhealthyPodEvictionPolicy
in the chart values toAlwaysAllow
:I also tried not setting anything in the chart values and expected that there would be no mention of
unhealthyPodEvictionPolicy
in the spec:Does this change impact docs?
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.