Skip to content

NodeSwap feature supports in kubeadm #2563

@pacoxu

Description

@pacoxu

Is this a BUG REPORT or FEATURE REQUEST?

FEATURE REQUEST

/kind feature

Versions

kubeadm version (use kubeadm version):
NodeSwap is alpha in 1.22 and will be beta1 in 1.28(still default disabled).

  • the promotion is postponed due to lack feedback and testing(I think also due to sig-node lack of reviewers)
  • Elana the feature owner is not currently active. So not included in v1.25 plan.
  • v1.28: swap is supported for cgroup v2 only; the NodeSwap feature gate of the kubelet is beta but disabled by default.

What happened?

I tested NodeSwap on my nodes and when I re-install my env, I got error related to swap.

	[ERROR Swap]: running with swap on is not supported. Please disable swap

I think it's time to start planning for Swap enabling support on the kubeadm side.

What you expected to happen?

There should be NodeSwap support in kubeadm init and we can skip the check if the feature gate is enabled.
Or in 1.23, we should skip the prelight check by default as it will be beta.

How to reproduce it (as minimally and precisely as possible)?

swapon and run kubeadm init

Anything else we need to know?

More details in kubernetes/enhancements#2400

/assign

Metadata

Metadata

Assignees

Labels

area/feature-gateskind/featureCategorizes issue or PR as related to a new feature.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions