Skip to content

[EKS] [request]: Provide option to customize Auto Mode launch options to disable/enable swap#2856

Description

@DoumanAsh

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Tell us about your request
I would like to be able to disable swap which is currently present and ON by default at least in Bottlerocket (EKS Auto, Standard) 2026.8.10 (aws-k8s-1.34-standard)

Which service(s) is this request for?
EKS

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Default parameters for swap usage is 200 and tight memory usage in deployed node can lead your node into indefinite high CPU usage by [kswapd0] outside of Karpenter management
Users should have ability to disable swap memory which can be harmful when enabled by default.
This makes using Auto Mode dangerous for any production environment as it creates instability due to unexpected CPU usage spikes

Are you currently working around this issue?
I believe Auto Mode makes it impossible to customize right now, unless there is some hack to do it with custom node pool
We can only use DaemonSet to reduce vm.swappiness from 200 to more manageable 60
Example

I created terraform module to provide more convenient way to deploy daemon

Additional context
Swap by default is dangerous when not communicated to user as it creates unexplained issues (CPU spike, liveness probe failures due to CPU overload)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    EKSAmazon Elastic Kubernetes ServiceEKS Auto ModeProposedCommunity submitted issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions