Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: updating the HCO prep to use HCO API #18

Merged
merged 1 commit into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ others, for example:

## Configuring higher workload density with the wasp-agent

[wasp-agent] is an component to enable an OpenShift cluster to assign
[wasp-agent] is a component to enable an OpenShift cluster to assign
SWAP resources to burstable VM workloads only.

SWAP usage is supported on worker nodes only.
Expand Down Expand Up @@ -52,7 +52,7 @@ $ oc adm policy add-scc-to-user -n wasp privileged -z wasp
Create a `KubeletConfiguration` according to the following
[example](../manifests/kubelet-configuration-with-swap.yaml).

4. Create `MachineConfig` to provision swap
4. Create `MachineConfig` to provision swap according to the following [example](../manifests/machineconfig-add-swap.yaml)

> [!IMPORTANT]
> In order to have enough swap for the worst case scenario, it must
Expand Down
18 changes: 3 additions & 15 deletions manifests/prep-hco.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
apiVersion: hco.kubevirt.io/v1beta1
kind: HyperConverged
metadata:
metadata:
name: kubevirt-hyperconverged
namespace: openshift-cnv
annotations:
kubevirt.kubevirt.io/jsonpatch: |-
[
{
"op": "add",
"path": "/spec/configuration/developerConfiguration/memoryOvercommit",
"value": 200
},
{
"op": "add",
"path": "/spec/configuration/developerConfiguration/useEmulation",
"value": true
}
]
spec:
higherWorkloadDensity:
memoryOvercommitPercentage: 150