Skip to content

Commit 31a1999

Browse files
committed
Updated the documentation to explain the fields in the SCC to control the sysctrls
Removed '/or' to meet the standards of the IBM Style Guide. pick 33906978f Updated the documentation to explain the fields in the SCC to control the sysctrls
1 parent a3351d3 commit 31a1999

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

modules/nodes-containers-sysctls-unsafe.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@
66
= Enabling unsafe sysctls
77

88
A cluster administrator can allow certain unsafe sysctls for very special
9-
situations such as high-performance or real-time application tuning.
9+
situations such as high performance or real-time application tuning.
1010

1111
If you want to use unsafe sysctls, a cluster administrator must enable them
1212
individually for a specific type of node. The sysctls must be namespaced.
1313

14+
You can further control which sysctls can be set in pods by specifying lists of sysctls or sysctl patterns in the `forbiddenSysctls` and `allowedUnsafeSysctls` fields of the Security Context Constraints.
15+
16+
- The `forbiddenSysctls` option excludes specific sysctls.
17+
- The `allowedUnsafeSysctls` option controls specific needs such as high performance or real-time application tuning.
18+
1419
[WARNING]
1520
====
1621
Due to their nature of being unsafe, the use of unsafe sysctls is
@@ -20,7 +25,7 @@ containers, resource shortage, or breaking a node.
2025

2126
.Procedure
2227

23-
. Add a label to the machine config pool where the containers where containers
28+
. Add a label to the machine config pool where the containers where containers
2429
with the unsafe sysctls will run:
2530
+
2631
[source,terminal]
@@ -59,7 +64,7 @@ spec:
5964
----
6065
<1> Specify the label from the machine config pool.
6166
<2> List the unsafe sysctls you want to allow.
62-
67+
6368
. Create the object:
6469
+
6570
[source,terminal]
@@ -119,4 +124,3 @@ $ oc get machineconfig 99-worker-XXXXXX-XXXXX-XXXX-XXXXX-kubelet -o json | grep
119124
----
120125
+
121126
You can now add unsafe sysctls to pods as needed.
122-

0 commit comments

Comments
 (0)