Skip to content

Commit c7c9f17

Browse files
authored
Merge pull request #33118 from ousleyp/cnv-10282
CNV-10282: disable TLS with the HCO
2 parents 5aed61f + 47d2e7f commit c7c9f17

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

modules/virt-disabling-tls-for-registry.adoc

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,27 @@
55
[id="virt-disabling-tls-for-registry_{context}"]
66
= Disabling TLS for a container registry to use as insecure registry
77

8-
You can disable TLS (transport layer security) for a container registry by adding the registry to the `cdi-insecure-registries` config map.
8+
You can disable TLS (transport layer security) for one or more container registries by editing the `insecureRegistries` field of the `HyperConverged` custom resource.
99

1010
.Prerequisites
1111

1212
* Log in to the cluster as a user with the `cluster-admin` role.
1313

1414
.Procedure
1515

16-
* Add the registry to the `cdi-insecure-registries` config map in the `cdi` namespace.
16+
* Edit the `HyperConverged` custom resource and add a list of insecure registries to the `spec.storageImport.insecureRegistries` field.
1717
+
18-
[source,terminal]
18+
[source,yaml]
1919
----
20-
$ oc patch configmap cdi-insecure-registries -n cdi \
21-
--type merge -p '{"data":{"mykey": "<insecure-registry-host>:5000"}}' <1>
20+
apiVersion: hco.kubevirt.io/v1beta1
21+
kind: HyperConverged
22+
metadata:
23+
name: kubevirt-hyperconverged
24+
namespace: openshift-cnv
25+
spec:
26+
storageImport:
27+
insecureRegistries: <1>
28+
- "private-registry-example-1:5000"
29+
- "private-registry-example-2:5000"
2230
----
23-
<1> Replace `<insecure-registry-host>` with the registry hostname.
31+
<1> Replace the examples in this list with valid registry host names.

virt/virtual_machines/importing_vms/virt-importing-virtual-machine-images-datavolumes.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ in the same namespace as the data volume and referenced in the data volume confi
2424

2525
* To import a container disk:
2626
** You might need to xref:../../../virt/virtual_machines/virtual_disks/virt-using-container-disks-with-vms.adoc#virt-preparing-container-disk-for-vms_virt-using-container-disks-with-vms[prepare a container disk from a virtual machine image] and store it in your container registry before importing it.
27-
** If the container registry does not have TLS, you must xref:../../../virt/virtual_machines/virtual_disks/virt-using-container-disks-with-vms.adoc#virt-disabling-tls-for-registry_virt-using-container-disks-with-vms[add the registry to the `cdi-insecure-registries` config map] before you can import a container disk from it.
27+
** If the container registry does not have TLS, you must xref:../../../virt/virtual_machines/virtual_disks/virt-using-container-disks-with-vms.adoc#virt-disabling-tls-for-registry_virt-using-container-disks-with-vms[add the registry to the `insecureRegistries` field of the `HyperConverged` custom resource] before you can import a container disk from it.
2828

2929
* You might need to xref:../../../virt/virtual_machines/virtual_disks/virt-preparing-cdi-scratch-space.adoc#virt-defining-storageclass-in-cdi_virt-preparing-cdi-scratch-space[define a storage class or prepare CDI scratch space]
3030
for this operation to complete successfully.

0 commit comments

Comments
 (0)