Skip to content

Commit add85b1

Browse files
authored
Merge pull request #96362 from openshift-cherrypick-robot/cherry-pick-96171-to-enterprise-4.20
[enterprise-4.20] OSDOCS-14908 changed the order in the Configuring certificates to sec…
2 parents f718558 + 4cc0520 commit add85b1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

modules/cert-manager-configuring-routes.adoc

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,6 @@ The following steps demonstrate the process of utilizing the {cert-manager-opera
1616
1717
.Procedure
1818

19-
. Create a `Route` resource for your `Service` resource using edge TLS termination and a custom hostname by running the following command. The hostname will be used while creating a `Certificate` resource in the following steps.
20-
+
21-
[source, terminal]
22-
----
23-
$ oc create route edge <route_name> \ # <1>
24-
--service=<service_name> \ # <2>
25-
--hostname=<hostname> \ # <3>
26-
--namespace=<namespace> # <4>
27-
----
28-
<1> Specify your route's name.
29-
<2> Specify the service you want to expose.
30-
<3> Specify the hostname of your route.
31-
<4> Specify the namespace where your route is located.
32-
3319
. Create an `Issuer` to configure the HTTP-01 solver by running the following command. For other ACME issuer types, see "Configuring ACME an issuer".
3420
+
3521
.Example `Issuer.yaml` file
@@ -106,6 +92,20 @@ $ oc create rolebinding secret-reader-binding \
10692
----
10793
<1> Specify the namespace where both your secret and route are located.
10894

95+
. Create a route for your service resource, that uses edge TLS termination and a custom hostname, by running the following command. The hostname is used when creating a `Certificate` resource in the next step.
96+
+
97+
[source, terminal]
98+
----
99+
$ oc create route edge <route_name> \ # <1>
100+
--service=<service_name> \ # <2>
101+
--hostname=<hostname> \ # <3>
102+
--namespace=<namespace> # <4>
103+
----
104+
<1> Specify your route's name.
105+
<2> Specify the service you want to expose.
106+
<3> Specify the hostname of your route.
107+
<4> Specify the namespace where your route is located.
108+
109109
. Update your route's `.spec.tls.externalCertificate` field to reference the previously created secret and use the certificate issued by cert-manager by using the following command:
110110
+
111111
[source, terminal]

0 commit comments

Comments
 (0)