Skip to content

Commit 17cf65c

Browse files
author
Shikha Jhala
committed
CNV-45771: Added instructions to remove custom machine config pool
1 parent 49426d9 commit 17cf65c

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

modules/virt-configuring-cluster-dpdk.adoc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * virt/vm_networking/virt-connecting-vm-to-sriov.adoc
3+
// * virt/vm_networking/virt-using-dpdk-with-sriov.adoc
44

55
:_mod-docs-content-type: PROCEDURE
66
[id="virt-configuring-cluster-dpdk_{context}"]
@@ -17,7 +17,9 @@ You can configure an {product-title} cluster to run Data Plane Development Kit (
1717
.Procedure
1818
// Cannot label nodes in ROSA/OSD, but can edit machine pools
1919
. Map your compute nodes topology to determine which Non-Uniform Memory Access (NUMA) CPUs are isolated for DPDK applications and which ones are reserved for the operating system (OS).
20-
. Label a subset of the compute nodes with a custom role; for example, `worker-dpdk`:
20+
. If your {product-title} cluster uses separate control plane and compute nodes for high-availability:
21+
22+
.. Label a subset of the compute nodes with a custom role; for example, `worker-dpdk`:
2123
+
2224
ifndef::openshift-rosa[]
2325
[source,terminal]
@@ -33,7 +35,7 @@ $ rosa edit machinepool --cluster=<cluster_name> <machinepool_ID> node-role.kube
3335
----
3436
endif::openshift-rosa[]
3537

36-
. Create a new `MachineConfigPool` manifest that contains the `worker-dpdk` label in the `spec.machineConfigSelector` object:
38+
.. Create a new `MachineConfigPool` manifest that contains the `worker-dpdk` label in the `spec.machineConfigSelector` object:
3739
+
3840
.Example `MachineConfigPool` manifest
3941
[source,yaml]

modules/virt-removing-custom-mcp.adoc

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * virt/vm_networking/virt-using-dpdk-with-sriov.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="virt-removing-custom-mcp_{context}"]
7+
= Removing a custom machine config pool for high-availability clusters
8+
9+
You can delete a custom machine config pool that you previously created for your high-availability cluster.
10+
11+
.Prerequisites
12+
* You have access to the cluster as a user with `cluster-admin` permissions.
13+
* You have installed the OpenShift CLI (`oc`).
14+
* You have created a custom machine config pool by labeling a subset of the compute nodes with a custom role and creating a `MachineConfigPool` manifest with that label.
15+
16+
.Procedure
17+
18+
. Remove the `worker-dpdk` label from the compute nodes by running the following command:
19+
+
20+
[source,terminal]
21+
----
22+
$ oc label node <node_name> node-role.kubernetes.io/worker-dpdk-
23+
----
24+
25+
. Delete the `MachineConfigPool` manifest that contains the `worker-dpdk` label by entering the following command:
26+
+
27+
[source,terminal]
28+
----
29+
$ oc delete mcp worker-dpdk
30+
----

virt/vm_networking/virt-using-dpdk-with-sriov.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ ifndef::openshift-rosa,openshift-dedicated[]
2424
* link:https://access.redhat.com/solutions/5688941[Creating a custom machine config pool]
2525
endif::openshift-rosa,openshift-dedicated[]
2626
27+
include::modules/virt-removing-custom-mcp.adoc[leveloffset=+2]
28+
2729
include::modules/virt-configuring-vm-project-dpdk.adoc[leveloffset=+1]
2830
2931
[role="_additional-resources_configuring-project-dpdk"]

0 commit comments

Comments
 (0)