-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35154 from openshift-cherrypick-robot/cherry-pick…
…-35086-to-enterprise-4.8 [enterprise-4.8] CNV-12482: New content for skip node annotation
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Module included in the following assembly: | ||
// | ||
// * virt/node_maintenance/virt-preventing-node-reconciliation.adoc | ||
// | ||
|
||
[id="virt-using-skip-node_{context}"] | ||
= Using skip-node annotation | ||
|
||
If you want the `node-labeller` to skip a node, annotate that node by using the `oc` CLI. | ||
|
||
.Prerequisites | ||
* You have installed the OpenShift CLI (`oc`). | ||
|
||
.Procedure | ||
|
||
* Annotate the node that you want to skip by running the following command: | ||
|
||
+ | ||
[source,terminal] | ||
---- | ||
$ oc annotate node <node_name> node-labeller.kubevirt.io/skip-node=true <1> | ||
---- | ||
<1> Replace `<node_name>` with the name of the relevant node to skip. | ||
+ | ||
Reconciliation resumes on the next cycle after the node annotation is removed or set to false. |
16 changes: 16 additions & 0 deletions
16
virt/node_maintenance/virt-preventing-node-reconciliation.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[id="virt-using-skip-node"] | ||
= Preventing node reconciliation | ||
include::modules/virt-document-attributes.adoc[] | ||
include::modules/common-attributes.adoc[] | ||
:context: virt-preventing-node-reconciliation | ||
|
||
toc::[] | ||
|
||
Use `skip-node` annotation to prevent the `node-labeller` from reconciling a node. | ||
|
||
include::modules/virt-using-skip-node.adoc[leveloffset=+1] | ||
|
||
[id="additional-resources_{context}"] | ||
== Additional resources | ||
|
||
* xref:../../virt/node_maintenance/virt-managing-node-labeling-obsolete-cpu-models.adoc#virt-managing-node-labeling-obsolete-cpu-models[Managing node labeling for obsolete CPU models] |