Skip to content

Commit 120b4db

Browse files
author
Michael Burke
committed
Convert Feate Set Verification steps to snippet
1 parent 7077e3a commit 120b4db

4 files changed

+51
-119
lines changed

modules/nodes-cluster-enabling-features-cli.adoc

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -49,43 +49,4 @@ Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents mi
4949

5050
.Verification
5151

52-
You can verify that the feature gates are enabled by looking at the `kubelet.conf` file on a node after the nodes return to the ready state.
53-
54-
. Start a debug session for a node:
55-
+
56-
[source,terminal]
57-
----
58-
$ oc debug node/<node_name>
59-
----
60-
61-
. Change your root directory to the host:
62-
+
63-
[source,terminal]
64-
----
65-
sh-4.2# chroot /host
66-
----
67-
68-
. View the `kubelet.conf` file:
69-
+
70-
[source,terminal]
71-
----
72-
sh-4.2# cat /etc/kubernetes/kubelet.conf
73-
----
74-
+
75-
.Sample output
76-
+
77-
[source,terminal]
78-
----
79-
...
80-
featureGates:
81-
InsightsOperatorPullingSCA: true,
82-
LegacyNodeRoleBehavior: false
83-
...
84-
----
85-
+
86-
The features that are listed as `true` are enabled on your cluster.
87-
+
88-
[NOTE]
89-
====
90-
The features listed vary depending upon the {product-title} version.
91-
====
52+
include::snippets/nodes-cluster-enabling-features-verification.adoc[]

modules/nodes-cluster-enabling-features-console.adoc

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -50,42 +50,4 @@ Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents mi
5050

5151
.Verification
5252

53-
You can verify that the feature gates are enabled by looking at the `kubelet.conf` file on a node after the nodes return to the ready state.
54-
55-
. From the *Administrator* perspective in the web console, navigate to *Compute* -> *Nodes*.
56-
57-
. Select a node.
58-
59-
. In the *Node details* page, click *Terminal*.
60-
61-
. In the terminal window, change your root directory to the host:
62-
+
63-
[source,terminal]
64-
----
65-
sh-4.2# chroot /host
66-
----
67-
68-
. View the `kubelet.conf` file:
69-
+
70-
[source,terminal]
71-
----
72-
sh-4.2# cat /etc/kubernetes/kubelet.conf
73-
----
74-
+
75-
.Sample output
76-
+
77-
[source,terminal]
78-
----
79-
...
80-
featureGates:
81-
InsightsOperatorPullingSCA: true,
82-
LegacyNodeRoleBehavior: false
83-
...
84-
----
85-
+
86-
The features that are listed as `true` are enabled on your cluster.
87-
+
88-
[NOTE]
89-
====
90-
The features listed vary depending upon the {product-title} version.
91-
====
53+
include::snippets/nodes-cluster-enabling-features-verification.adoc[]

modules/nodes-cluster-enabling-features-install.adoc

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -47,43 +47,4 @@ Enabling the `TechPreviewNoUpgrade` feature set cannot be undone and prevents mi
4747

4848
.Verification
4949

50-
You can verify that the feature gates are enabled by looking at the `kubelet.conf` file on a node after the cluster is installed.
51-
52-
. Start a debug session for a node:
53-
+
54-
[source,terminal]
55-
----
56-
$ oc debug node/<node_name>
57-
----
58-
59-
. Change your root directory to the host:
60-
+
61-
[source,terminal]
62-
----
63-
sh-4.2# chroot /host
64-
----
65-
66-
. View the `kubelet.conf` file:
67-
+
68-
[source,terminal]
69-
----
70-
sh-4.2# cat /etc/kubernetes/kubelet.conf
71-
----
72-
+
73-
.Sample output
74-
+
75-
[source,terminal]
76-
----
77-
...
78-
featureGates:
79-
TechPreviewNoUpgrade: true,
80-
LegacyNodeRoleBehavior: false
81-
...
82-
----
83-
+
84-
The features that are listed as `true` are enabled on your cluster.
85-
+
86-
[NOTE]
87-
====
88-
The features listed vary depending upon the {product-title} version.
89-
====
50+
include::snippets/nodes-cluster-enabling-features-verification.adoc[]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * modules/clusters/nodes-cluster-enabling-features-install.adoc
4+
// * modules/clusters/nodes-cluster-enabling-features-console.adoc
5+
// * modules/nodes-cluster-enabling-features-cli.adoc
6+
7+
:_content-type: SNIPPET
8+
9+
10+
You can verify that the feature gates are enabled by looking at the `kubelet.conf` file on a node after the nodes return to the ready state.
11+
12+
. From the *Administrator* perspective in the web console, navigate to *Compute* -> *Nodes*.
13+
14+
. Select a node.
15+
16+
. In the *Node details* page, click *Terminal*.
17+
18+
. In the terminal window, change your root directory to the `/host` directory:
19+
+
20+
[source,terminal]
21+
----
22+
sh-4.2# chroot /host
23+
----
24+
25+
. View the `kubelet.conf` file:
26+
+
27+
[source,terminal]
28+
----
29+
sh-4.2# cat /etc/kubernetes/kubelet.conf
30+
----
31+
+
32+
.Sample output
33+
+
34+
[source,terminal]
35+
----
36+
...
37+
featureGates:
38+
InsightsOperatorPullingSCA: true,
39+
LegacyNodeRoleBehavior: false
40+
...
41+
----
42+
+
43+
The features that are listed as `true` are enabled on your cluster.
44+
+
45+
[NOTE]
46+
====
47+
The features listed vary depending upon the {product-title} version.
48+
====

0 commit comments

Comments
 (0)