Skip to content

Commit 6f7483a

Browse files
committed
Change hco to hyperconverged
Signed-off-by: Avital Pinnick <[email protected]>
1 parent 440713e commit 6f7483a

File tree

33 files changed

+126
-122
lines changed

33 files changed

+126
-122
lines changed

modules/virt-autoupdate-custom-bootsource.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
. Open the `HyperConverged` CR in your default editor by running the following command:
1919
+
20-
[source,terminal]
20+
[source,terminal,subs="attributes+"]
2121
----
22-
$ oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv
22+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
2323
----
2424

2525
. Edit the `HyperConverged` CR, adding the appropriate template and boot source in the `dataImportCronTemplates` section. For example:

modules/virt-configuring-certificate-rotation.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ You can do this during {VirtProductName} installation in the web console or afte
1212

1313
. Open the `HyperConverged` CR by running the following command:
1414
+
15-
[source,terminal]
15+
[source,terminal,subs="attributes+"]
1616
----
17-
$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
17+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
1818
----
1919

2020
. Edit the `spec.certConfig` fields as shown in the following example. To avoid overloading the system, ensure that all values are greater than or equal to 10 minutes. Express all values as strings that comply with the link:https://golang.org/pkg/time/#ParseDuration[golang `ParseDuration` format].
2121

2222
+
23-
[source,yaml]
23+
[source,yaml,subs="attributes+"]
2424
----
2525
apiVersion: hco.kubevirt.io/v1beta1
2626
kind: HyperConverged
2727
metadata:
28-
name: kubevirt-hyperconverged
29-
namespace: openshift-cnv
28+
name: kubevirt-hyperconverged
29+
namespace: {CNVNamespace}
3030
spec:
3131
certConfig:
3232
ca:

modules/virt-configuring-cluster-dpdk.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ $ oc get performanceprofiles.performance.openshift.io profile-1 -o=jsonpath='{.s
8888

8989
. Set the previously obtained `RuntimeClass` name as the default container runtime class for the `virt-launcher` pods by editing the `HyperConverged` custom resource (CR):
9090
+
91-
[source,terminal]
91+
[source,terminal,subs="attributes+"]
9292
----
93-
$ oc patch -n openshift-cnv hco kubevirt-hyperconverged \
93+
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
9494
--type='json' -p='[{"op": "add", "path": "/spec/defaultRuntimeClass", "value":"<runtimeclass-name>"}]'
9595
----
9696
+

modules/virt-configuring-default-cpu-model.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ The `defaultCPUModel` is case sensitive.
2121

2222
. Open the `HyperConverged` CR by running the following command:
2323
+
24-
[source,terminal]
24+
[source,terminal,subs="attributes+"]
2525
----
26-
$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
26+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
2727
----
2828

2929
. Add the `defaultCPUModel` field to the CR and set the value to the name of a CPU model that exists in the cluster:
3030

3131
+
32-
[source,yaml]
32+
[source,yaml,subs="attributes+"]
3333
----
3434
apiVersion: hco.kubevirt.io/v1beta1
3535
kind: HyperConverged
3636
metadata:
3737
name: kubevirt-hyperconverged
38-
namespace: openshift-cnv
38+
namespace: {CNVNamespace}
3939
spec:
4040
defaultCPUModel: "EPYC"
4141
----

modules/virt-configuring-highburst-profile.adoc

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,22 @@ Use the `highBurst` profile to create and maintain a large number of virtual mac
1313

1414
* Apply the following patch to enable the `highBurst` tuning policy profile:
1515
+
16-
[source,terminal]
16+
[source,terminal,subs="attributes+"]
1717
----
18-
$ oc patch -n openshift-cnv hco kubevirt-hyperconverged \
19-
--type=json -p='[{"op": "add", "path": "/spec/tuningPolicy", \
20-
"value": "highBurst"}]'
18+
$ oc patch hyperconverged kubevirt-hyperconverged -n {CNVNamespace} \
19+
--type=json -p='[{"op": "add", "path": "/spec/tuningPolicy", \
20+
"value": "highBurst"}]'
2121
----
2222
2323
.Verification
2424

2525
* Run the following command to verify the `highBurst` tuning policy profile is enabled:
26-
2726
+
28-
[source,terminal]
27+
[source,terminal,subs="attributes+"]
2928
----
3029
$ oc get kubevirt.kubevirt.io/kubevirt-kubevirt-hyperconverged \
31-
-n openshift-cnv -o go-template --template='{{range $config, \
32-
$value := .spec.configuration}} {{if eq $config "apiConfiguration" \
33-
"webhookConfiguration" "controllerConfiguration" "handlerConfiguration"}} \
34-
{{"\n"}} {{$config}} = {{$value}} {{end}} {{end}} {{"\n"}}
30+
-n {CNVNamespace} -o go-template --template='{{range $config, \
31+
$value := .spec.configuration}} {{if eq $config "apiConfiguration" \
32+
"webhookConfiguration" "controllerConfiguration" "handlerConfiguration"}} \
33+
{{"\n"}} {{$config}} = {{$value}} {{end}} {{end}} {{"\n"}}
3534
----

modules/virt-configuring-live-migration-limits.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ Configure live migration limits and timeouts for the cluster by updating the `Hy
1414

1515
* Edit the `HyperConverged` CR and add the necessary live migration parameters.
1616
+
17-
[source,terminal]
17+
[source,terminal,subs="attributes+"]
1818
----
19-
$ oc edit hco -n openshift-cnv kubevirt-hyperconverged
19+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
2020
----
2121
+
2222
.Example configuration file
23-
[source,yaml]
23+
[source,yaml,subs="attributes+"]
2424
----
2525
apiVersion: hco.kubevirt.io/v1beta1
2626
kind: HyperConverged
2727
metadata:
2828
name: kubevirt-hyperconverged
29-
namespace: openshift-cnv
29+
namespace: {CNVNamespace}
3030
spec:
3131
liveMigrationConfig: <1>
3232
bandwidthPerMigration: 64Mi

modules/virt-configuring-obsolete-cpu-models.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ You can configure a list of obsolete CPU models by editing the `HyperConverged`
1212

1313
* Edit the `HyperConverged` custom resource, specifying the obsolete CPU models in the `obsoleteCPUs` array. For example:
1414
+
15-
[source,yaml]
15+
[source,yaml,subs="attributes+"]
1616
----
1717
apiVersion: hco.kubevirt.io/v1beta1
1818
kind: HyperConverged
1919
metadata:
2020
name: kubevirt-hyperconverged
21-
namespace: openshift-cnv
21+
namespace: {CNVNamespace}
2222
spec:
2323
obsoleteCPUs:
2424
cpuModels: <1>

modules/virt-configuring-pod-log-verbosity.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ You can configure the verbosity level of {VirtProductName} pod logs by editing t
1212

1313
. To set log verbosity for specific components, open the `HyperConverged` CR in your default text editor by running the following command:
1414
+
15-
[source,terminal]
15+
[source,terminal,subs="attributes+"]
1616
----
17-
$ oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv
17+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
1818
----
1919

2020
. Set the log level for one or more components by editing the `spec.logVerbosityConfig` stanza. For example:

modules/virt-configuring-secondary-dns-server.adoc

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,17 @@ The Cluster Network Addons Operator (CNAO) deploys a Domain Name Server (DNS) se
1818

1919
. Create a load balancer service to expose the DNS server outside the cluster by running the `oc expose` command according to the following example:
2020
+
21-
[source,terminal]
21+
[source,terminal,subs="attributes+"]
2222
----
23-
$ oc expose -n openshift-cnv deployment/secondary-dns --name=dns-lb --type=LoadBalancer --port=53 --target-port=5353 --protocol='UDP'
23+
$ oc expose -n {CNVNamespace} deployment/secondary-dns --name=dns-lb \
24+
--type=LoadBalancer --port=53 --target-port=5353 --protocol='UDP'
2425
----
2526

2627
. Retrieve the external IP address by running the following command:
2728
+
28-
[source,terminal]
29+
[source,terminal,subs="attributes+"]
2930
----
30-
$ oc get service -n openshift-cnv
31+
$ oc get service -n {CNVNamespace}
3132
----
3233
+
3334
.Example output
@@ -39,20 +40,20 @@ dns-lb LoadBalancer 172.30.27.5 10.46.41.94 53:31829/TCP 5s
3940

4041
. Edit the `HyperConverged` CR in your default editor by running the following command:
4142
+
42-
[source,terminal]
43+
[source,terminal,subs="attributes+"]
4344
----
44-
$ oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv
45+
$ oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
4546
----
4647

4748
. Enable the DNS server and monitoring components according to the following example:
4849
+
49-
[source,yaml]
50+
[source,yaml,subs="attributes+"]
5051
----
5152
apiVersion: hco.kubevirt.io/v1beta1
5253
kind: HyperConverged
5354
metadata:
5455
name: kubevirt-hyperconverged
55-
namespace: openshift-cnv
56+
namespace: {CNVNamespace}
5657
spec:
5758
featureGates:
5859
deployKubeSecondaryDNS: true

modules/virt-configuring-secondary-network-vm-live-migration.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ To configure a dedicated secondary network for live migration, you must first cr
2121
. Create a `NetworkAttachmentDefinition` manifest.
2222
+
2323
.Example configuration file
24-
[source,yaml]
24+
[source,yaml,subs="attributes+"]
2525
----
2626
apiVersion: "k8s.cni.cncf.io/v1"
2727
kind: NetworkAttachmentDefinition
2828
metadata:
2929
name: my-secondary-network <1>
30-
namespace: openshift-cnv <2>
30+
namespace: {CNVNamespace} <2>
3131
spec:
3232
config: '{
3333
"cniVersion": "0.3.1",
@@ -49,9 +49,9 @@ spec:
4949

5050
. Open the `HyperConverged` CR in your default editor by running the following command:
5151
+
52-
[source,terminal]
52+
[source,terminal,subs="attributes+"]
5353
----
54-
oc edit hyperconverged kubevirt-hyperconverged -n openshift-cnv
54+
oc edit hyperconverged kubevirt-hyperconverged -n {CNVNamespace}
5555
----
5656

5757
. Add the name of the `NetworkAttachmentDefinition` object to the `spec.liveMigrationConfig` stanza of the `HyperConverged` CR. For example:

0 commit comments

Comments
 (0)