mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
[kubernetes] Support Kubernetes v1.32.0 with RHEL8 (#11885)
* [kubernetes] Support Kubernetes v1.32.0 * add workaround for RHEL8 Signed-off-by: Kay Yan <kay.yan@daocloud.io> --------- Signed-off-by: Kay Yan <kay.yan@daocloud.io> Co-authored-by: Mohamed Zaian <mohamedzaian@gmail.com>
This commit is contained in:
2
docs/_sidebar.md
generated
2
docs/_sidebar.md
generated
@@ -68,7 +68,6 @@
|
||||
* Operating Systems
|
||||
* [Amazonlinux](/docs/operating_systems/amazonlinux.md)
|
||||
* [Bootstrap-os](/docs/operating_systems/bootstrap-os.md)
|
||||
* [Centos](/docs/operating_systems/centos.md)
|
||||
* [Fcos](/docs/operating_systems/fcos.md)
|
||||
* [Flatcar](/docs/operating_systems/flatcar.md)
|
||||
* [Kylinlinux](/docs/operating_systems/kylinlinux.md)
|
||||
@@ -83,6 +82,7 @@
|
||||
* [Ha-mode](/docs/operations/ha-mode.md)
|
||||
* [Hardening](/docs/operations/hardening.md)
|
||||
* [Integration](/docs/operations/integration.md)
|
||||
* [Kernel-requirements](/docs/operations/kernel-requirements.md)
|
||||
* [Large-deployments](/docs/operations/large-deployments.md)
|
||||
* [Mirror](/docs/operations/mirror.md)
|
||||
* [Nodes](/docs/operations/nodes.md)
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
# CentOS and derivatives
|
||||
|
||||
## CentOS 8
|
||||
|
||||
If you have containers that are using iptables in the host network namespace (`hostNetwork=true`),
|
||||
you need to ensure they are using iptables-nft.
|
||||
An example how k8s do the autodetection can be found [in this PR](https://github.com/kubernetes/kubernetes/pull/82966)
|
||||
@@ -1,7 +1,11 @@
|
||||
# Red Hat Enterprise Linux (RHEL)
|
||||
|
||||
The documentation also applies to Red Hat derivatives, including Alma Linux, Rocky Linux, Oracle Linux, and CentOS.
|
||||
|
||||
## RHEL Support Subscription Registration
|
||||
|
||||
The content of this section does not apply to open-source derivatives.
|
||||
|
||||
In order to install packages via yum or dnf, RHEL 7/8 hosts are required to be registered for a valid Red Hat support subscription.
|
||||
|
||||
You can apply for a 1-year Development support subscription by creating a [Red Hat Developers](https://developers.redhat.com/) account. Be aware though that as the Red Hat Developers subscription is limited to only 1 year, it should not be used to register RHEL 7/8 hosts provisioned in Production environments.
|
||||
@@ -25,10 +29,12 @@ rh_subscription_role: "Red Hat Enterprise Server"
|
||||
rh_subscription_sla: "Self-Support"
|
||||
```
|
||||
|
||||
If the RHEL 7/8 hosts are already registered to a valid Red Hat support subscription via an alternative configuration management approach prior to the deployment of Kubespray, the successful RHEL `subscription-manager` status check will simply result in the RHEL subscription registration tasks being skipped.
|
||||
If the RHEL 8/9 hosts are already registered to a valid Red Hat support subscription via an alternative configuration management approach prior to the deployment of Kubespray, the successful RHEL `subscription-manager` status check will simply result in the RHEL subscription registration tasks being skipped.
|
||||
|
||||
## RHEL 8
|
||||
|
||||
If you have containers that are using iptables in the host network namespace (`hostNetwork=true`),
|
||||
you need to ensure they are using iptables-nft.
|
||||
An example how k8s do the autodetection can be found [in this PR](https://github.com/kubernetes/kubernetes/pull/82966)
|
||||
|
||||
The kernel version is lower than the kubenretes 1.32 system validation, please refer to the [kernel requirements](../operations/kernel-requirements.md).
|
||||
|
||||
35
docs/operations/kernel-requirements.md
Normal file
35
docs/operations/kernel-requirements.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# Kernel Requirements
|
||||
|
||||
For Kubernetes >=1.32.0, the recommended kernel LTS version from the 4.x series is 4.19. Any 5.x or 6.x versions are also supported. For cgroups v2 support, the minimum version is 4.15 and the recommended version is 5.8+. Refer to [this link](https://github.com/kubernetes/kubernetes/blob/v1.32.0/vendor/k8s.io/system-validators/validators/types_unix.go#L33). For more information, see [kernel version requirements](https://kubernetes.io/docs/reference/node/kernel-version-requirements).
|
||||
|
||||
If the OS kernel version is lower than required, add the following configuration to ignore the kubeadm preflight errors:
|
||||
|
||||
```yaml
|
||||
kubeadm_ignore_preflight_errors:
|
||||
- SystemVerification
|
||||
```
|
||||
|
||||
The Kernel Version Matrixs:
|
||||
|
||||
| OS Verion | Kernel Verion | Kernel >=4.19 |
|
||||
|--- | --- | --- |
|
||||
| RHEL 9 | 5.14 | :white_check_mark: |
|
||||
| RHEL 8 | 4.18 | :x: |
|
||||
| Alma Linux 9 | 5.14 | :white_check_mark: |
|
||||
| Alma Linux 8 | 4.18 | :x: |
|
||||
| Rocky Linux 9 | 5.14 | :white_check_mark: |
|
||||
| Rocky Linux 8 | 4.18 | :x: |
|
||||
| Oracle Linux 9 | 5.14 | :white_check_mark: |
|
||||
| Oracle Linux 8 | 4.18 | :x: |
|
||||
| Ubuntu 24.04 | 6.6 | :white_check_mark: |
|
||||
| Ubuntu 22.04 | 5.15 | :white_check_mark: |
|
||||
| Ubuntu 20.04 | 5.4 | :white_check_mark: |
|
||||
| Debian 12 | 6.1 | :white_check_mark: |
|
||||
| Debian 11 | 5.10 | :white_check_mark: |
|
||||
| Fedora 40 | 6.8 | :white_check_mark: |
|
||||
| Fedora 39 | 6.5 | :white_check_mark: |
|
||||
| openSUSE Leap 15.5 | 5.14 | :white_check_mark: |
|
||||
| Amazon Linux 2 | 4.14 | :x: |
|
||||
| openEuler 24.03 | 6.6 | :white_check_mark: |
|
||||
| openEuler 22.03 | 5.10 | :white_check_mark: |
|
||||
| openEuler 20.03 | 4.19 | :white_check_mark: |
|
||||
Reference in New Issue
Block a user