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

chore: Add soft eviction setting to Bottlerocket kublet config #6390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lolbrish
Copy link

Fixes #N/A

Description

Issue bottlerocket-os/bottlerocket#1445 is fixed and so soft eviction settings can now be used with Bottlerocket. It looks like old docs have already been removed that used to discuss this limitation.

How was this change tested?

Tested on a live EKS cluster to provision Bottlerocket nodes, then the kubelet configuration was checked using http://localhost:8001/api/v1/nodes/$NODE/proxy/configz.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@lolbrish lolbrish requested a review from a team as a code owner June 20, 2024 04:12
Copy link

netlify bot commented Jun 20, 2024

Deploy Preview for karpenter-docs-prod canceled.

Name Link
🔨 Latest commit 61c9ba3
🔍 Latest deploy log https://app.netlify.com/sites/karpenter-docs-prod/deploys/6673ac2dbafeaf00084f0d60

func (b Bottlerocket) FeatureFlags() FeatureFlags {
return FeatureFlags{
UsesENILimitedMemoryOverhead: false,
PodsPerCoreEnabled: false,
EvictionSoftEnabled: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't even think we need the feature flag at all now since I believe they are all true now. You can probably just drop the field outright from the struct now

@@ -64,6 +64,18 @@ func (b Bottlerocket) Script() (string, error) {
if b.KubeletConfig.EvictionHard != nil {
s.Settings.Kubernetes.EvictionHard = b.KubeletConfig.EvictionHard
}
if b.KubeletConfig.EvictionMaxPodGracePeriod != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test (at least a functional one) for the changes that you are making here. There may also be a change that you could make to the current E2E integration testing in our Kubelet Config suite tests that would extend eviction soft testing for BR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to take a look at this in the next few days

@jonathan-innis
Copy link
Contributor

Thanks for taking this up! A few comments, mainly about testing 👍🏼

Copy link
Contributor

This PR has been inactive for 14 days. StaleBot will close this stale PR after 14 more days of inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants