kubernetes / system-validators

A set of system-oriented validators for kubeadm preflight checks.
Apache License 2.0
35 stars 27 forks source link

kernel version should be 4.19+; recommend version 5.8 for cgroup v2 #37

Closed pacoxu closed 3 months ago

pacoxu commented 3 months ago

For kernel long term support, see https://wiki.linuxfoundation.org/civilinfrastructureplatform/start and https://endoflife.date/linux

Other comments that may be related:

In Kubernetes 1.31, cgroup v1 is moved to maintenance mode and 4.14 LTS EOF in Jan 2024 (linux, LTS) , besides, centos 7 is EOL in June 30, 2024. I chosen 4.15 as runc.

More details can be found in https://github.com/kubernetes/kubernetes/issues/116799.

The v1.31 KEP https://github.com/kubernetes/enhancements/issues/4569

Other minimal kernel version candidates

  • kernel 4.5 announced that cgroup v2 is not experimental anymore, as it supports io/pids/memory.
  • runc recommends 5.2+ as 5.2 supports freezer.
pacoxu commented 3 months ago

/assign @neolit123 @SataQiu

pacoxu commented 3 months ago

Updated.

neolit123 commented 3 months ago

/hold drop the hold if needed.

pacoxu commented 3 months ago

should we create a release after this PR merges?

Yes.

/hold drop the hold if needed.

We may wait for another week or two in case SIG-Node owners have some inputs.

neolit123 commented 3 months ago

should we create a release after this PR merges?

Yes.

/hold drop the hold if needed.

We may wait for another week or two in case SIG-Node owners have some inputs.

you should probably give them a ping on slack, or they will miss this.

pacoxu commented 3 months ago

According to some discussions in https://github.com/endoflife-date/endoflife.date/pull/5608#issuecomment-2268591430, the CIP seems to be not in https://www.kernel.org/category/releases.html and maintained in a different place(gitlab) than torvalds/linux.

I prefer to remove the 4.4.* here.

neolit123 commented 3 months ago

According to some discussions in endoflife-date/endoflife.date#5608 (comment), the CIP seems to be not in https://www.kernel.org/category/releases.html and maintained in a different place(gitlab) than torvalds/linux.

I prefer to remove the 4.4.* here.

+1 to keep only official lts

pacoxu commented 3 months ago

Updated in commit: update according to kernel official active kernel releases.

k8s-ci-robot commented 3 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: neolit123, pacoxu, SataQiu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/kubernetes/system-validators/blob/master/OWNERS)~~ [SataQiu,neolit123] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
pacoxu commented 3 months ago

/unhold @neolit123 Could you trigger a release after v1.31.0 is released this week?