Skip to content
Open
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
44 changes: 44 additions & 0 deletions modules/virt-configuring-cdiuploadproxy-routes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// Module included in the following assemblies:

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

:_mod-docs-content-type: PROCEDURE
[id="virt-configuring-cdiuploadproxy-routes_{context}"]
= Configuring additional routes to the `cdi-uploadproxy` service

[role="_abstract"]
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.

.Prerequisites

* You installed the {oc-first}.
* You logged in to the cluster as a user with the `cluster-admin` role.

.Procedure

. Configure the route to the external host by running the following command:
+
[source,terminal]
----
$ oc create route reencrypt <route_name> -n openshift-cnv \
--insecure-policy=Redirect \
--hostname=<host_name_or_address> \
--service=cdi-uploadproxy
----
+
where:

<route_name>:: Specifies the name to assign to this custom route.
<host_name_or_address>:: Specifies the fully qualified domain name or IP address of the external host providing image upload access.

. 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:
+
[source,terminal]
----
$ oc annotate route <route_name> -n openshift-cnv \
operator.cdi.kubevirt.io/injectUploadProxyCert="true"
----
+
where:

<route_name>:: The name of the route you created.
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,5 @@ include::modules/nw-sriov-network-attachment.adoc[leveloffset=+2]
endif::openshift-rosa,openshift-dedicated,openshift-rosa-hcp[]

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