Skip to content

Commit 49426d9

Browse files
authored
Merge pull request #84900 from ousleyp/fix-wasp
Fix few issues in wasp-agent deployment guide
2 parents 9e40892 + 6b60eb4 commit 49426d9

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

modules/virt-using-wasp-agent-to-configure-higher-vm-workload-density.adoc

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,16 +138,11 @@ $ oc adm policy add-scc-to-user -n wasp privileged -z wasp
138138
$ oc wait mcp worker --for condition=Updated=True --timeout=-1s
139139
----
140140
141-
. Determine the pull URL for the wasp agent image by running the following commands:
141+
. Determine the pull URL for the wasp agent image by running the following command:
142142
+
143143
[source,terminal]
144144
----
145-
$ OCP_VERSION=$(oc get clusterversion | awk 'NR==2' |cut -d' ' -f4 | cut -d'-' -f1)
146-
----
147-
+
148-
[source,terminal]
149-
----
150-
$ oc get csv kubevirt-hyperconverged-operator.v${OCP_VERSION} -nopenshift-cnv -ojson | jq '.spec.relatedImages[] | select(.name|test(".*wasp-agent.*")) | .image'
145+
$ oc get csv -n openshift-cnv -l=operators.coreos.com/kubevirt-hyperconverged.openshift-cnv -ojson | jq '.items[0].spec.relatedImages[] | select(.name|test(".*wasp-agent.*")) | .image'
151146
----
152147
153148
. Deploy `wasp-agent` by creating a `DaemonSet` object as shown in the following example:
@@ -177,7 +172,7 @@ spec:
177172
containers:
178173
- env:
179174
- name: SWAP_UTILIZATION_THRESHOLD_FACTOR
180-
value: 0.8
175+
value: "0.8"
181176
- name: MAX_AVERAGE_SWAP_IN_PAGES_PER_SECOND
182177
value: "1000"
183178
- name: MAX_AVERAGE_SWAP_OUT_PAGES_PER_SECOND

0 commit comments

Comments
 (0)