5.7.2. Removing the wasp-agent component
If you no longer need memory overcommitment, you can remove the wasp-agent component and associated resources from your cluster.
Prerequisites
-
You have logged in to the cluster with the
cluster-adminrole. -
You have installed the OpenShift CLI (
oc).
Procedure
Revert the memory overcommitment configuration by running the following command:
$ oc -n openshift-cnv patch HyperConverged/kubevirt-hyperconverged \ --type='json' \ -p='[{"op": "remove", "path": "/spec/higherWorkloadDensity"}]'Delete the
MachineConfigthat provisions swap memory by running the following command:$ oc delete machineconfig 90-worker-swap
Verification
Confirm that swap is no longer enabled on a node, by running the following command and observing the output:
$ oc debug node/<selected_node> -- free -mEnsure that the
Swap:row shows0or that no swap space shows as provisioned.