Skip to content

Commit 5e79ff6

Browse files
authored
Merge pull request #102838 from erpeters157/CNV-52278
CNV-52278: Configuring routes to cdi-uploadproxy
2 parents 30ea527 + 51151af commit 5e79ff6

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Module included in the following assemblies:
2+
3+
// * virt/post_installation_configuration/virt-post-install-network-config.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="virt-configuring-cdiuploadproxy-routes_{context}"]
7+
= Configuring additional routes to the `cdi-uploadproxy` service
8+
9+
[role="_abstract"]
10+
As a cluster administrator, you can configure additional routes to the `cdi-uploadproxy` service to allow users to upload virtual machine images from outside the cluster.
11+
12+
.Prerequisites
13+
14+
* You installed the {oc-first}.
15+
* You logged in to the cluster as a user with the `cluster-admin` role.
16+
17+
.Procedure
18+
19+
. Configure the route to the external host by running the following command:
20+
+
21+
[source,terminal]
22+
----
23+
$ oc create route reencrypt <route_name> -n openshift-cnv \
24+
--insecure-policy=Redirect \
25+
--hostname=<host_name_or_address> \
26+
--service=cdi-uploadproxy
27+
----
28+
+
29+
where:
30+
31+
<route_name>:: Specifies the name to assign to this custom route.
32+
<host_name_or_address>:: Specifies the fully qualified domain name or IP address of the external host providing image upload access.
33+
34+
. Run the following command to annotate the route. This ensures that the correct Containerized Data Importer (CDI) CA certificate is injected when certificates are rotated:
35+
+
36+
[source,terminal]
37+
----
38+
$ oc annotate route <route_name> -n openshift-cnv \
39+
operator.cdi.kubevirt.io/injectUploadProxyCert="true"
40+
----
41+
+
42+
where:
43+
44+
<route_name>:: The name of the route you created.

virt/post_installation_configuration/virt-post-install-network-config.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,5 @@ include::modules/nw-sriov-network-attachment.adoc[leveloffset=+2]
7070
endif::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]
7171

7272
include::modules/virt-enabling-load-balancer-service-web.adoc[leveloffset=+1]
73+
include::modules/virt-configuring-cdiuploadproxy-routes.adoc[leveloffset=+1]
74+

0 commit comments

Comments
 (0)