Skip to content

Commit f55eaa8

Browse files
authored
Merge pull request #70086 from mburke5678/okd-unify-cgroups
OCPBUGS-26932 unify cgroups docs for okd 4.14 and ocp 4.14
2 parents 22b7835 + 94d2ad5 commit f55eaa8

File tree

6 files changed

+19
-178
lines changed

6 files changed

+19
-178
lines changed

_topic_maps/_topic_map.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2459,10 +2459,6 @@ Topics:
24592459
Distros: openshift-enterprise
24602460
- Name: Configuring the Linux cgroup version on your nodes
24612461
File: nodes-cluster-cgroups-2
2462-
Distros: openshift-enterprise
2463-
- Name: Configuring the Linux cgroup version on your nodes
2464-
File: nodes-cluster-cgroups-okd
2465-
Distros: openshift-origin
24662462
- Name: Enabling features using FeatureGates
24672463
File: nodes-cluster-enabling-features
24682464
Distros: openshift-enterprise,openshift-origin

modules/nodes-clusters-cgroups-2.adoc

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,21 @@ endif::[]
1414
[id="nodes-clusters-cgroups-2_{context}"]
1515
= Configuring Linux cgroup
1616

17+
ifndef::openshift-origin[]
1718
ifdef::post[]
18-
As of {product-title} 4.14, {product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster. If you are using cgroup v1 on {product-title} 4.13 or earlier, migrating to {product-title} 4.14 will not automatically update your cgroup configuration to version 2. A fresh installation of {product-title} 4.14 will use cgroup v2 by default. However, you can enable link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html[Linux control group version 1] (cgroup v1) upon installation. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
19+
As of {product-title} 4.14, {product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster. If you are using cgroup v1 on {product-title} 4.13 or earlier, migrating to {product-title} 4.14 will not automatically update your cgroup configuration to version 2. A fresh installation of {product-title} 4.14 will use cgroup v2 by default. However, you can enable link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html[Linux control group version 1] (cgroup v1) upon installation.
20+
endif::post[]
21+
endif::openshift-origin[]
22+
ifdef::openshift-origin[]
23+
ifdef::post[]
24+
{product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster.
25+
endif::post[]
26+
endif::openshift-origin[]
1927

28+
ifdef::post[]
2029
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation.
2130

22-
You can change between cgroup v1 and cgroup v2, as needed. For more information, see "Configuring the Linux cgroup on your nodes" in the "Additional resources" of this section.
31+
You can change between cgroup v1 and cgroup v2, as needed. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
2332
endif::post[]
2433

2534
ifdef::nodes[]

modules/nodes-clusters-cgroups-okd-configure.adoc

Lines changed: 0 additions & 147 deletions
This file was deleted.

nodes/clusters/nodes-cluster-cgroups-2.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
As of {product-title} 4.14, {product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster. If you are using cgroup v1 on {product-title} 4.13 or earlier, migrating to {product-title} 4.14 will not automatically update your cgroup configuration to version 2. A fresh installation of {product-title} 4.14 will use cgroup v2 by default. However, you can enable link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html[Linux control group version 1] (cgroup v1) upon installation. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
9+
ifndef::openshift-origin[]
10+
As of {product-title} 4.14, {product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster. If you are using cgroup v1 on {product-title} 4.13 or earlier, migrating to {product-title} 4.14 will not automatically update your cgroup configuration to version 2. A fresh installation of {product-title} 4.14 will use cgroup v2 by default. However, you can enable link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html[Linux control group version 1] (cgroup v1) upon installation.
11+
endif::openshift-origin[]
12+
ifdef::openshift-origin[]
13+
{product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster.
14+
endif::openshift-origin[]
1015

1116
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation.
1217

18+
You can change between cgroup v1 and cgroup v2, as needed. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
19+
1320
[NOTE]
1421
====
1522
* If you run third-party monitoring and security agents that depend on the cgroup file system, update the agents to a version that supports cgroup v2.

nodes/clusters/nodes-cluster-cgroups-okd.adoc

Lines changed: 0 additions & 19 deletions
This file was deleted.

post_installation_configuration/cluster-tasks.adoc

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,17 +628,12 @@ include::modules/machine-autoscaler-cr.adoc[leveloffset=+2]
628628
:FeatureResourceName: MachineAutoscaler
629629
include::modules/deploying-resource.adoc[leveloffset=+2]
630630

631-
ifndef::openshift-origin[]
632631
include::modules/nodes-clusters-cgroups-2.adoc[leveloffset=+1]
633632

634633
[role="_additional-resources"]
635634
.Additional resources
636635

637636
* xref:../nodes/clusters/nodes-cluster-cgroups-2.adoc#nodes-cluster-cgroups-2[Configuring the Linux cgroup version on your nodes]
638-
endif::openshift-origin[]
639-
ifdef::openshift-origin[]
640-
include::modules/nodes-clusters-cgroups-okd-configure.adoc[leveloffset=+1]
641-
endif::openshift-origin[]
642637

643638
[id="post-install-tp-tasks"]
644639
== Enabling Technology Preview features using FeatureGates

0 commit comments

Comments
 (0)